mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 07:56:49 +00:00
cleaner access to the OIDCXSRF cookie
This commit is contained in:
parent
944a8f2b0b
commit
e0556cd956
@ -294,11 +294,8 @@ class VrtNUIE(GigyaBaseIE):
|
|||||||
'UIDSignature': auth_info['UIDSignature'],
|
'UIDSignature': auth_info['UIDSignature'],
|
||||||
'signatureTimestamp': auth_info['signatureTimestamp'],
|
'signatureTimestamp': auth_info['signatureTimestamp'],
|
||||||
'client_id': 'vrtnu-site',
|
'client_id': 'vrtnu-site',
|
||||||
|
'_csrf': self._get_cookies('https://login.vrt.be/').get('OIDCXSRF').value
|
||||||
}
|
}
|
||||||
for cookie in self._downloader.cookiejar:
|
|
||||||
if cookie.name == 'OIDCXSRF':
|
|
||||||
post_data['_csrf'] = cookie.value
|
|
||||||
break
|
|
||||||
|
|
||||||
self._request_webpage(
|
self._request_webpage(
|
||||||
'https://login.vrt.be/perform_login',
|
'https://login.vrt.be/perform_login',
|
||||||
|
Loading…
Reference in New Issue
Block a user