aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--youtube_dlc/extractor/twitter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/twitter.py b/youtube_dlc/extractor/twitter.py
index 78d8ebdd5..95cfa8154 100644
--- a/youtube_dlc/extractor/twitter.py
+++ b/youtube_dlc/extractor/twitter.py
@@ -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') \ No newline at end of file
+ new_url = self._request_webpage(url, None, headers={'User-Agent': 'curl'}).geturl()
+ return self.url_result(new_url)