Browse Source

[youporn] Make description optional

Some videos does not contain any description
master
Sergey M․ 9 years ago
parent
commit
feb7711cf5
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/youporn.py

2
youtube_dl/extractor/youporn.py

@ -92,7 +92,7 @@ class YouPornIE(InfoExtractor):
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…
Cancel
Save