mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-05 18:39:37 +02:00
[extractor/swearnet] Fix description bug (#5681)
Bug in 049565df2e
Closes #5643
Authoried by: bashonly
This commit is contained in:
parent
0e96b408b9
commit
ddf1e22d48
@ -62,7 +62,7 @@ def _real_extract(self, url):
|
|||||||
'id': str(json_data['videoId']),
|
'id': str(json_data['videoId']),
|
||||||
'title': json_data.get('name') or self._html_search_meta(['og:title', 'twitter:title'], webpage),
|
'title': json_data.get('name') or self._html_search_meta(['og:title', 'twitter:title'], webpage),
|
||||||
'description': (json_data.get('description')
|
'description': (json_data.get('description')
|
||||||
or self._html_search_meta(['og:description', 'twitter:description'])),
|
or self._html_search_meta(['og:description', 'twitter:description'], webpage)),
|
||||||
'duration': int_or_none(json_data.get('seconds')),
|
'duration': int_or_none(json_data.get('seconds')),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
|
Loading…
Reference in New Issue
Block a user