[adobepass] fix check for pendingLogout errors

This commit is contained in:
Remita Amine 2016-08-14 21:25:43 +01:00
parent 7e60ce9cf7
commit 525e0316c0

View File

@ -90,7 +90,7 @@ def post_form(form_page, note, data={}):
'_method': 'GET', '_method': 'GET',
'requestor_id': requestor_id, 'requestor_id': requestor_id,
}), headers=mvpd_headers) }), headers=mvpd_headers)
if '<pendingLogout' in short_authorize: if '<pendingLogout' in session:
self._downloader.cache.store('mvpd', requestor_id, {}) self._downloader.cache.store('mvpd', requestor_id, {})
return self._extract_mvpd_auth(url, video_id, requestor_id, resource) return self._extract_mvpd_auth(url, video_id, requestor_id, resource)
authn_token = unescapeHTML(xml_text(session, 'authnToken')) authn_token = unescapeHTML(xml_text(session, 'authnToken'))