movie.py: in parse_item_files, return list, not dict

This commit is contained in:
rolux 2012-08-22 12:44:43 +02:00
parent 761586f356
commit 6268c491e8

View file

@ -152,17 +152,18 @@ def parse_item_files(files):
for file in duplicate_files:
version_files[get_version_key(file)].append(file)
# return data
data = {}
data = []
for version_key in version_files:
data[version_key] = {
data.append({
'files': sorted(
[dict(file, isMainFile=file in main_files[version_key]) for file in version_files[version_key]],
key=lambda x: x['path']
),
'isFullVersion': full[version_key],
'isMainVersion': version_key == main_version,
'subtitleLanguage': language[version_key] if version_key in language else None
}
'subtitleLanguage': language[version_key] if version_key in language else None,
'version': version_key
})
return data