1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-22 23:46:50 +02:00

[archive.org] Ignore unnecessary files

Closes #2452
This commit is contained in:
pukkandan 2022-01-23 18:33:16 +05:30
parent 87e8e8a7d0
commit e612f66c7c
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -207,7 +207,7 @@ def _real_extract(self, url):
'discnumber': int_or_none(f.get('disc')),
'release_year': int_or_none(f.get('year'))})
entry = entries[f['name']]
elif f.get('original') in entries:
elif traverse_obj(f, 'original', expected_type=str) in entries:
entry = entries[f['original']]
else:
continue