Advertisement
Guest User

Untitled

a guest
Aug 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. set torrentid=%1
  2. set torrentname=%2
  3. set torrentpath=%3
  4. set x=1
  5.  
  6. if %x% LEQ 100 (
  7. do (
  8. pause 2
  9. echo Running %x% times >> C:\Config\script.log
  10. echo TorrentID: %torrentid% >> C:\Config\script.log
  11. deluge-console "connect 127.0.0.1:8888 user passwd; info" %torentid% | findstr "Tracker status" > C:\Config\scripttmp.txt
  12. set /p line= < C:\Config\scripttmp.txt
  13. echo %line% >> C:\Config\script.log
  14. if %line%=*unregistered* do (
  15. deluge-console "connect 127.0.0.1:8888 user passwd; pause '%torrentid%'"
  16. sleep 5
  17. deluge-console "connect 127.0.0.1:8888 user passwd; resume '%torrentid%'"
  18. ;;
  19. *)
  20. echo "Found working torrent: %torrentname% %torrentpath% %torrentid%" >> C:\Config\script.log
  21. exit 1;;
  22. esac
  23. set x=%(( %x% + 1 ))
  24. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement