Use emf instead of omf
This commit is contained in:
parent
ff8969efb9
commit
5a593112b3
|
@ -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
|
||||
|
|
|
@ -28,5 +28,4 @@ class TestMMP(unittest.TestCase):
|
|||
emf, old = self.metadatas(recorded_file)
|
||||
self.assertEqual(emf, old)
|
||||
|
||||
|
||||
if __name__ == '__main__': unittest.main()
|
||||
|
|
Loading…
Reference in New Issue