Add bad eps to badlist automatically.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 31 May 2006 00:44:06 +0000 (00:44 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 31 May 2006 00:44:06 +0000 (00:44 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@634 959494ce-11ee-0310-bf91-de5d638817bd

autodlctl

index 004f5cf..8f551de 100755 (executable)
--- a/autodlctl
+++ b/autodlctl
@@ -127,6 +127,10 @@ function getnext
                    fi
                    ;;
            esac
                    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
            if ! findcurep; then
                echo "no more episodes to download from $tag"
                touch disabled