movie.py: don't coerce None to string

This commit is contained in:
rolux 2012-08-22 12:50:13 +02:00
parent 6268c491e8
commit f630291584

View file

@ -71,7 +71,7 @@ def parse_item_files(files):
])
def get_version_key(file, extension=True):
return '%s.%s-part.%s' % (
file['version'],
file['version'] or '',
'single' if file['part'] == None else 'multi',
file['extension'] if extension else ''
)