movie.py: remove debug information, more bugfixes
This commit is contained in:
parent
b9df4de27e
commit
7a51ec5fe9
1 changed files with 1 additions and 3 deletions
|
@ -98,7 +98,6 @@ def parse_item_files(files):
|
||||||
version_files[version_key] = (version_files[version_key] if version_key in version_files else []) + [file]
|
version_files[version_key] = (version_files[version_key] if version_key in version_files else []) + [file]
|
||||||
time[version_key] = sorted([time[version_key], file['time']])[-1] if version_key in time else file['time']
|
time[version_key] = sorted([time[version_key], file['time']])[-1] if version_key in time else file['time']
|
||||||
# determine preferred video extension (newest)
|
# determine preferred video extension (newest)
|
||||||
print version_files
|
|
||||||
extension = {}
|
extension = {}
|
||||||
for key in set(['/'.join(version_key.split('/')[:-1]) + '/' for version_key in version_files]):
|
for key in set(['/'.join(version_key.split('/')[:-1]) + '/' for version_key in version_files]):
|
||||||
extensions = set([version_key.split('/')[-1] for version_key in version_files if version_key.startswith(key)])
|
extensions = set([version_key.split('/')[-1] for version_key in version_files if version_key.startswith(key)])
|
||||||
|
@ -110,11 +109,10 @@ def parse_item_files(files):
|
||||||
for file in [file for file in other_files if file['version'] == version]:
|
for file in [file for file in other_files if file['version'] == version]:
|
||||||
key = get_version_key(file, extension=False)
|
key = get_version_key(file, extension=False)
|
||||||
if key in extension:
|
if key in extension:
|
||||||
print key, extension
|
|
||||||
version_files[key + extension[key]].append(file)
|
version_files[key + extension[key]].append(file)
|
||||||
else:
|
else:
|
||||||
version_files[key] = (version_files[key] if key in version_files else []) + [file]
|
version_files[key] = (version_files[key] if key in version_files else []) + [file]
|
||||||
extension[key] = None
|
extension[key] = ''
|
||||||
# determine main_files (video + srt)
|
# determine main_files (video + srt)
|
||||||
full = {}
|
full = {}
|
||||||
language = {}
|
language = {}
|
||||||
|
|
Loading…
Reference in a new issue