From e84f0673bbc04cffee699b852e1a1c8d82176c04 Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Wed, 10 Aug 2022 05:27:46 -0700 Subject: [PATCH] Update twitter.py --- youtube_dl/extractor/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index 407564372..31b4df8ae 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -464,7 +464,7 @@ class TwitterIE(TwitterBaseIE): timestamp = unified_timestamp(status.get('created_at')) # Keep the file name short so it doesn't exceed filesystem limits - title = description + title = re.sub(r'\s+(https?://[^ ]+)', '', description) if len(title) > 40: trim = 35 # allow up to 10 more characters to find whitespace