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:
parent
f64a1aae34
commit
6834ecca76
4 changed files with 59 additions and 18 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue