Reduce number of characters in filename from 255 to 100

Reduce number of characters in filename from 255 to 100
This commit is contained in:
Arne Allisat
2020-11-06 14:16:09 +01:00
parent 06e42791c4
commit 87092cf4ca
+1 -1
View File
@@ -395,7 +395,7 @@ def get_filename_safe_string(string):
string = string.replace(char, "")
string = string.rstrip(".")
string = (string[:255]) if len(string) > 255 else string
string = (string[:100]) if len(string) > 100 else string
return string