['2010', '11', None]
>>> c._parse_date('2010-11-16')
['2010', '11', '16']
+ >>> c.cleanup()
"""
fields = date.split('-')
assert len(fields) > 0 and len(fields) <= 3, date
'title': 'The Famous Song',
'tracknumber': '07',
'tracktotal': '14'}
+ >>> c.cleanup()
"""
metadata = {}
vorbis_keys = {
'title': 'The Famous Song',
'tracknumber': '07',
'tracktotal': '14'}
+ >>> c.cleanup()
"""
metadata = {}
for line in stdout.splitlines():
help='Run internal tests and exit')
options,args = p.parse_args()
- source_dir,target_dir = args
if options.test:
sys.exit(test())
+ source_dir,target_dir = args
c = Converter(source_dir, target_dir, target_extension=options.ext)
try:
c.run()