diff options
author | garret <garret1317@yandex.com> | 2024-01-31 20:21:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 20:21:59 +0000 |
commit | fc2cc626f07328a6c71b5e21853e4cfa7b1e6256 (patch) | |
tree | 849596a07b45f06fbf925b2560b51ba41331a718 | |
parent | a2bac6b7adb7b0e955125838e20bb39eece630ce (diff) |
[ie/cineverse] Detect when login required (#9081)
Partially addresses #9072
Authored by: garret1317
-rw-r--r-- | yt_dlp/extractor/cineverse.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/cineverse.py b/yt_dlp/extractor/cineverse.py index c9fa789b7..032c4334b 100644 --- a/yt_dlp/extractor/cineverse.py +++ b/yt_dlp/extractor/cineverse.py @@ -67,7 +67,10 @@ class CineverseIE(CineverseBaseIE): 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', |