mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-01 23:12:40 +00:00
Merge pull request #7173 from remitamine/criterion
[criterion] fix description extraction
This commit is contained in:
commit
f49b3d6efc
1 changed files with 1 additions and 3 deletions
|
@ -27,9 +27,7 @@ def _real_extract(self, url):
|
||||||
final_url = self._search_regex(
|
final_url = self._search_regex(
|
||||||
r'so.addVariable\("videoURL", "(.+?)"\)\;', webpage, 'video url')
|
r'so.addVariable\("videoURL", "(.+?)"\)\;', webpage, 'video url')
|
||||||
title = self._og_search_title(webpage)
|
title = self._og_search_title(webpage)
|
||||||
description = self._html_search_regex(
|
description = self._html_search_meta('description', webpage)
|
||||||
r'<meta name="description" content="(.+?)" />',
|
|
||||||
webpage, 'video description')
|
|
||||||
thumbnail = self._search_regex(
|
thumbnail = self._search_regex(
|
||||||
r'so.addVariable\("thumbnailURL", "(.+?)"\)\;',
|
r'so.addVariable\("thumbnailURL", "(.+?)"\)\;',
|
||||||
webpage, 'thumbnail url')
|
webpage, 'thumbnail url')
|
||||||
|
|
Loading…
Reference in a new issue