aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2024-10-30 19:26:28 +0000
committerGitHub <noreply@github.com>2024-10-30 19:26:28 +0000
commit76802f461332d444e596437c42374fa237fa5174 (patch)
tree579ef5054aca9264e66ba4c92908825b4704f0da
parentd569a8845254d90ce13ad74ae76695e8d6441068 (diff)
[ie/twitter] Remove cookies migration workaround (#11392)
Closes #11338 Authored by: bashonly
-rw-r--r--yt_dlp/extractor/twitter.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/yt_dlp/extractor/twitter.py b/yt_dlp/extractor/twitter.py
index 5adaf1639..8196ce6c3 100644
--- a/yt_dlp/extractor/twitter.py
+++ b/yt_dlp/extractor/twitter.py
@@ -150,14 +150,6 @@ class TwitterBaseIE(InfoExtractor):
def is_logged_in(self):
return bool(self._get_cookies(self._API_BASE).get('auth_token'))
- # XXX: Temporary workaround until twitter.com => x.com migration is completed
- def _real_initialize(self):
- if self.is_logged_in or not self._get_cookies('https://twitter.com/').get('auth_token'):
- return
- # User has not yet been migrated to x.com and has passed twitter.com cookies
- TwitterBaseIE._API_BASE = 'https://api.twitter.com/1.1/'
- TwitterBaseIE._GRAPHQL_API_BASE = 'https://twitter.com/i/api/graphql/'
-
@functools.cached_property
def _selected_api(self):
return self._configuration_arg('api', ['graphql'], ie_key='Twitter')[0]