1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-24 20:07:41 +00:00

Update pdf upload

Translation of uploadprogress dialog
This commit is contained in:
Ozzieisaacs
2019-02-23 14:26:02 +01:00
parent 17b7333992
commit 1a7052b287
8 changed files with 443 additions and 461 deletions

View File

@@ -230,7 +230,10 @@ def get_valid_filename(value, replace_whitespace=True):
value = value[:128]
if not value:
raise ValueError("Filename cannot be empty")
return value
if sys.version_info.major == 3:
return value
else:
return value.decode('utf-8')
def get_sorted_author(value):