mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-22 20:20:09 +09:00
[lrt] fix extraction with empty tags(closes #20264)
This commit is contained in:
parent
11f3471c4b
commit
91dcde8a38
@ -61,7 +61,7 @@ class LRTIE(InfoExtractor):
|
|||||||
json_ld_data = self._search_json_ld(webpage, video_id)
|
json_ld_data = self._search_json_ld(webpage, video_id)
|
||||||
|
|
||||||
tags = []
|
tags = []
|
||||||
for tag in media.get('tags', []):
|
for tag in (media.get('tags') or []):
|
||||||
tag_name = tag.get('name')
|
tag_name = tag.get('name')
|
||||||
if not tag_name:
|
if not tag_name:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user