[BehindKink] Minor fixes
- fix _VALID_URL regex - remove unnecessary variable - remove second call of report_extraction
This commit is contained in:
parent
2bca84e345
commit
6d1f2431bd
|
@ -8,7 +8,7 @@ from ..utils import url_basename
|
||||||
|
|
||||||
|
|
||||||
class BehindKinkIE(InfoExtractor):
|
class BehindKinkIE(InfoExtractor):
|
||||||
_VALID_URL = r'(?:http://)(?:www\.)?behindkink\.com/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/(?P<id>[^/?_]+)'
|
_VALID_URL = r'http://(?:www\.)?behindkink\.com/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/(?P<id>[^/#?_]+)'
|
||||||
_TEST = {
|
_TEST = {
|
||||||
'url': 'http://www.behindkink.com/2014/08/14/ab1576-performers-voice-finally-heard-the-bill-is-killed/',
|
'url': 'http://www.behindkink.com/2014/08/14/ab1576-performers-voice-finally-heard-the-bill-is-killed/',
|
||||||
'md5': '41ad01222b8442089a55528fec43ec01',
|
'md5': '41ad01222b8442089a55528fec43ec01',
|
||||||
|
@ -31,8 +31,7 @@ class BehindKinkIE(InfoExtractor):
|
||||||
day = mobj.group('day')
|
day = mobj.group('day')
|
||||||
upload_date = year + month + day
|
upload_date = year + month + day
|
||||||
|
|
||||||
webpage_url = 'http://www.behindkink.com/' + year + '/' + month + '/' + day + '/' + display_id
|
webpage = self._download_webpage(url, display_id)
|
||||||
webpage = self._download_webpage(webpage_url, display_id)
|
|
||||||
|
|
||||||
self.report_extraction(display_id)
|
self.report_extraction(display_id)
|
||||||
video_url = self._search_regex(
|
video_url = self._search_regex(
|
||||||
|
@ -41,7 +40,6 @@ class BehindKinkIE(InfoExtractor):
|
||||||
|
|
||||||
video_id = url_basename(video_url)
|
video_id = url_basename(video_url)
|
||||||
video_id = video_id.split('_')[0]
|
video_id = video_id.split('_')[0]
|
||||||
self.report_extraction(video_id)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
|
Loading…
Reference in New Issue