Browse Source

[lrt] fix extraction with empty tags(closes #20264)

Remita Amine 5 years ago
parent
commit
91dcde8a38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/lrt.py

+ 1 - 1
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