mirror of
https://github.com/zoriya/snow.git
synced 2025-12-05 23:06:23 +00:00
Update smartrss.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user