From cc33cc4395143256c2781c5e607fc76215baef16 Mon Sep 17 00:00:00 2001 From: LE Date: Tue, 14 Sep 2021 16:58:49 -0400 Subject: [PATCH] [VrtNU] Handle login errors (#977) Authored by: llacb47 --- yt_dlp/extractor/canvas.py | 3 +++ 1 file changed, 3 insertions(+) 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: