From e612f66c7ca6766a25131dde5c2a8442869c77ef Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 23 Jan 2022 18:33:16 +0530 Subject: [PATCH] [archive.org] Ignore unnecessary files Closes #2452 --- yt_dlp/extractor/archiveorg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/archiveorg.py b/yt_dlp/extractor/archiveorg.py index 467fe4875..57829a3a2 100644 --- a/yt_dlp/extractor/archiveorg.py +++ b/yt_dlp/extractor/archiveorg.py @@ -207,7 +207,7 @@ class ArchiveOrgIE(InfoExtractor): '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