Skip to content

Instantly share code, notes, and snippets.

@jackskhakis
jackskhakis / update_artists_monitoring.sh
Created July 13, 2025 20:00
this script can be run to update monitoring of all artists in lidarr to on, with all albums and search for missing enabled. this would be useful if a previous version of my script had been run which didnt have these options enabled while adding a list of new artists to lidarr
#!/bin/bash
# --- CONFIGURATION ---
lidarr_url="http://localhost:8686"
api_key="YOUR_API_KEY_HERE"
echo "📥 Fetching all existing artists from Lidarr..."
all_artists=$(curl -s "$lidarr_url/api/v1/artist" -H "X-Api-Key: $api_key")
echo "$all_artists" | jq -c '.[]' | while read -r artist; do
@jackskhakis
jackskhakis / add_artist_list.sh
Last active July 19, 2025 23:07
Script to add list of artists (in a text file) to lidarr, this method bypasses the difficulties that are currently present in lidarr with relation to searching and adding new artists
#!/bin/bash
# Path to the text file with artist names (one per line)
artist_list_file="./artist_list.txt"
# Where Lidarr should create new artist folders
# This must match a configured Root Folder in Lidarr
lidarr_root="/music/"
# Lidarr API details
@jackskhakis
jackskhakis / add_artists.sh
Last active July 19, 2025 23:07
Script to add list of artists (in a folder) to lidarr, this method bypasses the difficulties that are currently present in lidarr with relation to searching and adding new artists
#!/bin/bash
# Folder where existing artist folders are located (source)
source_dir="/mnt/media/music/old"
# The Lidarr root folder path to add new artists under
# This must match a configured Root Folder in Lidarr settings
lidarr_root="/music/new"
# Lidarr API access