CC-3018: Automatically strip out silence from audio tracks

- adding logging
This commit is contained in:
James 2013-01-03 14:30:19 -05:00
parent a1837366be
commit f5b6d85406
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ from collections import namedtuple
import mutagen
import subprocess
import json
import logging
class FakeMutagen(dict):
"""
@ -178,7 +179,8 @@ def normalize_mutagen(path):
md['cuein'] = info['sound'][0][0]
md['cueout'] = info['sound'][-1][1]
except Exception:
raise
logger = logging.getLogger()
logger.info('silan is missing')
if 'title' not in md: md['title'] = u''
return md