X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Ffoxgay.py;h=70c1a815d3121bf048da9510a00abf10dc516126;hb=b6c4e36728e8f60ae7f4910a9b7027a2b702e8dc;hp=a146a91802034032c618cd70885b95e8e6d90e50;hpb=7f142293dff64096a34446ce1e7d674a9f2f1bc9;p=youtube-dl diff --git a/youtube_dl/extractor/foxgay.py b/youtube_dl/extractor/foxgay.py index a146a9180..70c1a815d 100644 --- a/youtube_dl/extractor/foxgay.py +++ b/youtube_dl/extractor/foxgay.py @@ -4,7 +4,7 @@ from .common import InfoExtractor class FoxgayIE(InfoExtractor): - _VALID_URL = r'http://(?:www\.)?foxgay\.com/videos/(?:\S+-)?(?P\d+)\.shtml' + _VALID_URL = r'https?://(?:www\.)?foxgay\.com/videos/(?:\S+-)?(?P\d+)\.shtml' _TEST = { 'url': 'http://foxgay.com/videos/fuck-turkish-style-2582.shtml', 'md5': '80d72beab5d04e1655a56ad37afe6841', @@ -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'(?P<title>.*?)', webpage, 'title', fatal=False)