mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
[twitter] transfer 'twitter.com' cookies to 'x.com' (#5597)
This commit is contained in:
parent
6276f5cd94
commit
141efc2ad3
@ -495,7 +495,13 @@ class TwitterExtractor(Extractor):
|
|||||||
|
|
||||||
username, password = self._get_auth_info()
|
username, password = self._get_auth_info()
|
||||||
if username:
|
if username:
|
||||||
self.cookies_update(_login_impl(self, username, password))
|
return self.cookies_update(_login_impl(self, username, password))
|
||||||
|
|
||||||
|
for cookie in self.cookies:
|
||||||
|
if cookie.domain == ".twitter.com":
|
||||||
|
self.cookies.set(
|
||||||
|
cookie.name, cookie.value, domain=self.cookies_domain,
|
||||||
|
expires=cookie.expires, secure=cookie.secure)
|
||||||
|
|
||||||
|
|
||||||
class TwitterUserExtractor(TwitterExtractor):
|
class TwitterUserExtractor(TwitterExtractor):
|
||||||
|
Loading…
Reference in New Issue
Block a user