Merge branch 'cc-5709-airtime-analyzer' into cc-5709-airtime-analyzer-cloud-storage

This commit is contained in:
drigato 2015-01-15 13:45:40 -05:00
commit 89e760fd98

View file

@ -32,8 +32,8 @@ class CuePointAnalyzer(Analyzer):
# Conver the length into a formatted time string # Conver the length into a formatted time string
track_length = datetime.timedelta(seconds=metadata['length_seconds']) track_length = datetime.timedelta(seconds=metadata['length_seconds'])
metadata["length"] = str(track_length) metadata["length"] = str(track_length)
metadata['cuein'] = silan_results['sound'][0][0] metadata['cuein'] = format(silan_results['sound'][0][0], 'f')
metadata['cueout'] = silan_results['sound'][0][1] metadata['cueout'] = format(silan_results['sound'][0][1], 'f')
except OSError as e: # silan was not found except OSError as e: # silan was not found
logging.warn("Failed to run: %s - %s. %s" % (command[0], e.strerror, "Do you have silan installed?")) logging.warn("Failed to run: %s - %s. %s" % (command[0], e.strerror, "Do you have silan installed?"))