mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[youporn] Make description optional
Some videos does not contain any description
This commit is contained in:
parent
589c33dade
commit
feb7711cf5
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ def _real_extract(self, url):
|
|||
|
||||
description = self._html_search_regex(
|
||||
r'(?s)<div[^>]+class=["\']video-description["\'][^>]*>(.+?)</div>',
|
||||
webpage, 'description', fatal=False)
|
||||
webpage, 'description', default=None)
|
||||
thumbnail = self._search_regex(
|
||||
r'(?:imageurl\s*=|poster\s*:)\s*(["\'])(?P<thumbnail>.+?)\1',
|
||||
webpage, 'thumbnail', fatal=False, group='thumbnail')
|
||||
|
|
Loading…
Reference in a new issue