diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-25 23:01:12 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-25 23:01:12 +0600 |
commit | feb7711cf58863a19cae770a878d22a8424e3c61 (patch) | |
tree | 88bb276322a953bf493e944ac0cfb525c025c8be /youtube_dl | |
parent | 589c33dadeec18a9d50713a4a200e3e2d9e297bb (diff) |
[youporn] Make description optional
Some videos does not contain any description
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youporn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py index d10ebb0bf..db5d049d2 100644 --- a/youtube_dl/extractor/youporn.py +++ b/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') |