movie.py: temporarily add some debug information

This commit is contained in:
rolux 2012-08-22 14:39:51 +02:00
parent 7738bf9811
commit b9df4de27e

View file

@ -98,6 +98,7 @@ 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)])