From 5eb9fec9fc8c224ef1d3480eee0ad1f4f08a53b0 Mon Sep 17 00:00:00 2001 From: Erik Hahn Date: Thu, 30 Jul 2009 19:51:59 +0200 Subject: [PATCH] Actually use tag_wrapper, also change error message --- ordnung.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ordnung.py b/ordnung.py index 158d230..859f3b0 100644 --- a/ordnung.py +++ b/ordnung.py @@ -2,7 +2,7 @@ from path import path import fnmatch import os -from mutagen.oggvorbis import OggVorbis +from tag_wrapper import tag ACCEPTEXTS = [".ogg"] # Keep it simple for now @@ -24,9 +24,9 @@ def main(): if issupportedfile(filepath): print filepath try: - audio = OggVorbis(filepath) + audio = tag(filepath) except: #TODO - print "empty" + print "Error reading tags" else: print audio["title"] -- 2.11.4.GIT