Commit graph

644 commits

Author SHA1 Message Date
Broque Thomas
c0c05c7b89 Fix race condition preventing failed tracks from being added to wishlist
Root cause: When album downloads completed, the frontend immediately closed
the modal and called /api/playlists/cleanup_batch, which deleted the batch
from memory. The wishlist processing thread (submitted to executor) would
then try to access the batch and fail silently because it was already deleted.

This explains why:
- Wishlist auto-processing worked (different timing/3-second delay)
- Manual "Add to Wishlist" button worked (different code path, before downloads)
- Album modal failed tracks didn't get added (race condition)

The fix prevents batch cleanup until wishlist processing completes:

Backend (web_server.py):
1. Mark wishlist_processing_started=True when submitting processing job
2. Mark wishlist_processing_complete=True when processing finishes
3. Block cleanup endpoint if processing in progress (return 202)

Frontend (script.js):
4. Handle 202 response and retry cleanup after 2-second delay

This eliminates the race condition while maintaining async processing and
ensuring all failed/cancelled tracks are properly added to the wishlist.
2026-01-26 16:44:31 -08:00
Broque Thomas
66e906fece fix: enable album folder organization for Discover page downloads
Updated startMissingTracksProcess in script.js to recognize discover_album_ IDs as album downloads. This ensures that albums downloaded from the Discover page (e.g., Recent Releases) are correctly organized into "Artist/Album" folders instead of being treated as flat playlists.
2026-01-26 11:42:45 -08:00
Broque Thomas
6096049c50 Fix album tracks added as singles from Library page with iTunes source
Library page was using album data from discography listing while Artists page used track.album from API. With iTunes, these could have different track counts, causing different album_type classifications.

  - Updated handleAddToWishlist to use track.album data like Artists page does
  - Added album_type copying to owned releases in merge_discography_data
2026-01-25 17:44:17 -08:00
Broque Thomas
f4365fa836 Fix artist image not appearing for artist bubble, artist bubble modal or when an artist is selected in search. 2026-01-25 10:51:02 -08:00
Broque Thomas
905e98016f Fix watchlist artist config and add image at insert when Itunes source. 2026-01-25 09:24:28 -08:00
Broque Thomas
47c45ddea7 feat: dynamic music source labels in discovery modals
- Added global currentMusicSourceName variable to track active source
- Updated discovery modal to show "Apple Music" when iTunes is active
- Replaced hardcoded "Spotify" in modal titles, headers, and descriptions
- Discovery modals now automatically reflect the correct music source (Spotify/Apple Music)
2026-01-25 00:35:16 -08:00
Broque Thomas
59848acaf3 feat: dynamic source labels and enhanced connection testing
- Display "Apple Music" instead of "Spotify" in UI when iTunes is active source
- Enhanced connection test messages to indicate Spotify config/auth status
- Fixed similar artists requiring Spotify re-scan when Spotify becomes available
- Fixed hero slider buttons failing for iTunes-only artists
- Updated activity feed items to show correct source name dynamically
2026-01-25 00:29:33 -08:00
Broque Thomas
4cbb3c952b Fix 'view discog' button on discover hero slider when itunes is primary source. 2026-01-24 23:58:08 -08:00
Broque Thomas
3cb88669e3 Fix iTunes-only Discover page not loading data
- Add similar artists fetching to web UI scan loop
  - Add database migration for UNIQUE constraint on similar_artists table                                          - Add source-agnostic /api/discover/album endpoint for iTunes support
  - Fix NOT NULL constraint on discovery_recent_albums blocking iTunes albums
  - Add fallback to watchlist artists when no similar artists exist
  - Add /api/discover/refresh and /api/discover/diagnose endpoints
  - Add retry logic with exponential backoff for iTunes API calls
  - Ensure cache_discovery_recent_albums runs even when pool population skips
2026-01-24 21:48:17 -08:00
Broque Thomas
2170ffa99e Fix discovery modal fix button for iTunes source and ListenBrainz playlists
- Fix platform detection to include is_listenbrainz_playlist check when generating fix buttons
  - Update openDiscoveryFixModal to check both listenbrainzPlaylistStates and youtubePlaylistStates
  - Update searchDiscoveryFix to detect discovery_source and use appropriate search API
  - Add /api/itunes/search_tracks endpoint for manual track search when using iTunes source
  - Update selectDiscoveryFixTrack state lookup to include ListenBrainz

  Fix button now works correctly for all platforms (YouTube, ListenBrainz, Tidal, Beatport) with both Spotify
  and iTunes discovery sources.
2026-01-24 14:25:27 -08:00
Broque Thomas
1560726bbc rebuild discovery pool flow to allow multiprocessing of itunes and spotfiy. each getting their own pool. 2026-01-23 14:25:26 -08:00
Broque Thomas
fecd371b5e Add lazy loading for artist images across UI
Implements lazy loading of artist images in search results, artist pages, and similar artist bubbles to improve performance and user experience. Updates the iTunes client to prefer explicit album versions and deduplicate albums accordingly. Adds a new API endpoint to fetch artist images, and updates frontend logic to asynchronously fetch and display images where missing.
2026-01-23 07:38:03 -08:00
Broque Thomas
f12478ee70 Add iTunes fallback and improve artist/album handling
Adds iTunes fallback to SpotifyClient for search and metadata when Spotify is not authenticated. Updates album type logic to distinguish EPs, singles, and albums more accurately. Refactors watchlist database methods to support both Spotify and iTunes artist IDs. Improves deduplication and normalization of album names from iTunes. Updates web server and frontend to use new album type logic and support both ID types. Adds artist bubble snapshot example data.
2026-01-22 19:12:14 -08:00
Broque Thomas
fb56fbca5f Enhance wishlist auto-processing detection and UI feedback
Added backend support for reporting current auto-processing state and cycle in the wishlist stats API. Updated frontend to detect and handle auto-processing start, close modals, and notify users, as well as improved countdown timer updates and conflict handling when starting manual processing.
2026-01-13 10:00:17 -08:00
Broque Thomas
030757fe12 Improve wishlist deduplication and timer reset logic
Enhanced wishlist and watchlist processing to deduplicate tracks during both sanitization and filtering, preventing duplicate downloads and processing. Added explicit resets of next run timer variables to ensure accurate scheduling after each cycle. Updated countdown timer display in the UI to show '0s' when timer reaches zero instead of hiding it.
2026-01-11 15:46:47 -08:00
Broque Thomas
a8766828d9 Add content type filters for watchlist artists
Introduces new filters for live versions, remixes, acoustic versions, and compilation albums to the watchlist artist configuration. Updates the database schema, backend API, and web UI to support these options, allowing users to customize which content types are included for each artist in their watchlist.
2026-01-11 01:33:39 -08:00
Broque Thomas
c251edc709 Improve stuck flag recovery and album classification
Adds critical fixes to reschedule timers after stuck flag recovery for wishlist and watchlist processes, preventing deadlocks and ensuring continuity. Refines album classification by prioritizing Spotify's album_type over track count heuristics, and ensures album_type is included in API responses. Updates frontend logic to pass and use fresh album/artist context for discover_album modals, improving metadata accuracy and display.
2026-01-06 16:04:05 -08:00
Broque Thomas
7d22671628 Revert "Improve album classification and modal data handling"
This reverts commit b32871cf28.
2026-01-06 15:20:30 -08:00
Broque Thomas
b32871cf28 Improve album classification and modal data handling
Refines album/single classification in get_wishlist_stats by considering explicit 'album' type for short multi-track releases. Also updates openDownloadModalForRecentAlbum to include total_tracks and album_type in album data for more accurate processing.
2026-01-06 14:27:14 -08:00
Broque Thomas
af2265a68a Improve YouTube download handling and add Spotify search API
Enhanced download status and post-processing logic to properly handle YouTube downloads alongside Soulseek transfers. Improved file organization for simple downloads, moving singles without album info directly to the Transfer root. Added a new generic Spotify search API endpoint. Updated frontend logic to correctly display YouTube download titles and results, and improved filename parsing for YouTube tracks.
2026-01-04 20:16:08 -08:00
Broque Thomas
c9939ac418 Update script.js 2026-01-04 15:14:49 -08:00
Broque Thomas
58f7fdb005 style youtube cards 2026-01-04 14:56:05 -08:00
Broque Thomas
61e822bf6f Add robust YouTube streaming support and improve format checks
Enhances streaming logic to better support YouTube as a download source, including improved filename handling, fuzzy file matching, and search query generation. Updates format checks in the frontend to skip them for YouTube (always MP3). Refactors backend to use a unified download status API for both Soulseek and YouTube, and improves service test messaging based on the active download mode.
2026-01-04 12:30:35 -08:00
Broque Thomas
c94b1d2f5b Add hybrid Soulseek/YouTube download orchestration - TESTING
Introduces a DownloadOrchestrator class to route downloads between Soulseek and YouTube based on user-configurable modes (Soulseek only, YouTube only, Hybrid with fallback). Updates web server and UI to support new download source settings, including hybrid mode options and YouTube confidence threshold. Refactors YouTube client for thread-safe download management and bot detection bypass. Ensures quality filtering is skipped for YouTube results and improves file matching and post-processing logic for YouTube downloads.
2026-01-03 22:20:36 -08:00
Broque Thomas
a62f2c34b9 Add Discover page help button and guide
Introduces a help button to the Discover page UI, styled for visibility and accessibility. Adds comprehensive help content explaining all Discover page features, including MusicMap integration, playlist types, seasonal content, and sync/download options.
2026-01-02 21:16:53 -08:00
Broque Thomas
e9a1797687 Add toggle button for download manager panel
Introduces a toggle button in the downloads header to show or hide the download manager side panel. The toggle state is persisted in localStorage, and responsive styles are added for better usability on small screens. Updates HTML structure, JavaScript initialization, and CSS for the new toggle functionality and improved mobile experience.
2026-01-02 11:20:22 -08:00
Broque Thomas
a8935ae8f5 Add $year variable support to file path templates
Introduces the $year variable for album, single, and playlist path templates, allowing users to include the release year in file organization. Updates the backend to extract and provide the year, adjusts the web UI to document the new variable, and updates validation logic to recognize $year as valid in templates.
2026-01-02 08:24:43 -08:00
Broque Thomas
b426d9d1e4 Enhance search UI with dynamic glow and premium design
Increases Spotify search result limits for artists and albums. Adds dynamic glow effects to artist, album, and track cards in the UI using image-based colors. Significantly upgrades the CSS for enhanced dropdowns, cards, and lists with a premium, vibrant, and responsive design.
2025-12-30 22:29:50 -08:00
Broque Thomas
ca130e5000 Update script.js 2025-12-30 11:43:43 -08:00
Broque Thomas
420044387e Add streaming for enhanced search tracks
Introduces a backend API endpoint and frontend logic to allow users to stream individual tracks directly from enhanced search results. Updates the UI to include a play button for each track, adjusts the search mode toggle to default to enhanced search, and refines related styles for improved user experience.
2025-12-29 18:13:50 -08:00
Broque Thomas
0bd1cab9e2 Improve enhanced search results toggle UX
Updated the enhanced search button to toggle showing/hiding previous results, with dynamic icon and text changes. Prevented duplicate event listeners by ensuring single initialization. Improved dropdown visibility logic and user feedback when no results are available.
2025-12-29 15:54:47 -08:00
Broque Thomas
d20609c33b Add search bubble snapshot and download tracking system
Implements a persistent search bubble system for tracking album and track downloads in enhanced search. Adds backend API endpoints for saving and hydrating search bubble snapshots, frontend state management for search download bubbles, UI for displaying and managing active/completed downloads, and associated styles for search bubble cards. This enables users to resume and manage search downloads across page refreshes.
2025-12-29 14:33:59 -08:00
Broque Thomas
1d4fc3b96e include duration in unified search single results. 2025-12-29 11:02:37 -08:00
Broque Thomas
7272860696 Improve artist detail navigation and logging
Updated artist selection actions to log navigation events and use more direct navigation functions. Navigating to library artist details now uses navigateToArtistDetail, and Spotify artist details use selectArtistForDetail after a short delay, improving consistency and user experience.
2025-12-29 10:17:41 -08:00
Broque Thomas
a167a00a0a Add enhanced search with categorized dropdown UI
Implements an enhanced search endpoint in the backend that unifies Spotify and local database results, returning categorized artists, albums, and tracks. Updates the frontend with a new dropdown overlay for live search, debounced input, categorized result rendering, and direct integration with the main results area for album/track selection. Adds new CSS for the dropdown and result cards, and updates the Track dataclass to include image URLs for richer UI display.
2025-12-29 09:56:32 -08:00
Broque Thomas
14a5944ae1 Add enhanced search mode UI and retry logic for downloads
Introduces a search mode toggle in the downloads UI, allowing users to switch between basic and enhanced search modes. Adds new HTML structure, JavaScript logic, and CSS styles for the enhanced search interface (currently placeholder functionality). In the backend, implements a retry system for file discovery after download completion to handle race conditions, with cleanup of stale retry attempts to prevent memory leaks.
2025-12-28 22:24:23 -08:00
Broque Thomas
5d29131530 Add configurable Soulseek search timeout and buffer
Introduces 'search_timeout' and 'search_timeout_buffer' options to Soulseek settings in the config, backend, and web UI. The backend now uses these values to control search duration and polling, allowing users to fine-tune how long searches run and how long to wait for late results.
2025-12-28 21:02:01 -08:00
Broque Thomas
a2bdb93498 Improve matching logic and wishlist album display
Enhanced the music matching engine to use stricter version handling, rebalance title/artist/duration weights, and raise confidence thresholds to reduce false positives. Updated string normalization to better handle separators and special characters. In the web UI, improved album ID sanitization and added a placeholder for missing album images in the wishlist view.
2025-12-28 19:23:50 -08:00
Broque Thomas
4c9f7f3b58 Fix wishlist modal overlay and enable vertical scrolling
Ensures the loading overlay is always hidden when opening the wishlist modal, including on error or early return. Updates CSS to allow vertical scrolling in the modal while keeping horizontal overflow hidden.
2025-12-15 11:21:17 -08:00
Broque Thomas
b50f6c8d9f Add limit parameter to wishlist tracks API
Introduces an optional 'limit' query parameter to the /api/wishlist/tracks endpoint for improved performance when fetching tracks. Updates the frontend to use this parameter, limiting requests to 50 tracks per category when fetching album and single covers.
2025-12-13 08:32:42 -08:00
Broque Thomas
e9c9021db0 Add animated mosaic backgrounds to wishlist categories
Introduces a dynamic mosaic grid background with scrolling album covers for the wishlist category cards in the overview modal. Adds supporting JavaScript functions to extract unique cover images and generate the mosaic HTML, and updates CSS to style and animate the mosaic, including fallbacks and hover effects for improved visual appeal.
2025-12-12 23:02:28 -08:00
Broque Thomas
fca3e641dc Improve artist name extraction in wishlist selection
Enhanced the logic for extracting artist name and ID to handle both object and string formats from Spotify API and sanitized data. Added fallbacks to ensure artist information is correctly retrieved from multiple possible data structures.
2025-12-12 21:19:29 -08:00
Broque Thomas
4587022877 Remove source prefixes from playlist names
Eliminates hardcoded source prefixes (e.g., [Tidal], [YouTube], [Beatport], [ListenBrainz]) from playlist names in both backend and frontend code. Source detection is now handled via virtualPlaylistId prefixes, improving consistency and simplifying playlist name handling throughout the application.
2025-12-12 12:36:45 -08:00
Broque Thomas
8f30f0ab91 Enhance matched downloads with full Spotify metadata
Adds robust track-to-track matching for album and single downloads, enabling enhanced metadata enrichment using Spotify data. Updates both backend and frontend to support matching Soulseek tracks to Spotify tracks, sending full Spotify track objects for improved organization and post-processing. Simplifies context handling for simple downloads and removes legacy flags, ensuring more accurate and consistent metadata for matched downloads.
2025-12-12 07:13:53 -08:00
Broque Thomas
c7e943034d Add customizable file organization templates
Introduces a template-based file organization system for downloads, allowing users to define custom folder and filename structures for albums, singles, and playlists. Updates the backend, config example, web UI, and client-side validation to support template editing, resetting, and error checking. Improves consistency in file placement and metadata handling across all download modes.
2025-12-10 09:46:22 -08:00
Broque Thomas
5e866463ea Prevent duplicate playlist syncs and update UI
Added checks to prevent starting multiple syncs for the same playlist and updated the sync button state immediately for better user feedback. The sync button is now disabled and shows a loading state while syncing is in progress.
2025-12-09 11:36:59 -08:00
Broque Thomas
bab31218bb Improve artist handling and preserve album data in sync
Enhanced handling of artist data to support both string and object formats across the database, sync service, and web server. The sync process now preserves full album and artist objects for tracks, enabling wishlist additions with album cover art. The frontend and API were updated to use the full artist objects, and the UI now formats artist names correctly.
2025-12-09 10:44:54 -08:00
Broque Thomas
c1561b15ab Add dynamic log level control via Web UI
Introduces API endpoints and UI elements to view and change the application's log level from the web interface. Log level changes are applied immediately and persisted in the database. Updates backend logic, logging utilities, and frontend scripts to support this feature.
2025-12-08 12:53:44 -08:00
Broque Thomas
25a8117733 Add wishlist track and album removal with confirmation
Introduces backend API endpoints to remove individual tracks or all tracks from an album in the wishlist. Updates the frontend to display delete buttons for tracks and albums, with confirmation modals before removal, and styles these new UI elements for clarity and usability.
2025-12-08 11:11:08 -08:00
Broque Thomas
b42d0252a1 Add Jellyfin music library selection support
Introduces backend and frontend functionality to list and select Jellyfin music libraries. Adds API endpoints, updates the client logic, and provides a UI selector for users to choose their preferred Jellyfin music library.
2025-12-08 10:20:15 -08:00
Broque Thomas
349d653ca0 Prevent race conditions in wishlist downloads
Adds support for sending specific track IDs from the frontend to the backend when starting wishlist missing downloads. This ensures only the tracks currently visible to the user are processed, preventing race conditions if the wishlist changes between modal open and analysis start. Category filtering remains for backward compatibility.
2025-12-07 14:43:43 -08:00
Broque Thomas
9575d8983c add timer to watchlist/wishlist 2025-11-26 12:14:08 -08:00
Broque Thomas
aba4129193 adjust auto watchlist scan ui 2025-11-26 11:58:29 -08:00
Broque Thomas
14548ec640 watchlist stuck fix 2025-11-26 11:11:28 -08:00
Broque Thomas
28d8dbf5e0 fix listenbrainz wishlist comp 2025-11-25 23:34:56 -08:00
Broque Thomas
e8f9803bd5 Update script.js 2025-11-25 22:07:26 -08:00
Broque Thomas
94fd39cf34 listenbrainz persistence bug 2025-11-25 18:36:59 -08:00
Broque Thomas
a61c581c25 listenbrainz fully connected to discovery modal 2025-11-25 17:41:22 -08:00
Broque Thomas
ffe02d5330 listenbrainz discovery fix 2025-11-25 15:13:41 -08:00
Broque Thomas
6db4409d08 better watchlist live status display for auto and manual scan 2025-11-25 09:21:33 -08:00
Broque Thomas
1749bb62a5 foundation for allowing user to decide which releases to grab per watchlist artist 2025-11-24 17:16:12 -08:00
Broque Thomas
bb816be280 update discoveyr modal to grab album data 2025-11-24 14:51:24 -08:00
Broque Thomas
3be1dc9ace update discovery modal to collect album info 2025-11-24 14:22:32 -08:00
Broque Thomas
178bb7696d update liked songs to include album info 2025-11-24 07:19:15 -08:00
Broque Thomas
c46e2c527e search bar for watchlist 2025-11-23 20:23:30 -08:00
Broque Thomas
cb87496857 clear/clean wishlist button in overview 2025-11-23 19:43:21 -08:00
Broque Thomas
0b2322f225 Wishlist overhaul near complete 2025-11-23 18:22:09 -08:00
Broque Thomas
573bd6080c Feat: Added 'add to wishlist' button on all download missing track modals. 2025-11-23 13:25:35 -08:00
Broque Thomas
3b936d6fdb Update script.js 2025-11-21 18:56:09 -08:00
Broque Thomas
b1391b9466 add failed scan items to wishlist. 2025-11-21 15:29:25 -08:00
Broque Thomas
08e3f6c900 fix liked songs 2025-11-21 13:31:26 -08:00
Broque Thomas
69ea705f5d fix wishlist duplicates 2025-11-19 09:47:56 -08:00
Broque Thomas
357214c7d7 Update script.js 2025-11-18 21:08:28 -08:00
Broque Thomas
12c37fa61c download bubbles for discoverp age 2025-11-18 18:58:37 -08:00
Broque Thomas
52c27ce2a9 cache listenbrainz and update with watchlist 2025-11-18 13:41:45 -08:00
Broque Thomas
c281382a3b fix sync for listenbrainz 2025-11-18 10:30:53 -08:00
Broque Thomas
333d984527 listenbrainz update 2025-11-18 09:57:47 -08:00
Broque Thomas
bc54f2c1a3 listenbrainz playlist support 2025-11-17 22:38:38 -08:00
Broque Thomas
a50e5a59d9 include listenbrainz on settings page 2025-11-17 22:20:30 -08:00
Broque Thomas
c28d7ff407 fix sync functionality on discover page for genre playlists 2025-11-17 22:09:40 -08:00
Broque Thomas
c08df3041e fix sync on discovery page 2025-11-17 19:10:15 -08:00
Broque Thomas
a3f98f29d3 utilize quality profile over preferred. 2025-11-17 14:11:14 -08:00
Broque Thomas
08eb014da8 fix genre discovery 2025-11-17 12:22:49 -08:00
Broque Thomas
cc62b3b48e discover page progress 2025-11-17 10:09:08 -08:00
Broque Thomas
ee266920a9 discover progress 2025-11-17 08:49:49 -08:00
Broque Thomas
5a13b5fe94 discover progress 2025-11-17 08:30:38 -08:00
Broque Thomas
08a4decda8 discover progress 2025-11-16 20:56:08 -08:00
Broque Thomas
86fe7dde1f discover progress 2025-11-16 20:26:19 -08:00
Broque Thomas
f75ffdf6cb discover progress 2025-11-16 16:27:44 -08:00
Broque Thomas
68a15071f1 discover page 2025-11-16 15:33:08 -08:00
Broque Thomas
bd4e0d131e discover page updates 2025-11-16 15:11:42 -08:00
Broque Thomas
eaa27038d9 wishlist modal bug fix 2025-11-12 19:29:41 -08:00
Broque Thomas
abbb93f053 scan tool 2025-11-12 18:35:07 -08:00
Broque Thomas
97d3af5ec6 save setting toggle 2025-11-12 11:15:36 -08:00
Broque Thomas
605afc0695 auto m3u download for playlists 2025-11-11 21:04:33 -08:00
Broque Thomas
d19029cfc6 Update script.js 2025-11-11 20:54:43 -08:00
Broque Thomas
77ae6b737a export as m3u 2025-11-11 20:42:09 -08:00
Broque Thomas
5349ae3871 hero design 2025-11-11 20:19:34 -08:00
Broque Thomas
91bb767faa add to watchlist button 2025-11-11 19:59:49 -08:00
Broque Thomas
42faf2ad31 Update script.js 2025-11-11 19:37:10 -08:00
Broque Thomas
b0cfdf5271 progress 2025-11-11 17:05:44 -08:00
Broque Thomas
65cbf6ce28 discover progress 2025-11-11 16:00:37 -08:00
Broque Thomas
d399a612ef progress on discover page 2025-11-11 11:38:27 -08:00
Broque Thomas
47f8862fc4 discovery page progress 2025-11-11 10:39:46 -08:00
Broque Thomas
0b7b88e892 duplicate cleaner 2025-11-10 19:47:26 -08:00
Broque Thomas
aa09b0ba5b duplicate cleaner tool 2025-11-10 19:36:36 -08:00
Broque Thomas
37c9de0007 detect lower quality files for watchlist / all artists. 2025-11-10 18:27:53 -08:00
Broque Thomas
06a3328b65 Added new 'Save as playlist' functionality for sync page. 2025-11-10 09:42:38 -08:00
Broque Thomas
208b233497 similar artist duplicate fix 2025-11-09 20:36:41 -08:00
Broque Thomas
5ffce6bb59 optimize album and cover art data 2025-11-09 20:33:25 -08:00
Broque Thomas
576f151c5c preferred quality updates. 2025-11-09 14:16:38 -08:00
Broque Thomas
bb15cf8f9f fix polling issue for services 2025-11-09 09:30:56 -08:00
Broque Thomas
8c7cb6d448 manual library selection for plex servers 2025-10-15 15:04:05 -07:00
Broque Thomas
c5c884f01f Update script.js 2025-10-04 22:23:34 -07:00
Broque Thomas
dead8da5ee similar artist functionality for artists page. 2025-10-04 17:53:17 -07:00
Broque Thomas
9fe0b5a7ff Update script.js 2025-10-04 17:45:54 -07:00
Broque Thomas
e62800f4b5 Update script.js 2025-10-04 17:37:01 -07:00
Broque Thomas
3dba6f97c4 Update script.js 2025-10-04 17:28:03 -07:00
Broque Thomas
ea9f351bdb similar artists start 2025-10-04 16:09:11 -07:00
Broque Thomas
2f8bad23a8 Add manual track matching and Docker permission docs
Implements manual track matching (discovery fix modal) for YouTube, Tidal, and Beatport platforms, allowing users to search and select Spotify tracks for unmatched results. Adds backend endpoints and frontend logic for updating matches, improves conversion of discovery results for sync/download, and updates Dockerfile/entrypoint for dynamic PUID/PGID/UMASK support. Includes a new DOCKER_PERMISSIONS.md guide.
2025-10-03 10:48:25 -07:00
Broque Thomas
5834177f82 beatport progress 2025-10-01 19:52:22 -07:00
Broque Thomas
7716ed400f Update script.js 2025-10-01 19:32:05 -07:00
Broque Thomas
1be978823f Update script.js 2025-10-01 19:24:54 -07:00
Broque Thomas
06f3d219b4 Add Beatport genre Top 10 lists API and UI integration
Introduces backend scraping and API endpoint for Beatport genre Top 10 and Hype Top 10 tracks, with 1-hour caching. Updates frontend to load and display these lists in the genre browser modal, matching main page structure and click handling for chart discovery.
2025-10-01 19:21:11 -07:00
Broque Thomas
fcd48793e0 Add Beatport Top 100 button to genre page
Introduces a 'Beatport Top 100' button to each genre page, allowing users to fetch and view the top 100 tracks for a selected genre. Includes new event handling logic in script.js and corresponding styles in style.css for the button and its container.
2025-10-01 17:59:38 -07:00
Broque Thomas
fd92deb5c8 beatport progress 2025-10-01 17:40:37 -07:00
Broque Thomas
c7377e4ac7 beatport progress 2025-10-01 14:50:03 -07:00
Broque Thomas
c421a3b02c fix tidal discovery modal header 2025-10-01 12:34:39 -07:00
Broque Thomas
a59d3122d7 allow individual release downloads for hero slider 2025-10-01 12:26:48 -07:00
Broque Thomas
0e2a2200b6 beatport main page complete 2025-10-01 11:20:19 -07:00
Broque Thomas
36f5f48a47 Update script.js 2025-10-01 09:52:10 -07:00
Broque Thomas
0ac58add26 Update script.js 2025-10-01 09:49:41 -07:00
Broque Thomas
3056f9637f beatport progress 2025-10-01 09:34:28 -07:00
Broque Thomas
02f171646c Update script.js 2025-10-01 09:26:13 -07:00
Broque Thomas
16e786586e Improve sync polling resumption for playlists
Refactored polling logic for YouTube, Beatport, and Tidal playlists to immediately fetch current status before starting interval polling. Enhanced modal and state restoration to resume both discovery and sync polling as appropriate, ensuring consistent behavior across all supported platforms.
2025-10-01 08:45:41 -07:00
Broque Thomas
299d320d8c Update script.js 2025-10-01 07:47:59 -07:00
Broque Thomas
ed5328e6c7 Add Beatport hero slider releases scraping support
Introduces a new API endpoint to scrape tracks from multiple Beatport release URLs and integrates hero slider click handling on the rebuild page. The frontend now extracts release URLs from the hero slider and fetches track data using the new backend endpoint, improving rebuild page functionality.
2025-09-30 20:50:16 -07:00
Broque Thomas
3395d697c2 Update Beatport slider layout and remove track meta
Removed genre and year metadata from Beatport slider track cards in script.js. Increased slider height and track info max-width in style.css to improve layout and visual presentation.
2025-09-30 19:43:05 -07:00
Broque Thomas
bdb087f8d5 Update script.js 2025-09-30 19:07:38 -07:00
Broque Thomas
65cc0e517d Normalize track text and add rebuild Top 10 logic
Introduces text cleaning for track, artist, and label fields in both Python and JS to ensure proper spacing and formatting. Adds logic to the frontend for handling Beatport Top 10 and Hype Top 10 containers on the rebuild page, including DOM extraction and card creation, following the Browse Charts pattern.
2025-09-30 18:31:35 -07:00
Broque Thomas
7821d4cba5 beatport progress 2025-09-30 13:58:02 -07:00
Broque Thomas
69c8622588 beatport progress 2025-09-30 13:23:01 -07:00
Broque Thomas
5e73b53a0f beatport progress 2025-09-30 12:36:25 -07:00
Broque Thomas
df11474951 beatport progress 2025-09-30 09:32:52 -07:00
Broque Thomas
d885316077 beatport update 2025-09-29 23:52:04 -07:00
Broque Thomas
bc2be55455 beatport progress 2025-09-29 23:35:55 -07:00
Broque Thomas
6e169056d3 rebuild beatport section 2025-09-29 23:05:18 -07:00
Broque Thomas
bf454e63eb Update script.js 2025-09-29 07:46:41 -07:00
Broque Thomas
61dd721b67 Update script.js 2025-09-28 22:49:39 -07:00
Broque Thomas
11d91a2ebb Update script.js 2025-09-28 22:09:57 -07:00
Broque Thomas
0d74634983 beatport progress 2025-09-28 20:27:29 -07:00
Broque Thomas
589250dc6f Update script.js 2025-09-28 19:56:47 -07:00
Broque Thomas
4167c361a7 beatport progress 2025-09-28 19:51:29 -07:00
Broque Thomas
6df2759e22 beatport progress 2025-09-28 18:43:49 -07:00
Broque Thomas
526aeb0bda beatport progress 2025-09-28 18:37:07 -07:00
Broque Thomas
5981bd772f beatport progress 2025-09-28 18:16:28 -07:00
Broque Thomas
dc8e3c1033 beatport progress 2025-09-28 07:59:36 -07:00
Broque Thomas
27b1e57d97 beatport progress 2025-09-27 22:21:20 -07:00
Broque Thomas
7e42e20887 beatport progress 2025-09-27 20:16:18 -07:00
Broque Thomas
6aa936103c Update script.js 2025-09-27 17:36:48 -07:00
Broque Thomas
d6b83586a5 Update script.js 2025-09-27 16:58:50 -07:00
Broque Thomas
94bb897869 Update script.js 2025-09-27 13:53:40 -07:00
Broque Thomas
a993a972fd beatport progress 2025-09-27 12:57:24 -07:00
Broque Thomas
ef69eb698b beatport progress 2025-09-27 00:10:58 -07:00
Broque Thomas
ce21cf0126 beatport progress 2025-09-26 23:25:23 -07:00
Broque Thomas
b553e2ef41 beatport progress 2025-09-26 23:07:03 -07:00
Broque Thomas
6ef839ab89 beatport progress 2025-09-26 22:15:44 -07:00
Broque Thomas
f5ae3d611c beatport progress 2025-09-26 22:04:46 -07:00
Broque Thomas
0ba4b6a079 pull genres with imges. 2025-09-26 16:11:50 -07:00
Broque Thomas
ccc686a892 placeholder beatport playlist functionality 2025-09-26 15:12:25 -07:00
Broque Thomas
90c6af078d add watchlist functionality to library page 2025-09-26 07:43:12 -07:00
Broque Thomas
c90d5e11ae style fix 2025-09-25 21:41:37 -07:00
Broque Thomas
909e5e59de Update script.js 2025-09-25 21:28:52 -07:00
Broque Thomas
961156d628 Update script.js 2025-09-25 21:20:11 -07:00
Broque Thomas
5b834f5135 hide details until ready 2025-09-25 18:25:03 -07:00
Broque Thomas
0247f324ee fix year not displaying 2025-09-24 22:52:33 -07:00
Broque Thomas
09d633f80b add to wishlist functionality for library page 2025-09-24 22:30:38 -07:00
Broque Thomas
ffdee23cb0 fix library page 2025-09-24 12:38:00 -07:00
Broque Thomas
3e8b469adb library page updates 2025-09-23 23:47:58 -07:00
Broque Thomas
96043ef530 library page updates 2025-09-23 15:15:29 -07:00
Broque Thomas
03b0b8c6c5 library page update 2025-09-23 14:19:11 -07:00
Broque Thomas
9485dfb03b start of library page 2025-09-23 11:42:58 -07:00
Broque Thomas
180413677c toggle to force the download of all tracks in modal 2025-09-23 10:42:10 -07:00
Broque Thomas
35f4b25bad fix wishlist modal not auto restarting after initial run. 2025-09-23 08:44:47 -07:00
Broque Thomas
a053ed22a3 artist bubble modal design update 2025-09-22 18:01:56 -07:00
Broque Thomas
c3dd91d676 update design for download missing track modal 2025-09-22 17:52:55 -07:00
Broque Thomas
e06f0ea372 auto scan after download completion and follow with auto incremental update for active server 2025-09-22 15:01:28 -07:00
Broque Thomas
8cceef0610 m4a support on search page stream 2025-09-22 12:41:05 -07:00
Broque Thomas
85d7dce943 status updates and album card download status 2025-09-22 11:34:39 -07:00
Broque Thomas
ba37225e1b gui navidrome support 2025-09-22 09:46:30 -07:00
Broque Thomas
fcee0194e7 navidrome functionality start 2025-09-21 21:02:12 -07:00
Broque Thomas
0f64d17bf6 add navidrome to settings 2025-09-21 14:10:17 -07:00
Broque Thomas
325828a5bf fix modal cleanup 2025-09-20 18:48:07 -07:00
Broque Thomas
fd071eb4a3 Update script.js 2025-09-13 21:40:33 -07:00
Broque Thomas
7d5d2bf30b fix multiple searches on enter press 2025-09-13 20:05:01 -07:00
Broque Thomas
21d016fcbd Add configurable redirect URI for Spotify and Tidal
Redirect URIs for Spotify and Tidal OAuth are now configurable via the web UI and settings. Updated backend clients to use the configured redirect URI if provided, improving flexibility for deployments with custom callback URLs.
2025-09-12 21:56:26 -07:00
Broque Thomas
c4b4adf7fb Add web-based Spotify and Tidal OAuth flows
Introduces web server routes and UI buttons for initiating Spotify and Tidal OAuth authentication flows, with dedicated callback servers for token exchange. Updates Docker ports for OAuth callbacks and refines PKCE handling for Tidal. Improves user experience by allowing authentication directly from the web UI.
2025-09-11 13:24:15 -07:00
Broque Thomas
ac7a8f1513 Add metadata updater system for artists
Introduces a metadata updater backend in web_server.py, including API endpoints for starting, stopping, and checking status, and a threaded worker for updating artist metadata from Spotify. Updates script.js to add UI controls, polling, and progress display for the metadata updater, with logic to hide the tool when Jellyfin is the active server.
2025-09-10 19:19:29 -07:00
Broque Thomas
ae9f426361 Add activity logging for key user actions
Introduces activity item logging for settings saves, connection tests, auto-detects, authentication flows, searches, batch cancellations, and discovery operations in web_server.py. Updates dashboard connection test API and UI to use a new endpoint and function, ensuring user actions are tracked and surfaced in the activity feed.
2025-09-10 17:16:01 -07:00
Broque Thomas
94d1c82674 Add activity feed and toasts to dashboard
Introduces a global activity feed system with API endpoints for recent activities and toasts, and integrates activity tracking for key backend events (downloads, syncs, database updates, etc.). Updates the dashboard frontend to periodically fetch and display activity feed items and show toasts for recent actions. Improves error logging and reduces noise for expected 404s in Soulseek client. Adds related CSS for activity feed separators.
2025-09-10 17:04:12 -07:00
Broque Thomas
7a7480ba60 Update script.js 2025-09-10 15:45:39 -07:00
Broque Thomas
135728ce89 Add system stats API and dashboard service status updates
Introduces a new /api/system/stats endpoint in web_server.py to provide system statistics such as uptime, memory usage, download speed, and sync counts. Enhances the dashboard in script.js to periodically fetch and display service connection status and system stats, including response times for Spotify, media server, and Soulseek.
2025-09-10 15:22:31 -07:00
Broque Thomas
8336109661 Update script.js 2025-09-10 14:31:34 -07:00
Broque Thomas
579674cb33 Update script.js 2025-09-10 14:26:02 -07:00
Broque Thomas
6011c50304 Add artist watchlist feature with UI and API endpoints
Introduces a watchlist system for tracking artists, including backend API endpoints for managing the watchlist and scanning for new releases. Updates the frontend to allow users to add/remove artists to/from the watchlist from both artist cards and detail pages, view and scan their watchlist via a modal, and see real-time scan progress. Adds related styles for watchlist UI components.
2025-09-10 14:18:54 -07:00
Broque Thomas
42002d1b45 Add automatic and manual wishlist cleanup features
Introduces backend logic to automatically remove tracks from the wishlist if they already exist in the database after downloads or database updates. Adds a new API endpoint and frontend button for manual wishlist cleanup, allowing users to remove already-owned tracks from the wishlist. Enhances reliability and user experience by keeping the wishlist up-to-date.
2025-09-10 07:37:46 -07:00
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
Broque Thomas
39a6a87ab5 Update script.js 2025-08-27 15:23:05 -07:00
Broque Thomas
17533ae40b persistent when closed 2025-08-27 14:34:06 -07:00
Broque Thomas
9f4e007818 style 2025-08-26 22:36:02 -07:00
Broque Thomas
c9704764ae active modal adjustments 2025-08-26 22:16:50 -07:00
Broque Thomas
aad6eb7da6 persistent download missing track modal 2025-08-26 21:48:12 -07:00
Broque Thomas
fcdf41aac2 cancel button 2025-08-25 23:30:28 -07:00
Broque Thomas
2475586523 style 2025-08-25 17:43:13 -07:00
Broque Thomas
b84a3ae108 progress 2025-08-25 16:16:31 -07:00
Broque Thomas
b9879c4375 closer 2025-08-25 14:36:25 -07:00
Broque Thomas
632f45c68e download missing tracks modal 2025-08-24 21:23:24 -07:00
Broque Thomas
584245f8a4 Update script.js 2025-08-24 20:54:07 -07:00
Broque Thomas
e912be68e7 better 2025-08-24 20:45:40 -07:00
Broque Thomas
042baf429f progress 2025-08-24 20:18:54 -07:00
Broque Thomas
628e8b7709 sync working 2025-08-24 19:47:24 -07:00
Broque Thomas
3b0a626b6e Update script.js 2025-08-24 17:38:30 -07:00
Broque Thomas
d6d31606ce Update script.js 2025-08-24 17:31:20 -07:00
Broque Thomas
429622610e cache spotify playlists 2025-08-24 17:23:32 -07:00
Broque Thomas
8cee3f0e33 sync page 2025-08-24 17:06:00 -07:00
Broque Thomas
2c9f19137b sync page design 2025-08-24 14:03:16 -07:00
Broque Thomas
cd9a466e9e database updater 2025-08-24 13:11:54 -07:00
Broque Thomas
2f535d8222 database updater 2025-08-24 12:36:30 -07:00
Broque Thomas
9686c6f1df style changes 2025-08-24 11:09:33 -07:00
Broque Thomas
ee6c95a92e adjust styling 2025-08-24 10:23:16 -07:00
Broque Thomas
724f385768 matched album downloads 2025-08-23 23:27:30 -07:00
Broque Thomas
008ddcf0ed Update script.js 2025-08-23 22:38:07 -07:00
Broque Thomas
edbfe6bb74 matched downloads 2025-08-23 22:18:09 -07:00
Broque Thomas
c5d9b010c9 stream bug 2025-08-23 15:19:43 -07:00
Broque Thomas
886c2e84c8 stream functionality 2025-08-23 15:03:25 -07:00
Broque Thomas
92656fbe25 filters 2025-08-23 12:31:25 -07:00
Broque Thomas
f6cc9bffdb styling issue 2025-08-23 10:46:47 -07:00
Broque Thomas
afd5662afa progress 2025-08-23 10:39:12 -07:00
Broque Thomas
a78732fb08 progress 2025-08-23 10:14:38 -07:00
Broque Thomas
bb6be656e0 progress 2025-08-23 09:53:07 -07:00
Broque Thomas
557151b9e7 Revert "downloads page started"
This reverts commit 7c5c149a40.
2025-08-22 16:50:53 -07:00
Broque Thomas
7c5c149a40 downloads page started 2025-08-22 15:20:39 -07:00
Broque Thomas
36b3830a2f settings auto detect fixed 2025-08-22 14:36:30 -07:00
Broque Thomas
d631ad61f8 settings page ready 2025-08-22 12:57:20 -07:00
Broque Thomas
bf445f9939 headless mode foundation 2025-08-21 20:14:16 -07:00