[adobepass] fix check for pendingLogout errors
authorRemita Amine <remitamine@gmail.com>
Sun, 14 Aug 2016 20:25:43 +0000 (21:25 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 14 Aug 2016 20:25:43 +0000 (21:25 +0100)
youtube_dl/extractor/adobepass.py

index d315bfbc1e8cf8ab2f6c292c969b1af2d482b6ff..cf3a15cbb1b1d997fdc9f33e48de7561c5b06856 100644 (file)
@@ -90,7 +90,7 @@ class AdobePass(InfoExtractor):
                     '_method': 'GET',
                     'requestor_id': requestor_id,
                 }), headers=mvpd_headers)
-            if '<pendingLogout' in short_authorize:
+            if '<pendingLogout' in session:
                 self._downloader.cache.store('mvpd', requestor_id, {})
                 return self._extract_mvpd_auth(url, video_id, requestor_id, resource)
             authn_token = unescapeHTML(xml_text(session, 'authnToken'))