mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:06:49 +00:00
flake8 checks
This commit is contained in:
parent
17dca698cf
commit
03d89133f3
@ -1,7 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import re
|
||||
import json
|
||||
|
||||
from .common import InfoExtractor
|
||||
from .gigya import GigyaBaseIE
|
||||
@ -277,11 +276,11 @@ class VrtNUIE(GigyaBaseIE):
|
||||
'https://accounts.vrt.be/accounts.login', None,
|
||||
note='Login data', errnote='Could not get Login data',
|
||||
headers={}, data=urlencode_postdata({
|
||||
'loginID':username,
|
||||
'password':password,
|
||||
'sessionExpiration':'-2',
|
||||
'APIKey':self._APIKEY,
|
||||
'targetEnv':'jssdk',
|
||||
'loginID': username,
|
||||
'password': password,
|
||||
'sessionExpiration': '-2',
|
||||
'APIKey': self._APIKEY,
|
||||
'targetEnv': 'jssdk',
|
||||
}))
|
||||
except ExtractorError as e:
|
||||
self.report_warning("Cookie request HTTP code: %s" % e.cause.code)
|
||||
@ -292,9 +291,9 @@ class VrtNUIE(GigyaBaseIE):
|
||||
while login_attempt <= 3:
|
||||
try:
|
||||
# get XSRF Token
|
||||
xsrf_req = self._request_webpage('https://token.vrt.be/vrtnuinitlogin',
|
||||
None, note='Requesting XSRF Token', errnote='Could not get XSRF Token',
|
||||
query={'provider':'site', 'destination':'https://www.vrt.be/vrtnu/'})
|
||||
self._request_webpage('https://token.vrt.be/vrtnuinitlogin',
|
||||
None, note='Requesting XSRF Token', errnote='Could not get XSRF Token',
|
||||
query={'provider': 'site', 'destination': 'https://www.vrt.be/vrtnu/'})
|
||||
|
||||
post_data = {
|
||||
'UID': auth_info['UID'],
|
||||
@ -308,7 +307,7 @@ class VrtNUIE(GigyaBaseIE):
|
||||
break
|
||||
|
||||
# do login
|
||||
vrt_token = self._request_webpage(
|
||||
self._request_webpage(
|
||||
'https://login.vrt.be/perform_login',
|
||||
None, note='Requesting a token', errnote='Could not get a token',
|
||||
headers={}, data=urlencode_postdata(post_data)
|
||||
|
Loading…
Reference in New Issue
Block a user