Fix flood auto dl

This commit is contained in:
2024-08-15 22:01:24 +00:00
parent 89f0c9ad19
commit c4d4164915
6 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ in {
services.fail2ban = {
enable = true;
bantime = "-1";
bantime = "5w";
ignoreIP = [
"192.168.0.0/16"
];
+2 -1
View File
@@ -4,7 +4,8 @@ set -e
OUT=/mnt/kyoo/shows
if [[ -z "$TR_TORRENT_LABELS" ]]; then
if [[ ! -z "$TR_TORRENT_LABELS" ]]; then
echo "Ignoring $TR_TORRENT_NAME since it has labels $TR_TORRENT_LABELS"
exit
fi
echo "Running with $TR_TORRENT_NAME $TR_TORRENT_ID"
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
name=$(guessit "$1" -P "title" | tr -d "[:punct:]")
name=$(guessit "$1" -P title | tr -d "[:punct:]")
ls /mnt/kyoo/shows/ | tr -d "[:punct:]" | grep -qix "$name"