mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-23 20:38:47 +03:00
Refactor, make default notrim
This commit is contained in:
@@ -2852,12 +2852,6 @@ OUTTMPL_TYPES = {
|
||||
'pl_infojson': 'info.json',
|
||||
}
|
||||
|
||||
# https://en.m.wikipedia.org/wiki/Comparison_of_file_systems#Limits
|
||||
if platform.system() in ('Darwin', 'Windows'):
|
||||
DEFAULT_MAX_FILE_NAME = f'{255 - len(".annotations.xml")}c'
|
||||
else:
|
||||
DEFAULT_MAX_FILE_NAME = f'{255 - len(".annotations.xml".encode(sys.getfilesystemencoding()))}b'
|
||||
|
||||
# As of [1] format syntax is:
|
||||
# %[mapping_key][conversion_flags][minimum_width][.precision][length_modifier]type
|
||||
# 1. https://docs.python.org/2/library/stdtypes.html#string-formatting
|
||||
|
||||
Reference in New Issue
Block a user