Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1. # Filter out any torrents pushed in by Radarr or Sonarr that are completed but not moved
  2. rtcontrol --to-view UNMOV_RAD custom_1='radarr' is_complete="yes" realpath='/media/merged/downloads/'
  3. rtcontrol --to-view UNMOV_SON custom_1='sonarr' is_complete="yes" realpath='/media/merged/downloads/'
  4.  
  5. # Stop all filtered torrents
  6. rtcontrol --from-view UNMOV_RAD // --stop
  7. rtcontrol --from-view UNMOV_SON // --stop
  8.  
  9. # Move the data files
  10. rtcontrol --from-view UNMOV_RAD // --spawn "mv {{item.path}} /media/merged/movies/"
  11. rtcontrol --from-view UNMOV_SON // --spawn "mv {{item.path}} /media/merged/tv/"
  12.  
  13. # Set the new directory in rTorrent to resume seeding
  14. rtcontrol --from-view UNMOV_RAD // --exec "directory.set=/media/merged/movies/" --yes --flush
  15. rtcontrol --from-view UNMOV_SON // --exec "directory.set=/media/merged/tv/" --yes --flush
  16.  
  17. # Resume seeding
  18. rtcontrol --from-view UNMOV_RAD // --start
  19. rtcontrol --from-view UNMOV_SON // --start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement