aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-03-18 06:19:11 +0700
committerSergey M․ <dstftw@gmail.com>2017-03-18 06:21:31 +0700
commitfebfe1e2626bab5dbb8d4e0bbe31aa225ce09d35 (patch)
treebddf89554d4759c76fe73e27bdf5cfea1c7678f1
parent5f0daab1ca60803f4f49b344ddb3757c418a2d8e (diff)
[adobepass] Detect and output error on authz token extraction (#12472)
-rw-r--r--youtube_dl/extractor/adobepass.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/adobepass.py b/youtube_dl/extractor/adobepass.py
index d4816abf5..1b2d364ca 100644
--- a/youtube_dl/extractor/adobepass.py
+++ b/youtube_dl/extractor/adobepass.py
@@ -1458,6 +1458,8 @@ class AdobePassIE(InfoExtractor):
self._downloader.cache.store(self._MVPD_CACHE, requestor_id, {})
count += 1
continue
+ if '<error' in authorize:
+ raise ExtractorError(xml_text(authorize, 'details'), expected=True)
authz_token = unescapeHTML(xml_text(authorize, 'authzToken'))
requestor_info[guid] = authz_token
self._downloader.cache.store(self._MVPD_CACHE, requestor_id, requestor_info)