Added comparison for emf and non emf metadata values.
This commit is contained in:
parent
31b2a29392
commit
4bbc1fa95b
1 changed files with 11 additions and 6 deletions
|
@ -191,12 +191,6 @@ class Metadata(Loggable):
|
||||||
# TODO : Simplify the way all of these rules are handled right now it's
|
# TODO : Simplify the way all of these rules are handled right now it's
|
||||||
# extremely unclear and needs to be refactored.
|
# extremely unclear and needs to be refactored.
|
||||||
#if full_mutagen is None: raise BadSongFile(fpath)
|
#if full_mutagen is None: raise BadSongFile(fpath)
|
||||||
try: # emf stuff for testing:
|
|
||||||
if full_mutagen:
|
|
||||||
normalized = global_reader.read('fpath', full_mutagen)
|
|
||||||
self.logger.info(pformat(normalized))
|
|
||||||
except Exception as e:
|
|
||||||
self.unexpected_exception(e)
|
|
||||||
|
|
||||||
if full_mutagen is None: full_mutagen = FakeMutagen(fpath)
|
if full_mutagen is None: full_mutagen = FakeMutagen(fpath)
|
||||||
self.__metadata = Metadata.airtime_dict(full_mutagen)
|
self.__metadata = Metadata.airtime_dict(full_mutagen)
|
||||||
|
@ -222,6 +216,17 @@ class Metadata(Loggable):
|
||||||
# from the file?
|
# from the file?
|
||||||
self.__metadata['MDATA_KEY_MD5'] = mmp.file_md5(fpath,max_length=100)
|
self.__metadata['MDATA_KEY_MD5'] = mmp.file_md5(fpath,max_length=100)
|
||||||
|
|
||||||
|
try: # emf stuff for testing:
|
||||||
|
if full_mutagen:
|
||||||
|
normalized = global_reader.read_mutagen(fpath)
|
||||||
|
self.logger.info("EMF--------------------")
|
||||||
|
self.logger.info(pformat(normalized))
|
||||||
|
self.logger.info("OLD--------------------")
|
||||||
|
self.logger.info(pformat(self.__metadata))
|
||||||
|
self.logger.info("-----------------------")
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
self.unexpected_exception(e)
|
||||||
|
|
||||||
def is_recorded(self):
|
def is_recorded(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue