Use emf instead of omf

This commit is contained in:
Rudi Grinberg 2012-10-16 12:20:08 -04:00
parent ff8969efb9
commit 5a593112b3
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,6 @@ import media.monitor.pure as mmp
# emf related stuff
from media.metadata.process import global_reader
import media.metadata.definitions as defs
from pprint import pformat
defs.load_definitions()
"""
@ -173,6 +172,9 @@ class Metadata(Loggable):
for e in exceptions: raise e
def __init__(self, fpath):
self.__metadata = global_reader.read_mutagen(fpath)
def __init__2(self, fpath):
# Forcing the unicode through
try : fpath = fpath.decode("utf-8")
except : pass

View File

@ -28,5 +28,4 @@ class TestMMP(unittest.TestCase):
emf, old = self.metadatas(recorded_file)
self.assertEqual(emf, old)
if __name__ == '__main__': unittest.main()