]> jfr.im git - yt-dlp.git/commitdiff
[extractor/swearnet] Fix description bug (#5681)
authorbashonly <redacted>
Thu, 1 Dec 2022 11:24:43 +0000 (11:24 +0000)
committerGitHub <redacted>
Thu, 1 Dec 2022 11:24:43 +0000 (11:24 +0000)
Bug in 049565df2e24d9611a9ffdd033c80a6dafdabbe0
Closes #5643
Authoried by: bashonly

yt_dlp/extractor/swearnet.py

index 86a303ec73d0fbd1566590539e04350cbdd82c5f..6e216a2a56a6147b9a7636ba3c31f346a7ed37d3 100644 (file)
@@ -62,7 +62,7 @@ def _real_extract(self, url):
             'id': str(json_data['videoId']),
             'title': json_data.get('name') or self._html_search_meta(['og:title', 'twitter:title'], webpage),
             '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')),
             'formats': formats,
             'subtitles': subtitles,