Skip to content

[core,gui,utils] Refactor library scanning into dedicated components#900

Merged
ludouzi merged 1 commit into
masterfrom
scanner-rework
Mar 16, 2026
Merged

[core,gui,utils] Refactor library scanning into dedicated components#900
ludouzi merged 1 commit into
masterfrom
scanner-rework

Conversation

@ludouzi

@ludouzi ludouzi commented Mar 16, 2026

Copy link
Copy Markdown
Collaborator

This restructures library scanning into a set of dedicated components with narrower responsibilities.

The scan pipeline is now split into:

  • LibraryFileEnumerator for file discovery and directory traversal
  • LibraryScanSession for coordinating a scan request
  • LibraryScanState for scan bookkeeping and progress state
  • LibraryTrackResolver for reading files, playlists, archives, and cue-based tracks
  • LibraryScanWriter for batched database writes
  • LibraryMonitor for filesystem watcher ownership and monitoring

Directory traversal should also be faster and less blocking on network drives, since the new iteration path does less recursive directory-list construction up front.

This PR also improves scan UX:

  • Library scans can be cancelled from the Library menu
  • Active library scans can be cancelled individually from the library settings page
  • The status bar now shows more detailed scan progress
  • The status bar includes a cancel button beside the active scan progress

@ludouzi ludouzi force-pushed the scanner-rework branch 3 times, most recently from 5e1384e to ad11192 Compare March 16, 2026 01:18
@ludouzi ludouzi merged commit 325cc12 into master Mar 16, 2026
50 checks passed
@ludouzi ludouzi deleted the scanner-rework branch March 16, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant