Skip to content

Commit aa6359a

Browse files
authored
Update Recyclarr
1 parent 62d4b3f commit aa6359a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

universal/services/Recyclarr

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ verifyConfig () {
2828
fi
2929
}
3030

31-
RecyclarrProcess () {
31+
RecyclarrProcess () {
3232
# Configure Yaml with URL and API Key
3333
sed -i "s%arrUrl%$arrUrl%g" "/config/extended/recyclarr.yaml"
3434
sed -i "s%arrApi%$arrApiKey%g" "/config/extended/recyclarr.yaml"
@@ -40,10 +40,13 @@ RecyclarrProcess () {
4040
chmod 777 /config/extended/recyclarr-data
4141
fi
4242

43-
# Run Recyclarr and capture the output
44-
/recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | while IFS= read -r line; do
45-
echo "$(date "+%F %T") :: $scriptName :: $scriptVersion :: $line" | tee -a "$logfile"
46-
done
43+
# Capture the output of the Recyclarr command
44+
recyclarr_output=$(/recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1)
45+
46+
# Log the output line by line
47+
while IFS= read -r line; do
48+
log "$line"
49+
done <<< "$recyclarr_output"
4750

4851
log "Complete"
4952
}

0 commit comments

Comments
 (0)