Skip to content

Instantly share code, notes, and snippets.

@ta264
Created April 9, 2019 11:42
Show Gist options
  • Save ta264/77443a3de790babbd4f5ce6b9af64f4d to your computer and use it in GitHub Desktop.
Save ta264/77443a3de790babbd4f5ce6b9af64f4d to your computer and use it in GitHub Desktop.
Beets import script
#!/bin/bash
BEET_CONFIG="/home/tom/.config/beets/config.yaml"
set -e
echo "$lidarr_addedtrackpaths"
lidarr_first_track=$(echo "$lidarr_addedtrackpaths" | cut -d '|' -f1)
lidarr_album_path=$(dirname "$lidarr_first_track")
echo "Path: $lidarr_album_path"
echo "Album MBID: $lidarr_album_mbid"
echo "Release MBID: $lidarr_albumrelease_mbid"
echo "Running beet import"
beet -c "$BEET_CONFIG" update "path:$lidarr_album_path" || true
beet -c "$BEET_CONFIG" import -q --search-id "$lidarr_albumrelease_mbid" "$lidarr_album_path"
@undaunt
Copy link

undaunt commented Mar 18, 2020

Just wondering if this is still valid as I wasn't able to locate lidarr_addedtrackpaths or lidarr_albumrelease_mbid on the https://github.com/lidarr/Lidarr/wiki/Custom-Post-Processing-Scripts page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment