Use emf instead of omf
This commit is contained in:
parent
ff8969efb9
commit
5a593112b3
2 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,6 @@ import media.monitor.pure as mmp
|
||||||
# emf related stuff
|
# emf related stuff
|
||||||
from media.metadata.process import global_reader
|
from media.metadata.process import global_reader
|
||||||
import media.metadata.definitions as defs
|
import media.metadata.definitions as defs
|
||||||
from pprint import pformat
|
|
||||||
defs.load_definitions()
|
defs.load_definitions()
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -173,6 +172,9 @@ class Metadata(Loggable):
|
||||||
for e in exceptions: raise e
|
for e in exceptions: raise e
|
||||||
|
|
||||||
def __init__(self, fpath):
|
def __init__(self, fpath):
|
||||||
|
self.__metadata = global_reader.read_mutagen(fpath)
|
||||||
|
|
||||||
|
def __init__2(self, fpath):
|
||||||
# Forcing the unicode through
|
# Forcing the unicode through
|
||||||
try : fpath = fpath.decode("utf-8")
|
try : fpath = fpath.decode("utf-8")
|
||||||
except : pass
|
except : pass
|
||||||
|
|
|
@ -28,5 +28,4 @@ class TestMMP(unittest.TestCase):
|
||||||
emf, old = self.metadatas(recorded_file)
|
emf, old = self.metadatas(recorded_file)
|
||||||
self.assertEqual(emf, old)
|
self.assertEqual(emf, old)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__': unittest.main()
|
if __name__ == '__main__': unittest.main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue