diff --git a/.gitignore b/.gitignore index 4f995e8..aed35f7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,10 @@ db.sqlite3 dummyusers.json *.prof + +# IDE +.vscode + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/CalibreWebCompanion/db.sqlite3.bak b/CalibreWebCompanion/db.sqlite3.bak new file mode 100644 index 0000000..8ad6fa7 Binary files /dev/null and b/CalibreWebCompanion/db.sqlite3.bak differ diff --git a/CalibreWebCompanion/library/views.py b/CalibreWebCompanion/library/views.py index 31629bc..9021868 100644 --- a/CalibreWebCompanion/library/views.py +++ b/CalibreWebCompanion/library/views.py @@ -149,7 +149,7 @@ class BookDetailView(generic.DetailView): pass context["imgpath"] = context["object"].path + "/cover.jpg" download = Data.objects.get(book=context["object"].id) - context["download"] = f"{context['object'].path}/{download.name}.{download.format}" + context["download"] = f"{context['object'].path}/{download.name}.{download.format.lower()}" return context diff --git a/CalibreWebCompanion/settings.json.bak b/CalibreWebCompanion/settings.json.bak new file mode 100644 index 0000000..33d6e5d --- /dev/null +++ b/CalibreWebCompanion/settings.json.bak @@ -0,0 +1,10 @@ +{ + "CALIBRE_DIR": "PATH\\TO\\your\\calibre\library", + "SECRET_KEY": "u(8^+rb%rz5hsx4v^^y(ul7g(4n7a8!db@s*9(m5cs*2_ppy8+", + "ALLOWED_HOSTS": [ + "127.0.0.1" + ], + "INTERNAL_IPS": [ + "127.0.0.1" + ] +} \ No newline at end of file