Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[twitter] %(title)s contains another %(uploader)s, even template already has a %(uploader)s #2587

Closed
6 of 7 tasks
NewUserHa opened this issue Feb 1, 2022 · 4 comments
Closed
6 of 7 tasks
Labels
invalid This doesn't seem right site-bug Issue with a specific website

Comments

@NewUserHa
Copy link

NewUserHa commented Feb 1, 2022

Checklist

Region

No response

Description

If the template is like %(uploader)s-%(title)s.%(ext)s, then there will be two %(uploader)s in the file name.

Also, the title actually is using the description as content, which may have a very long length.
What about shrinking it, or changing it to other Infos maybe like the number '1468039525062803458' in the url?

Verbose log

[debug] Command-line config: ['-vU', '-o', '%(uploader)s-%(title)s.%(ext)s', 'https://mobile.twitter.com/ystk_yrk/status/1468039525062803458']
[debug] Encodings: locale cp936, fs utf-8, out utf-8, err utf-8, pref cp936
[debug] yt-dlp version 2022.01.21 [f20d607b0]
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.17134-SP0
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.01.21, Current version: 2022.01.21
yt-dlp is up to date (2022.01.21)
[debug] [twitter] Extracting URL: https://mobile.twitter.com/ystk_yrk/status/1468039525062803458
[twitter] 1468039525062803458: Downloading guest token
[twitter] 1468039525062803458: Downloading JSON metadata
[twitter] 1468039525062803458: Downloading m3u8 information
[debug] Sort order given by extractor: res, br, size, proto
[debug] Formats sorted by: hasvid, ie_pref, res, tbr, vbr, abr, filesize, fs_approx, proto, lang, quality, fps, hdr:12(7), vcodec:vp9.2(10), acodec, asr, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 1468039525062803458: Downloading 1 format(s): http-2176
[debug] Invoking downloader on "https://video.twimg.com/ext_tw_video/1468039498902560770/pu/vid/720x1280/3K53-yHgQ5SQVmKC.mp4?tag=12"
[download] Destination: 吉高由里子-吉高由里子 - さぁ! 8話も放送され 9話も撮りきり ラストスパート!待ってました10話! おっ⁉︎撮休か⁉︎ 何するか⁉︎ 寝溜めするか⁉︎ 夜ふかしするか⁉︎ おぅん⁉︎どうするんだい⁉︎  あー😩遊ぶよね 元気に朝から遊ぶよね 上手くもないから 走り回ってボール探すよね ねぇ🥺ラスト頑張るから🥺許して🥺.mp4
[download] 100% of 503.87KiB in 00:02
@NewUserHa NewUserHa added site-bug Issue with a specific website triage Untriaged issue labels Feb 1, 2022
@pukkandan
Copy link
Member

That IS the title of the webpage. If you think there is some other data that is more appropriate as title, let us know
image

@pukkandan pukkandan added invalid This doesn't seem right and removed triage Untriaged issue labels Feb 1, 2022
@NewUserHa
Copy link
Author

NewUserHa commented Feb 6, 2022

ERROR: unable to open for writing: [Errno 22] Invalid argument: if the description has an invalid string for a path, and it is very common on twitter.
consider reopening this issue?

@pukkandan
Copy link
Member

See #1136

@NewUserHa
Copy link
Author

ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

2 participants