CC-1799 : Live Studio Playout from media library (pytagsfs)

if a tag is edited by easytag, the change is now reflected in airtime database.
This commit is contained in:
Naomi 2011-04-28 18:02:40 -04:00 committed by martin
parent dbcfabfb76
commit 5be039d349
4 changed files with 59 additions and 18 deletions

View file

@ -84,12 +84,12 @@ class MediaMonitor(ProcessEvent):
gunid = event.name.split('.')[0]
md = {'gunid':gunid, 'md5':md5}
file_info = mutagen.File(event.pathname, easy=True)
attrs = self.mutagen2airtime
for key in file_info.keys() :
if key in attrs :
md[attrs[key]] = file_info[key]
md[attrs[key]] = file_info[key][0]
data = {'md': md}