1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 11:44: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) 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 { return {
"id": video_id, "id": video_id,
"title": info_dict["title"], "title": title,
"description": info_dict["description"], "description": description,
"thumbnail": info_dict["thumbnail"], "thumbnail": thumbnail,
"formats": formats, "formats": formats,
} }