From: Remita Amine Date: Mon, 16 Nov 2020 20:27:51 +0000 (+0100) Subject: [lrt] fix extraction with empty tags(closes #20264) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=91dcde8a381d1c442e5b56fa1d3652fdd3f4496d;p=youtube-dl [lrt] fix extraction with empty tags(closes #20264) --- diff --git a/youtube_dl/extractor/lrt.py b/youtube_dl/extractor/lrt.py index a89434adb..89d549858 100644 --- a/youtube_dl/extractor/lrt.py +++ b/youtube_dl/extractor/lrt.py @@ -61,7 +61,7 @@ class LRTIE(InfoExtractor): json_ld_data = self._search_json_ld(webpage, video_id) tags = [] - for tag in media.get('tags', []): + for tag in (media.get('tags') or []): tag_name = tag.get('name') if not tag_name: continue