fix(extractor: odnoklassniki): for download URL use the same protocol as for original link
This commit is contained in:
parent
6d475d01d8
commit
2469de9de4
@ -131,13 +131,14 @@ class OdnoklassnikiIE(InfoExtractor):
|
||||
return mobj.group('url')
|
||||
|
||||
def _real_extract(self, url):
|
||||
parsed_url = compat_urllib_parse_urlparse(url)
|
||||
start_time = int_or_none(compat_parse_qs(
|
||||
compat_urllib_parse_urlparse(url).query).get('fromTime', [None])[0])
|
||||
parsed_url.query).get('fromTime', [None])[0])
|
||||
|
||||
video_id = self._match_id(url)
|
||||
|
||||
webpage = self._download_webpage(
|
||||
'http://ok.ru/video/%s' % video_id, video_id)
|
||||
'%s://ok.ru/video/%s' % (parsed_url.scheme, video_id), video_id)
|
||||
|
||||
error = self._search_regex(
|
||||
r'[^>]+class="vp_video_stub_txt"[^>]*>([^<]+)<',
|
||||
|
Loading…
x
Reference in New Issue
Block a user