Use auto-generated title instead of `title` tag of the website

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
pull/9629/head
HobbyistDev 2024-04-11 07:21:59 +08:00 zatwierdzone przez GitHub
rodzic eb2969d324
commit 6c311b14c6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 7 usunięć

Wyświetl plik

@ -70,16 +70,14 @@ class GodResourceIE(InfoExtractor):
return {
'id': display_id,
**extraction_result,
**merge_dicts(traverse_obj(api_data, {
'title': ('title', {str}), # can be None in API
'title': '',
**traverse_obj(api_data, {
'title': ('title', {str}),
'thumbnail': ('thumbnail', {url_or_none}),
'view_count': ('views', {int}),
'channel': ('channelName', {str}),
'channel_id': 'channelId',
'channel_id': ('channelId', {str_or_none}),
'timestamp': ('streamDateCreated', {unified_timestamp}),
'modified_timestamp': ('streamDataModified', {unified_timestamp})
}), {
# This title is not reliable (only give the site name)
'title': self._html_extract_title(webpage),
}),
})
}