Update smartrss.sh

This commit is contained in:
2025-09-10 14:09:20 +02:00
committed by GitHub
parent 3187ea8f77
commit 8869aca493

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env bash
set -e
set -x
rsstail -f '{title};{link}\n' "$URL" | while IFS=';' read -r title link; do
name=$(guessit "$title" -P title | tr -d "[:punct:]")
# shellcheck disable=SC2012
if ls /medias | tr -d "[:punct:]" | grep -qix "$name"; then
echo "Adding $title (match with $name)"
transmission-remote "$TRURL" --auth "$TRUSER:$TRPASS" -a "$link" -w "/medias/$name"
fi
done