Commit graph

88 commits

Author SHA1 Message Date
Broque Thomas
219a36c05b Improve wishlist processing and modal sync logic
Sanitizes wishlist track data for consistent backend/frontend handling, enhances wishlist process state reporting for better UI sync, and refactors frontend modal logic to prevent auto-show conflicts and ensure user-driven visibility. Also improves polling and rehydration to keep frontend state in sync with server-side auto-processing.
2025-09-09 18:28:29 -07:00
Broque Thomas
db26ab8b15 Implement atomic cancel system V2 for downloads
Introduces a new atomic cancel system (V2) for download tasks, ensuring single-step cancellation with proper worker slot management and backend-driven state. Updates both backend (web_server.py) and frontend (script.js) to support V2 cancel API, persistent cancel state, and improved UI handling for cancelling tasks, eliminating race conditions and dual state management.
2025-09-09 16:39:01 -07:00
Broque Thomas
184c38bbb7 Add artist bubble snapshot and hydration system
Introduces backend API endpoints and frontend logic to persist and restore artist download bubble state across page refreshes. Snapshots are saved and hydrated with live download status, ensuring continuity of user progress and UI state. Includes debounce logic for efficient snapshot saving and automatic cleanup of outdated or invalid snapshots.
2025-09-08 13:53:48 -07:00
Broque Thomas
8bb020840e Update script.js 2025-09-08 09:21:14 -07:00
Broque Thomas
83c4921cdd Unify download retry logic and improve batch completion checks
Refactored download monitor to handle error and timeout retries directly and consistently, removing legacy retry methods. Improved batch completion logic to ensure batches are only marked complete when all tasks are truly finished, preventing premature completion. Updated client-side polling to never stop automatically, using exponential backoff on failures, and fixed worker counting to exclude post-processing tasks. Enhanced post-processing and verification workflows to avoid double completion callbacks and ensure proper task state transitions.
2025-09-07 19:57:32 -07:00
Broque Thomas
6773ef1c5f Add post-processing verification for downloads
Introduces a new post-processing workflow in web_server.py that verifies file existence and integrity before marking download tasks as completed. Updates status handling to include a 'post_processing' state and reflects this in the frontend UI, ensuring users see accurate progress and preventing premature completion status for downloads.
2025-09-07 12:36:28 -07:00
Broque Thomas
d8d12bcc2c Improve download worker management and UI polling
Adds server-side validation and healing for download batch worker counts to prevent ghost workers and orphaned tasks, including periodic batch state checks and recovery logic. Enhances thread safety with batch-specific locks and improves error handling in worker slot management. On the frontend, implements exponential backoff for polling failures, validates server responses, and logs worker count discrepancies for better debugging and UI consistency.
2025-09-06 09:25:15 -07:00
Broque Thomas
c74d60b712 batch process 2025-09-05 13:41:24 -07:00
Broque Thomas
f1bc9c6f24 Update script.js 2025-09-04 14:34:00 -07:00
Broque Thomas
8cedc1f60a Update script.js 2025-09-04 14:08:26 -07:00
Broque Thomas
306001ade8 Improve artist download status updates and UI
Added debounced updates for the artist downloads section to prevent rapid UI refreshes. Enhanced debug logging and error handling for download status changes and bulk completion. Introduced a utility to force refresh all artist download statuses. Updated CSS for better spacing and overflow handling in artist bubble containers and images.
2025-09-04 13:46:50 -07:00
Broque Thomas
871dc6cb1c Add artist album download management UI
Introduces backend API and frontend integration for downloading missing tracks from artist albums and singles. Adds artist download bubbles, management modal, and related state/UI logic to script.js, with supporting styles in style.css. Also refactors some type hints in web_server.py for consistency.
2025-09-04 13:23:54 -07:00
Broque Thomas
245a8d3270 Update script.js 2025-09-03 23:11:43 -07:00
Broque Thomas
245c6dfbf2 scan db on artist page 2025-09-03 23:00:20 -07:00
Broque Thomas
cff48b2498 artist design 2025-09-03 18:40:25 -07:00
Broque Thomas
c29c5d6495 artists page 2025-09-03 18:02:44 -07:00
Broque Thomas
57b0833fe2 'starting...' wasn't needed 2025-09-03 13:53:10 -07:00
Broque Thomas
36cc15f0a9 fix 2025-09-03 13:32:52 -07:00
Broque Thomas
6d40ddf998 Update script.js 2025-09-03 12:14:52 -07:00
Broque Thomas
b08090ebe1 fix 2025-09-03 09:25:02 -07:00
Broque Thomas
f39eb561dc download mising tracks 2025-09-02 23:13:41 -07:00
Broque Thomas
ae98bb8806 sync 2025-09-02 21:27:52 -07:00
Broque Thomas
5806b3672d Update script.js 2025-09-02 14:18:04 -07:00
Broque Thomas
2070e24394 consistency 2025-09-02 14:14:51 -07:00
Broque Thomas
417c76e68c move to backend 2025-09-01 20:34:40 -07:00
Broque Thomas
252eb32bf9 tidal 2025-09-01 19:33:07 -07:00
Broque Thomas
b6fc2f5f07 Update script.js 2025-09-01 10:17:44 -07:00
Broque Thomas
b2c1d21bf0 download missing functionality 2025-09-01 02:37:38 -07:00
Broque Thomas
bd2866b348 Update script.js 2025-08-31 21:44:26 -07:00
Broque Thomas
bde755f6e5 move youtube processing to backend 2025-08-31 21:05:37 -07:00
Broque Thomas
7c7ddc06e0 Update script.js 2025-08-31 15:08:43 -07:00
Broque Thomas
f99c550484 youtube playlists 2025-08-31 14:54:16 -07:00
Broque Thomas
08c55217b6 youtube shell 2025-08-31 13:36:24 -07:00
Broque Thomas
632834b30a ui informaiton 2025-08-30 21:48:41 -07:00
Broque Thomas
b1af7161c8 Update script.js 2025-08-30 21:31:04 -07:00
Broque Thomas
697a255047 move wishlist processing to backend 2025-08-30 21:18:10 -07:00
Broque Thomas
ab9be91a90 auto run wishlist 2025-08-30 09:11:18 -07:00
Broque Thomas
9f6a98a72d add to wishlist on fail 2025-08-29 22:16:50 -07:00
Broque Thomas
079ac5c81d fix wishlist additions 2025-08-29 18:15:41 -07:00
Broque Thomas
3c8e728cd6 Update script.js 2025-08-29 15:31:53 -07:00
Broque Thomas
b88467f949 wishlist 2025-08-29 14:33:05 -07:00
Broque Thomas
017d72b38a wishlist button 2025-08-28 22:19:57 -07:00
Broque Thomas
888299fe83 stream tracking 2025-08-28 18:16:03 -07:00
Broque Thomas
f67a44476f live progress 2025-08-28 18:09:13 -07:00
Broque Thomas
e33d7e7c0d Update script.js 2025-08-28 18:04:39 -07:00
Broque Thomas
c5617d874e stream 2025-08-28 17:57:04 -07:00
Broque Thomas
bf48569c8b sequential sync 2025-08-28 15:23:20 -07:00
Broque Thomas
58e160aba5 cancel button 2025-08-28 13:04:58 -07:00
Broque Thomas
fd9fcf6c90 cleanup batch after closing completed modal 2025-08-27 21:27:10 -07:00
Broque Thomas
6ff6cc0e59 fix a break in front end content from backend 2025-08-27 15:32:20 -07:00