mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
[twitter/t.co] implemented.
This commit is contained in:
parent
f33b7b5eb4
commit
9e20a9c447
@ -615,5 +615,5 @@ class TwitterShortenerIE(TwitterBaseIE):
|
||||
_VALID_URL = r'https?://t.co/'
|
||||
|
||||
def _real_extract(self, url):
|
||||
print(url)
|
||||
return self.url_result(url, 'Generic')
|
||||
new_url = self._request_webpage(url, None, headers={'User-Agent': 'curl'}).geturl()
|
||||
return self.url_result(new_url)
|
||||
|
Loading…
Reference in New Issue
Block a user