Browse Source

[adobepass] Detect and output error on authz token extraction (#12472)

master-ytdl-org
Sergey M․ 8 years ago
parent
commit
febfe1e262
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/adobepass.py

+ 2
- 0
youtube_dl/extractor/adobepass.py View File

@ -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)


Loading…
Cancel
Save