Add bad eps to badlist automatically.
[utils.git] / autodlctl
index 004f5cf..8f551de 100755 (executable)
--- a/autodlctl
+++ b/autodlctl
@@ -127,6 +127,10 @@ function getnext
                    fi
                    ;;
            esac
+           if [ "$estat" = bad ]; then
+               echo "episode reported as bad, adding to badlist"
+               echo "$curep" >>badlist
+           fi
            if ! findcurep; then
                echo "no more episodes to download from $tag"
                touch disabled