aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2020-11-16 21:27:51 +0100
committerRemita Amine <remitamine@gmail.com>2020-11-16 21:28:12 +0100
commit91dcde8a381d1c442e5b56fa1d3652fdd3f4496d (patch)
tree81a02c6debe2a4370177c7173eed70981d103e76 /youtube_dl/extractor
parent11f3471c4be16d0f848c72a4b4915f5f81d4f337 (diff)
[lrt] fix extraction with empty tags(closes #20264)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/lrt.py2
1 files changed, 1 insertions, 1 deletions
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