photonix
photonix copied to clipboard
Photo download button doesn't respect library path.
Describe the bug Download fails to account correctly for correct library path.
To Reproduce Steps to reproduce the behavior:
- Create a library called "Photos" with a data path of /data/photos2
- View a photo through the UI
- Click the "download" button
- File path given fails to download since it tries to download from path of 127.0.0.1:8000/photos/path instead of 127.0.0.1:8000/photos2/path
Expected behavior File should be downloaded
Server (please complete the following information):
- QNAP NAS
- OS: QNAP QTS 5.0
- Architecture: X86
I'm not sure if this is because the library itself is called "Photos" (instead of "Photos2") or if it's looking to a hardcoded /data/photos location.
I could be wrong as I'm just starting to explore this project, but it looks to be hard coded in settings.py. Those may be defaults that should be overridden by user settings, but that's a good place to start debugging.