-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
The byte string format goes over the specified byte value if it's in a middle of a multi-byte utf-8 codepoint #10060
Labels
Comments
nurupo
added a commit
to nurupo/yt-dlp
that referenced
this issue
May 30, 2024
The byte string-format should be applied after the sanitization is done, as sanitize might replace a single byte character with a multi-byte one, e.g. '/' with '⧸', making the resulting string go over the desired byte limit. Fixes yt-dlp#10060
8 tasks
nurupo
added a commit
to nurupo/yt-dlp
that referenced
this issue
May 30, 2024
The byte string-format should be applied after the sanitization is done, as sanitize might replace a single byte character with a multi-byte one, e.g. '/' with '⧸', making the resulting string go over the desired byte limit. Fixes yt-dlp#10060
nurupo
added a commit
to nurupo/yt-dlp
that referenced
this issue
May 30, 2024
The byte string-format should be applied after the sanitization is done, as sanitize might replace a single byte character with a multi-byte one, e.g. '/' with '⧸', making the resulting string go over the desired byte limit. Fixes yt-dlp#10060
nurupo
added a commit
to nurupo/yt-dlp
that referenced
this issue
May 30, 2024
The byte string-format should be applied after the sanitization is done, as sanitize might replace a single byte character with a multi-byte one, e.g. '/' with '⧸', making the resulting string go over the desired byte limit. Fixes yt-dlp#10060
nurupo
added a commit
to nurupo/yt-dlp
that referenced
this issue
May 30, 2024
The byte string-format should be applied after the sanitization is done, as sanitize might replace a single byte character with a multi-byte one, e.g. '/' with '⧸', making the resulting string go over the desired byte limit. Fixes yt-dlp#10060
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
I want to limit the filename to be at most 68 bytes. The byte string format should supposedly help me with that, by specifying
-o '%(title).68B'
. Yet, the filename I get is 70 bytes.Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: