Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set torrentid=%1
- set torrentname=%2
- set torrentpath=%3
- set x=1
- if %x% LEQ 100 (
- do (
- pause 2
- echo Running %x% times >> C:\Config\script.log
- echo TorrentID: %torrentid% >> C:\Config\script.log
- deluge-console "connect 127.0.0.1:8888 user passwd; info" %torentid% | findstr "Tracker status" > C:\Config\scripttmp.txt
- set /p line= < C:\Config\scripttmp.txt
- echo %line% >> C:\Config\script.log
- if %line%=*unregistered* do (
- deluge-console "connect 127.0.0.1:8888 user passwd; pause '%torrentid%'"
- sleep 5
- deluge-console "connect 127.0.0.1:8888 user passwd; resume '%torrentid%'"
- ;;
- *)
- echo "Found working torrent: %torrentname% %torrentpath% %torrentid%" >> C:\Config\script.log
- exit 1;;
- esac
- set x=%(( %x% + 1 ))
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement