diff --git a/data/interfaces/bookstrap/audio.html b/data/interfaces/bookstrap/audio.html index a345d6fce..015c0a653 100644 --- a/data/interfaces/bookstrap/audio.html +++ b/data/interfaces/bookstrap/audio.html @@ -13,7 +13,8 @@ %endif Recent AudioBooks %if lazylibrarian.CONFIG['USER_ACCOUNTS'] == True: - + + %endif
diff --git a/data/interfaces/bookstrap/books.html b/data/interfaces/bookstrap/books.html index 8c8cc7ced..3d0226d96 100644 --- a/data/interfaces/bookstrap/books.html +++ b/data/interfaces/bookstrap/books.html @@ -14,7 +14,8 @@ Additions Downloads %if lazylibrarian.CONFIG['USER_ACCOUNTS'] == True: - + + %endif
%if len(languages) > 1: diff --git a/data/interfaces/bookstrap/magazines.html b/data/interfaces/bookstrap/magazines.html index 1c2ce994f..60de7d3d2 100644 --- a/data/interfaces/bookstrap/magazines.html +++ b/data/interfaces/bookstrap/magazines.html @@ -14,7 +14,8 @@ %endif Recent Issues %if lazylibrarian.CONFIG['USER_ACCOUNTS'] == True: - + + %endif

diff --git a/lazylibrarian/qbittorrent.py b/lazylibrarian/qbittorrent.py index dffecaf51..29e4513cd 100644 --- a/lazylibrarian/qbittorrent.py +++ b/lazylibrarian/qbittorrent.py @@ -11,6 +11,7 @@ # along with Lazylibrarian. If not, see . +import json import mimetypes import os import platform @@ -120,7 +121,7 @@ def _command(self, command, args=None, content_type=None, files=None): # some commands return json if contentType == 'application/json': - return response.json() + return json.loads(response.read()) else: # some commands return plain text resp = response.read()