mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-02-16 20:30:20 +00:00
Update twitter.py
This commit is contained in:
parent
9b6e3940a7
commit
e84f0673bb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue