aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLE <llacb47@users.noreply.github.com>2021-09-14 16:58:49 -0400
committerGitHub <noreply@github.com>2021-09-15 02:28:49 +0530
commitcc33cc4395143256c2781c5e607fc76215baef16 (patch)
treea13d71ce2249d2c57555f99c5667dde4e8c8a0dc
parent1722099ded6d2d3568197c412e740fda82d188d4 (diff)
downloadhypervideo-pre-cc33cc4395143256c2781c5e607fc76215baef16.tar.lz
hypervideo-pre-cc33cc4395143256c2781c5e607fc76215baef16.tar.xz
hypervideo-pre-cc33cc4395143256c2781c5e607fc76215baef16.zip
[VrtNU] Handle login errors (#977)
Authored by: llacb47
-rw-r--r--yt_dlp/extractor/canvas.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/extractor/canvas.py b/yt_dlp/extractor/canvas.py
index b417f8577..49e7e4e39 100644
--- a/yt_dlp/extractor/canvas.py
+++ b/yt_dlp/extractor/canvas.py
@@ -286,6 +286,9 @@ class VrtNUIE(GigyaBaseIE):
'targetEnv': 'jssdk',
}))
+ if auth_info.get('errorDetails'):
+ raise ExtractorError('Unable to login: VrtNU said: ' + auth_info.get('errorDetails'), expected=True)
+
# Sometimes authentication fails for no good reason, retry
login_attempt = 1
while login_attempt <= 3: