Add lidarr_release_fixer.sh — daily fix for wrong MusicBrainz release editions

Reads MUSICBRAINZ_ALBUMID from FLAC (vorbis block type 4) and MP3 (ID3v2 TXXX)
files, matches against Lidarr's known releases, switches monitored=true to the
correct one, and queues RefreshArtist. Runs before lidarr_cleanup.sh in the
daily job list so the strike system doesn't act on files that just needed a
release correction.
This commit is contained in:
Gmer4Lfe
2026-06-27 18:06:22 -04:00
parent 26fb409da5
commit eb64e52815
4 changed files with 514 additions and 0 deletions
+2
View File
@@ -376,6 +376,7 @@
"Media/media_shares_permissions.sh" # apply permissions — runs before cleaners
"Media/media_cleaner.sh anime" # remove junk from anime shares
"Media/media_cleaner.sh media" # remove junk from media shares
#"Media/lidarr_release_fixer.sh" # fix wrong release editions before cleanup runs — enable when ready
#"Media/lidarr_cleanup.sh" # remove orphaned music files — enable when ready
#"Media/sonarr_cleanup.sh" # remove orphaned TV files — enable when ready
"Media/radarr_cleanup.sh" # remove orphaned movie files
@@ -1057,6 +1058,7 @@
ARR_RADARR_DEFAULT_PROFILE="Any (mine)"
# Lidarr shared settings
LIDARR_RELEASE_FIXER_ENABLED=true # set false to disable without removing from job list
LIDARR_LOCK_WARN_AGE=3600 # 1hr — large libraries take time, not stuck
LIDARR_ORPHAN_AGE=7 # days — files must be older than this before eligible for deletion
LIDARR_MAX_DELETE_GB=5 # require --i-know-what-im-doing if deletion exceeds this