Refactor, make default notrim

This commit is contained in:
7x11x13
2025-01-08 13:03:15 -05:00
parent ba9cfb23f2
commit 8949a4fef0
4 changed files with 20 additions and 32 deletions
-6
View File
@@ -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