mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 03:43:02 +00:00
[extractor/kick] Make initial request non-fatal
Authored by: bashonly
This commit is contained in:
parent
141a8dff98
commit
0a6918a4a1
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
class KickBaseIE(InfoExtractor):
|
class KickBaseIE(InfoExtractor):
|
||||||
def _real_initialize(self):
|
def _real_initialize(self):
|
||||||
self._request_webpage(HEADRequest('https://kick.com/'), None, 'Setting up session')
|
self._request_webpage(HEADRequest('https://kick.com/'), None, 'Setting up session', fatal=False)
|
||||||
xsrf_token = self._get_cookies('https://kick.com/').get('XSRF-TOKEN')
|
xsrf_token = self._get_cookies('https://kick.com/').get('XSRF-TOKEN')
|
||||||
if not xsrf_token:
|
if not xsrf_token:
|
||||||
self.write_debug('kick.com did not set XSRF-TOKEN cookie')
|
self.write_debug('kick.com did not set XSRF-TOKEN cookie')
|
||||||
|
|
Loading…
Reference in a new issue