Linted
This commit is contained in:
parent
04a7c7a849
commit
0a99e9f59d
@ -131,7 +131,7 @@ class PlatziIE(PlatziBaseIE):
|
|||||||
kwargs.pop('expected_status', None)
|
kwargs.pop('expected_status', None)
|
||||||
note = kwargs.pop('note', '')
|
note = kwargs.pop('note', '')
|
||||||
kwargs['note'] = (note or 'Downloading webpage') + ' - retrying'
|
kwargs['note'] = (note or 'Downloading webpage') + ' - retrying'
|
||||||
x = super(PlatziIE, self)._download_webpage_handle(url_or_request, video_id, *args, **kwargs)
|
x = super(PlatziIE, self)._download_webpage_handle(url_or_request, video_id, *args, **compat_kwargs(kwargs))
|
||||||
return x
|
return x
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
@ -139,7 +139,7 @@ class PlatziIE(PlatziBaseIE):
|
|||||||
|
|
||||||
# header parameters required fpor Py3 to breach site's CF fence w/o 403
|
# header parameters required fpor Py3 to breach site's CF fence w/o 403
|
||||||
headers = {
|
headers = {
|
||||||
'User-Agent': 'Mozilla/5.0', # (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.0.0 Safari/537.36',
|
'User-Agent': 'Mozilla/5.0',
|
||||||
}
|
}
|
||||||
webpage, urlh = self._download_webpage_handle(url, lecture_id, headers=headers)
|
webpage, urlh = self._download_webpage_handle(url, lecture_id, headers=headers)
|
||||||
if compat_urllib_parse_urlparse(urlh.geturl()).path == '/':
|
if compat_urllib_parse_urlparse(urlh.geturl()).path == '/':
|
||||||
|
Loading…
Reference in New Issue
Block a user