From b28dc2a42444bc9f58e75d9a85c3e3cbd8701246 Mon Sep 17 00:00:00 2001 From: kclauhk <78251477+kclauhk@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:24:44 +0800 Subject: [PATCH] Revert "to honor None values" This reverts commit a9c165305cbf15fdfc6a099c46ff955aab873f2a. --- yt_dlp/extractor/kidoodletv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/kidoodletv.py b/yt_dlp/extractor/kidoodletv.py index 07103722a..3bbdb9022 100644 --- a/yt_dlp/extractor/kidoodletv.py +++ b/yt_dlp/extractor/kidoodletv.py @@ -38,7 +38,7 @@ class KidoodleTVBaseIE(InfoExtractor): def get_field(field_name, idx, webpage, data): value = self._html_search_regex(rf'{idx}\.{field_name}=(?P"?(?P.+?)"?);', webpage, field_name, default=None, group=('a', 'b')) - return value[1] if value[1] != value[0] else (data[value[0]] if value[0] in data else value[0]) + return value[1] if value[1] != value[0] else (data.get(value[0]) or value[0]) idx = idx.replace('$', r'\$') video_id = get_field('id', idx, webpage, data)