projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f14229
)
[foxgay] Add thumbnail to test definition
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 4 Dec 2014 07:22:20 +0000
(08:22 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 4 Dec 2014 07:22:20 +0000
(08:22 +0100)
youtube_dl/extractor/foxgay.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/foxgay.py
b/youtube_dl/extractor/foxgay.py
index a146a91802034032c618cd70885b95e8e6d90e50..08b8ea36235993f78ce7a4ba05ac05f255ee4ea7 100644
(file)
--- a/
youtube_dl/extractor/foxgay.py
+++ b/
youtube_dl/extractor/foxgay.py
@@
-14,14
+14,14
@@
class FoxgayIE(InfoExtractor):
'title': 'md5:6122f7ae0fc6b21ebdf59c5e083ce25a',
'description': 'md5:5e51dc4405f1fd315f7927daed2ce5cf',
'age_limit': 18,
+ 'thumbnail': 're:https?://.*\.jpg$',
},
}
def _real_extract(self, url):
video_id = self._match_id(url)
-
- # Download the initial webpage and extract all available data.
webpage = self._download_webpage(url, video_id)
+
title = self._html_search_regex(
r'<title>(?P<title>.*?)</title>',
webpage, 'title', fatal=False)