CC-5009:
Use Silan to silently update track length in the background -done
This commit is contained in:
parent
9a78c3f8e5
commit
479e69de12
4 changed files with 26 additions and 4 deletions
|
@ -49,9 +49,12 @@ class SilanAnalyzer(Thread):
|
|||
if len(comm):
|
||||
out = comm[0].strip('\r\n')
|
||||
info = json.loads(out)
|
||||
if len(info['sound']) >= 2:
|
||||
data['cuein'] = str('{0:f}'.format(info['sound'][0][0]))
|
||||
data['cueout'] = str('{0:f}'.format(info['sound'][-1][1]))
|
||||
try: data['length'] = str('{0:f}'.format(info['file duration']))
|
||||
except: pass
|
||||
try: data['cuein'] = str('{0:f}'.format(info['sound'][0][0]))
|
||||
except: pass
|
||||
try: data['cueout'] = str('{0:f}'.format(info['sound'][-1][1]))
|
||||
except: pass
|
||||
except Exception, e:
|
||||
self.logger.error(str(command))
|
||||
self.logger.error(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue