fixed book download, linux path is case sensitive
This commit is contained in:
parent
ed03ea4a1c
commit
6a2f89d36e
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,6 +4,10 @@ db.sqlite3
|
|||||||
dummyusers.json
|
dummyusers.json
|
||||||
*.prof
|
*.prof
|
||||||
|
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
.vscode
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
BIN
CalibreWebCompanion/db.sqlite3.bak
Normal file
BIN
CalibreWebCompanion/db.sqlite3.bak
Normal file
Binary file not shown.
@ -149,7 +149,7 @@ class BookDetailView(generic.DetailView):
|
|||||||
pass
|
pass
|
||||||
context["imgpath"] = context["object"].path + "/cover.jpg"
|
context["imgpath"] = context["object"].path + "/cover.jpg"
|
||||||
download = Data.objects.get(book=context["object"].id)
|
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
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
10
CalibreWebCompanion/settings.json.bak
Normal file
10
CalibreWebCompanion/settings.json.bak
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user