Bash script to monitor all albums with missing tracks in Lidarr #5866
peterjdolan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have a lot of albums in my Beets library that are missing tracks, and I want to monitor them in Lidarr so that I can get new (and hopefully complete) copies of them. How to do this? Lidarr has a REST API, which supports two key functions:
This is definitely something we can work with, and my first thought was to write a Python script to handle it for me, but executing shell commands and making HTTP requests in Python is a bit of a pain.
Happily, I recently learned how to use the
jq
command-line tool, so of course I have to use it for everything.Here's a "one line" shell script that identifies all albums with missing tracks, looks up the Lidarr album id for each, and sets them all to monitored:
To run this, you need to have the
curl
,jq
, andxargs
command line tools (plus the standardsort
anduniq
tools), and you need to have the Beetsmissing
plugin.I hope this saves someone else a few minutes!
Beta Was this translation helpful? Give feedback.
All reactions