mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-30 21:40:00 +00:00
Fix typos and text consistency
This commit is contained in:
parent
ab11919c0b
commit
d6aa29b095
@ -884,7 +884,7 @@ def save_cover_from_filestorage(filepath, saved_filename, img):
|
|||||||
log.error("Failed to create path for cover")
|
log.error("Failed to create path for cover")
|
||||||
return False, _("Failed to create path for cover")
|
return False, _("Failed to create path for cover")
|
||||||
try:
|
try:
|
||||||
# upload of jgp file without wand
|
# upload of jpg file without wand
|
||||||
if isinstance(img, requests.Response):
|
if isinstance(img, requests.Response):
|
||||||
with open(os.path.join(filepath, saved_filename), 'wb') as f:
|
with open(os.path.join(filepath, saved_filename), 'wb') as f:
|
||||||
f.write(img.content)
|
f.write(img.content)
|
||||||
@ -1013,14 +1013,14 @@ def check_unrar(unrar_location):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if not os.path.exists(unrar_location):
|
if not os.path.exists(unrar_location):
|
||||||
return _('Unrar binary file not found')
|
return _('UnRar binary file not found')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
unrar_location = [unrar_location]
|
unrar_location = [unrar_location]
|
||||||
value = process_wait(unrar_location, pattern='UNRAR (.*) freeware')
|
value = process_wait(unrar_location, pattern='UNRAR (.*) freeware')
|
||||||
if value:
|
if value:
|
||||||
version = value.group(1)
|
version = value.group(1)
|
||||||
log.debug("unrar version %s", version)
|
log.debug("UnRar version %s", version)
|
||||||
|
|
||||||
except (OSError, UnicodeDecodeError) as err:
|
except (OSError, UnicodeDecodeError) as err:
|
||||||
log.error_or_exception(err)
|
log.error_or_exception(err)
|
||||||
@ -1065,7 +1065,7 @@ def check_calibre(calibre_location):
|
|||||||
|
|
||||||
except (OSError, UnicodeDecodeError) as err:
|
except (OSError, UnicodeDecodeError) as err:
|
||||||
log.error_or_exception(err)
|
log.error_or_exception(err)
|
||||||
return _('Error excecuting Calibre')
|
return _('Error executing Calibre')
|
||||||
|
|
||||||
|
|
||||||
def json_serial(obj):
|
def json_serial(obj):
|
||||||
|
Loading…
Reference in New Issue
Block a user