diff --git a/ox/movie.py b/ox/movie.py index ab74fd3..c614858 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -64,8 +64,11 @@ def parse_item_files(files): # as returned by parse_path, but extended with 'originalPath' and 'time') def get_file_key(file): return '\n'.join([ - file['version'], file['part'], file['language'], file['extension']] - ) + file['version'] or '', + file['part'] or '', + file['language'] or '', + file['extension'] or '' + ]) def get_version_key(file, extension=True): return '%s.%s-part.%s' % ( file['version'],