File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
kubernetes/apps/media/lidarr/app/resources Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ WRTAG_URL="http://:$${WRTAG_API_KEY}@wrtag.media.svc.cluster.local/op/move"
1414FIRST_TRACK=" $( echo " $$ {lidarr_addedtrackpaths}" | cut -d' |' -f1) "
1515ALBUM_DIR=" $( dirname " $$ {FIRST_TRACK}" ) "
1616
17+ ORIGIN_SRC=" $( grep -rl " $$ {lidarr_download_id}" /music/downloads/lidarr/* /origin.yaml 2> /dev/null | head -1) "
18+ if [[ -n " $$ {ORIGIN_SRC}" ]]; then
19+ echo " [lidarr-wrtag] Copying origin.yaml from $$ {ORIGIN_SRC} to $$ {ALBUM_DIR}"
20+ cp " $$ {ORIGIN_SRC}" " $$ {ALBUM_DIR}/origin.yaml"
21+ else
22+ echo " [lidarr-wrtag] No origin.yaml found for hash $$ {lidarr_download_id}, continuing without it"
23+ fi
24+
1725echo " [lidarr-wrtag] Notifying wrtag for: $$ {ALBUM_DIR}"
1826curl \
1927 --fail \
You can’t perform that action at this time.
0 commit comments