Import Command¶
The import command reads a CSV file of artists and adds them to Lidarr.
Basic Usage¶
Import all artists from a CSV file:
Command Options¶
Arguments:
CSV_FILE Path to CSV file containing artists (required)
Options:
--config, -c PATH Path to configuration file (default: config.json)
--min-plays INTEGER Only import artists with at least this many plays
--verbose, -v Enable verbose output
--help Show this message and exit
Examples¶
Import All Artists¶
Filter by Play Count¶
Import only artists with at least 10 plays:
Import only artists with at least 50 plays:
Verbose Output¶
See detailed information about each artist:
Or short form:
Combining Options¶
# Import artists with 20+ plays, verbose output
artistscraper import artists.csv --min-plays 20 --verbose
# Short form
artistscraper import artists.csv --min-plays 20 -v
Custom Config File¶
CSV File Format¶
The CSV file must have these columns:
- Artist Name - The artist's name
- MusicBrainz ID - The MusicBrainz ID (format:
lidarr:IDor justID) - Source (optional) - Where the artist was found
- Play Count (optional, required for
--min-plays) - Number of tracks
Example CSV:
Artist Name,MusicBrainz ID,Source,Play Count
Taylor Swift,lidarr:20244d07-534f-4eff-b4d4-930878889970,Spotify,45
The Beatles,lidarr:b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d,"Spotify, YouTube Music",23
Radiohead,lidarr:a74b1b7f-71a5-4011-9441-d0b5e4122711,YouTube Music,12
How It Works¶
Step 1: Read CSV¶
- Opens and validates the CSV file
- Checks for required columns (
Artist Name,MusicBrainz ID) - If
--min-playsis used, checks forPlay Countcolumn
Step 2: Filter (Optional)¶
If --min-plays is specified:
- Filters out artists with fewer plays than the threshold
- Shows count of filtered artists
Step 3: Connect to Lidarr¶
- Tests connection to Lidarr
- Retrieves Lidarr configuration (root folders, profiles)
Step 4: Import Artists¶
For each artist:
- Checks if artist already exists in Lidarr
- If exists: Skip (counted as "already exists")
- If not exists:
- Search Lidarr's database with MusicBrainz ID
- Add artist with default settings:
- Monitored: Yes
- Search for missing: No
- Root folder: Default
- Quality profile: Default
- Metadata profile: Default
- Count successes and failures
Step 5: Summary¶
Shows a summary table with:
- Total artists in CSV
- Filtered out (if
--min-playsused) - Added to Lidarr
- Already in Lidarr
- Failed to add
Use Cases¶
Two-Stage Workflow¶
Separate scraping from importing:
# Stage 1: Scrape and export (no Lidarr)
artistscraper scrape
# Stage 2: Review CSV, then import
artistscraper import artists.csv
Curated Imports¶
-
Scrape all artists:
-
Edit the CSV to remove unwanted artists
-
Import the curated list:
Selective Imports by Play Count¶
Only import artists you listen to frequently:
# Get all artists
artistscraper scrape
# Import only those with 20+ plays
artistscraper import artists.csv --min-plays 20
Re-import After Lidarr Reset¶
If you reset your Lidarr database, re-import from CSV:
This is faster than re-scraping since MusicBrainz lookups are already done.
Performance¶
Import speed:
- Connection test: <1 second
- Per artist: 1-5 seconds
- Check if exists: ~0.5 seconds
- Search and add: ~2-4 seconds
For 100 artists: ~3-8 minutes
Error Handling¶
The import command handles errors gracefully:
- Artist already exists: Skipped, counted separately
- Artist not found in Lidarr: Logged, counted as failed
- Network errors: Retried, then logged as failed
- Invalid MusicBrainz ID: Skipped, counted as failed
Use --verbose to see detailed error messages.
From Source Installation¶
If installed from source with Poetry:
Next Steps¶
- Learn about Output Files format
- Check Troubleshooting if you encounter issues