This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |