mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 07:56:49 +00:00
Linted
This commit is contained in:
parent
eff6cd4c24
commit
ea4948068d
@ -57,7 +57,7 @@ class PlatziBaseIE(InfoExtractor):
|
||||
path = compat_urllib_parse_urlparse(x[1].geturl())
|
||||
if path == '/':
|
||||
self._raise_extractor_error(video_id, 'Redirected to home page: content expired?')
|
||||
elif path =='/login':
|
||||
elif path == '/login':
|
||||
self.raise_login_required()
|
||||
else:
|
||||
errs = clean_html(get_element_by_class('Errorpage-text', x[0]))
|
||||
@ -177,7 +177,7 @@ class PlatziIE(PlatziBaseIE):
|
||||
why = video_player['blockedInfo'].get('type') or 'unspecified'
|
||||
if why == 'unlogged':
|
||||
self.raise_login_required()
|
||||
self._raise_extractor_error(video_id, 'All video formats blocked because ' + why)
|
||||
self._raise_extractor_error(lecture_id, 'All video formats blocked because ' + why)
|
||||
|
||||
formats = []
|
||||
headers = {'Referer': url}
|
||||
|
Loading…
Reference in New Issue
Block a user