1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-25 18:04:33 +01:00

[FiteTV] Add fallbacks to metafield extraction

This commit is contained in:
Chris Coughlan 2020-04-11 21:21:04 +01:00
parent 931a87cec7
commit 6d829b7456

View File

@ -42,10 +42,14 @@ class FiteTVIE(InfoExtractor):
self._sort_formats(formats)
title = info_dict.get("title") or self._og_search_title(webpage)
description = info_dict.get("description") or self._og_search_description(webpage)
thumbnail = info_dict.get("thumbnail") or self._og_search_thumbnail(webpage)
return {
"id": video_id,
"title": info_dict["title"],
"description": info_dict["description"],
"thumbnail": info_dict["thumbnail"],
"title": title,
"description": description,
"thumbnail": thumbnail,
"formats": formats,
}