mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-31 23:02:40 +00:00
[ie/cineverse] Detect when login required (#9081)
Partially addresses #9072 Authored by: garret1317
This commit is contained in:
parent
a2bac6b7ad
commit
fc2cc626f0
1 changed files with 4 additions and 1 deletions
|
@ -67,7 +67,10 @@ def _real_extract(self, url):
|
|||
html = self._download_webpage(url, video_id)
|
||||
idetails = self._search_nextjs_data(html, video_id)['props']['pageProps']['idetails']
|
||||
|
||||
if idetails.get('err_code') == 1200:
|
||||
err_code = idetails.get('err_code')
|
||||
if err_code == 1002:
|
||||
self.raise_login_required()
|
||||
elif err_code == 1200:
|
||||
self.raise_geo_restricted(
|
||||
'This video is not available from your location due to geo restriction. '
|
||||
'You may be able to bypass it by using the /details/ page instead of the /watch/ page',
|
||||
|
|
Loading…
Reference in a new issue