1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-21 23:33:10 +00:00

[twitter/t.co] implemented.

This commit is contained in:
Unknown 2020-10-17 10:24:57 +02:00
parent f33b7b5eb4
commit 9e20a9c447

View file

@ -615,5 +615,5 @@ class TwitterShortenerIE(TwitterBaseIE):
_VALID_URL = r'https?://t.co/' _VALID_URL = r'https?://t.co/'
def _real_extract(self, url): def _real_extract(self, url):
print(url) new_url = self._request_webpage(url, None, headers={'User-Agent': 'curl'}).geturl()
return self.url_result(url, 'Generic') return self.url_result(new_url)