Commit 9a8a1f75 authored by Ozzieisaacs's avatar Ozzieisaacs

For for error unrar binary not found

parent 93f65484
...@@ -683,6 +683,7 @@ def _configuration_update_helper(): ...@@ -683,6 +683,7 @@ def _configuration_update_helper():
reboot_required |= reboot reboot_required |= reboot
# Rarfile Content configuration # Rarfile Content configuration
_config_string(to_save, "config_rarfile_location") _config_string(to_save, "config_rarfile_location")
if "config_rarfile_location" in to_save:
unrar_status = helper.check_unrar(config.config_rarfile_location) unrar_status = helper.check_unrar(config.config_rarfile_location)
if unrar_status: if unrar_status:
return _configuration_result(unrar_status, gdriveError) return _configuration_result(unrar_status, gdriveError)
......
...@@ -778,7 +778,7 @@ def get_download_link(book_id, book_format, client): ...@@ -778,7 +778,7 @@ def get_download_link(book_id, book_format, client):
book_format = book_format.split(".")[0] book_format = book_format.split(".")[0]
book = calibre_db.get_filtered_book(book_id) book = calibre_db.get_filtered_book(book_id)
if book: if book:
data1 = data = calibre_db.get_book_format(book.id, book_format.upper()) data1 = calibre_db.get_book_format(book.id, book_format.upper())
else: else:
abort(404) abort(404)
if data1: if data1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment