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

This commit is contained in:
Remita Amine 2021-02-26 14:11:39 +01:00 committed by Laura Liberda
parent 883cf213dc
commit ebc218c4c4

View file

@ -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