projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589c33d
)
[youporn] Make description optional
author
Sergey M․
<dstftw@gmail.com>
Sun, 25 Oct 2015 17:01:12 +0000
(23:01 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 25 Oct 2015 17:01:12 +0000
(23:01 +0600)
Some videos does not contain any description
youtube_dl/extractor/youporn.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youporn.py
b/youtube_dl/extractor/youporn.py
index d10ebb0bf93fda6f86c9ac3f272416e1ace1aef7..db5d049d224bc5ca847a62698f74f0c4558a9fc4 100644
(file)
--- 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=Fals
e)
+ webpage, 'description',
default=Non
e)
thumbnail = self._search_regex(
r'(?:imageurl\s*=|poster\s*:)\s*(["\'])(?P<thumbnail>.+?)\1',
webpage, 'thumbnail', fatal=False, group='thumbnail')