Verified Commit 1749ae19 authored by WorldTeacher's avatar WorldTeacher
Browse files

feat(settings): add support for separate magic shelf download directory

parent 910bbfff
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -130,6 +130,19 @@ You can override this path via **Tools → BookLore Sync → Shelf Sync → Down

A **Reset** button in that dialog restores the automatically detected path.

### Separate magic shelf folder

By default, magic shelf downloads use the same download directory as regular shelf downloads. You can optionally separate them:

1. Open **Tools → BookLore Sync → Display & Storage**.
2. Enable **Separate magic shelf folder: ON**.
3. When prompted, enter a path for the magic shelf download directory. The plugin creates it if it does not exist.
4. After confirming the path, the plugin offers to move existing magic shelf files from the shared directory to the new one.

When enabled, the **Magic download dir** entry becomes editable and shows the current path. Magic shelf syncs will use this directory instead of the shared download directory. Shared books (present on both shelves) are left in the main download directory.

To revert, disable the toggle. The plugin offers to move magic shelf files back to the shared download directory.

### Storage guard (minimum free space)

Before each download, the plugin checks available disk space and enforces a minimum-free-space threshold.
+2 −0
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ Settings are read and written via the menus in **Tools → BookLore Sync**. You
| `shelf_use_original_filename` | boolean | `true` | Save downloaded books using the server's original filename (stem + `_<id>`) instead of deriving the name from the book title |
| `delete_sdr_on_book_delete` | boolean | `false` | When deleting a shelf book, also delete its `.sdr` sidecar directory. Only applies when `delete_removed_shelf_books` is also `true` |
| `min_free_space_mb` | integer | `500` | Minimum free disk space threshold (in MB) required before downloading shelf books |
| `magic_separate_folder` | boolean | `false` | Use a separate download directory for magic shelf downloads instead of the shared directory |
| `magic_download_dir` | string | *(auto)* | Download directory for magic shelf books when `magic_separate_folder` is enabled. Defaults to `<download_dir>/Magic` |

---