1
0
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:
Mike Fährmann 2024-05-21 22:50:25 +02:00
parent 6276f5cd94
commit 141efc2ad3
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -495,7 +495,13 @@ class TwitterExtractor(Extractor):
username, password = self._get_auth_info()
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):