Skip to content

Add granular album selection when adding artists to Lidarr#34

Open
AmGarera wants to merge 3 commits intolklynet:mainfrom
AmGarera:claude/granular-album-selection-qrEvp
Open

Add granular album selection when adding artists to Lidarr#34
AmGarera wants to merge 3 commits intolklynet:mainfrom
AmGarera:claude/granular-album-selection-qrEvp

Conversation

@AmGarera
Copy link

Summary

This PR adds the ability to select specific albums when adding an artist to Lidarr, providing more granular control over which releases are monitored. Users can now browse and cherry-pick albums instead of relying solely on predefined monitoring options.

Key Changes

Backend (server.js)

  • Modified /api/lidarr/artists POST endpoint to accept selectedAlbums parameter containing MusicBrainz release group IDs
  • When selectedAlbums is provided, the artist is added with monitor: "none" initially, then individual albums are updated to monitored: true
  • Added 2-second delay after artist creation to allow Lidarr to process and create album records
  • Implemented album-by-album monitoring updates with optional search trigger for selected albums
  • Added new /api/lidarr/albums/bulk-monitor POST endpoint for bulk updating album monitoring status with optional search

Frontend (AddArtistModal.jsx)

  • Converted modal to a two-step workflow:
    • Step 1: Configure artist settings (root folder, quality profile, metadata profile, monitoring options)
    • Step 2: Browse and select specific albums to monitor
  • Added album filtering by type (Album, EP, Single, Broadcast, Other) and secondary types (compilations, live, etc.)
  • Implemented album selection UI with:
    • Individual album checkboxes with visual feedback
    • Select All / Deselect All functionality
    • Selection state indicator (none/partial/all)
    • Album metadata display (release date, primary type, secondary types)
  • Fetches release groups from MusicBrainz API and pre-selects albums based on the chosen monitor option
  • Albums are sorted by release date (newest first)

Implementation Details

  • The album selection step only appears when explicitly requested via the "Select Albums" button
  • Pre-selection logic respects the monitor option chosen in step 1 (e.g., "latest" selects only the newest album)
  • Search for missing albums is disabled when using granular selection to avoid searching unselected albums
  • Error handling for album updates doesn't block artist creation - the artist is added successfully even if album updates fail
  • Uses useMemo for efficient filtering and sorting of release groups

Screenshots

image image

Add the ability to choose specific albums when adding an artist to Lidarr,
and enhance album management for existing artists.

New features:
- AddArtistModal now includes a "Select Albums" button that opens an album
  selection step where users can pick which albums to monitor
- Album selection supports filtering by type (Album, EP, Single, etc.)
- Option to show/hide compilations, live albums, and other secondary types
- Pre-selects albums based on the chosen monitor option (all, latest, first, etc.)

For existing artists:
- ArtistDetailsPage now has album type filtering
- Added "Monitored Only" filter option
- New "Select Albums" mode for bulk operations
- Bulk monitor/unmonitor selected albums with one click
- Individual unmonitor button for albums in "Processing" state

Backend changes:
- Modified POST /api/lidarr/artists to support selectedAlbums parameter
- Added POST /api/lidarr/albums/bulk-monitor endpoint for bulk operations
- After adding artist with selected albums, automatically sets monitoring
  status and triggers search for chosen albums

https://claude.ai/code/session_01U6HkM2m8cvJCikrTWypknc
@AmGarera
Copy link
Author

@lklynet take a look when you get a chance this is a huge QOL improvement

Use github.repository_owner variable so forks automatically publish
to their own namespace (e.g., ghcr.io/username/aurral-backend).

https://claude.ai/code/session_01U6HkM2m8cvJCikrTWypknc
Add workflow_dispatch to allow manually running the Docker build
from the GitHub Actions UI.

https://claude.ai/code/session_01U6HkM2m8cvJCikrTWypknc
@lklynet
Copy link
Owner

lklynet commented Feb 1, 2026

fantastic idea! ill check it out

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.

3 participants