X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fbehindkink.py;h=9bca853b32979a4e2700f5d121c24a08fd875224;hb=HEAD;hp=9e4f1c90fa8e4129bc565fe14254af19bee426c3;hpb=d6f78a354d77d32c9929ca99cb82d49aa7d7f8ab;p=youtube-dl diff --git a/youtube_dl/extractor/behindkink.py b/youtube_dl/extractor/behindkink.py index 9e4f1c90f..9bca853b3 100644 --- a/youtube_dl/extractor/behindkink.py +++ b/youtube_dl/extractor/behindkink.py @@ -8,7 +8,7 @@ from ..utils import url_basename class BehindKinkIE(InfoExtractor): - _VALID_URL = r'http://(?:www\.)?behindkink\.com/(?P[0-9]{4})/(?P[0-9]{2})/(?P[0-9]{2})/(?P[^/#?_]+)' + _VALID_URL = r'https?://(?:www\.)?behindkink\.com/(?P[0-9]{4})/(?P[0-9]{2})/(?P[0-9]{2})/(?P[^/#?_]+)' _TEST = { 'url': 'http://www.behindkink.com/2014/12/05/what-are-you-passionate-about-marley-blaze/', 'md5': '507b57d8fdcd75a41a9a7bdb7989c762', @@ -16,7 +16,7 @@ class BehindKinkIE(InfoExtractor): 'id': '37127', 'ext': 'mp4', 'title': 'What are you passionate about – Marley Blaze', - 'description': 'Getting a better understanding of the talent that comes through the doors of the Armory is one of our missions at Behind Kink. Asking the question what are you passionate about helps us get a littl...', + 'description': 'md5:aee8e9611b4ff70186f752975d9b94b4', 'upload_date': '20141205', 'thumbnail': 'http://www.behindkink.com/wp-content/uploads/2014/12/blaze-1.jpg', 'age_limit': 18, @@ -26,25 +26,19 @@ class BehindKinkIE(InfoExtractor): def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) display_id = mobj.group('id') - year = mobj.group('year') - month = mobj.group('month') - day = mobj.group('day') - upload_date = year + month + day webpage = self._download_webpage(url, display_id) video_url = self._search_regex( - r'', webpage, 'video URL') - - video_id = url_basename(video_url) - video_id = video_id.split('_')[0] + r'