From: Sergey M․ Date: Sun, 25 Oct 2015 17:01:12 +0000 (+0600) Subject: [youporn] Make description optional X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=feb7711cf58863a19cae770a878d22a8424e3c61;p=youtube-dl [youporn] Make description optional Some videos does not contain any description --- 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)]+class=["\']video-description["\'][^>]*>(.+?)', - webpage, 'description', fatal=False) + webpage, 'description', default=None) thumbnail = self._search_regex( r'(?:imageurl\s*=|poster\s*:)\s*(["\'])(?P.+?)\1', webpage, 'thumbnail', fatal=False, group='thumbnail')