chore: removed locks

This commit is contained in:
2025-11-02 15:18:30 +01:00
parent ec987eff80
commit 64e78bb9b8
2 changed files with 5 additions and 82 deletions

View File

@@ -35,22 +35,15 @@ Added the following endpoints to `/src/server/api/anime.py`:
- Calls `SeriesApp.Download()` with folder list
- Used when user selects multiple series and clicks download
#### `/api/v1/anime/process/locks` (GET)
- Returns current lock status for rescan and download processes
- Response: `{success: boolean, locks: {rescan: {is_locked: boolean}, download: {is_locked: boolean}}}`
- Used to update UI status indicators and disable buttons during operations
### 2. Updated Frontend API Calls
Modified `/src/server/web/static/js/app.js` to use correct endpoint paths:
| Old Path | New Path | Purpose |
| --------------------------- | ----------------------------- | ------------------------- |
| `/api/add_series` | `/api/v1/anime/add` | Add new series |
| `/api/download` | `/api/v1/anime/download` | Download selected folders |
| `/api/status` | `/api/v1/anime/status` | Get library status |
| `/api/process/locks/status` | `/api/v1/anime/process/locks` | Check process locks |
| Old Path | New Path | Purpose |
| ----------------- | ------------------------ | ------------------------- |
| `/api/add_series` | `/api/v1/anime/add` | Add new series |
| `/api/download` | `/api/v1/anime/download` | Download selected folders |
| `/api/status` | `/api/v1/anime/status` | Get library status |
### 3. Verified Existing Endpoints