Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Filter out any torrents pushed in by Radarr or Sonarr that are completed but not moved
- rtcontrol --to-view UNMOV_RAD custom_1='radarr' is_complete="yes" realpath='/media/merged/downloads/'
- rtcontrol --to-view UNMOV_SON custom_1='sonarr' is_complete="yes" realpath='/media/merged/downloads/'
- # Stop all filtered torrents
- rtcontrol --from-view UNMOV_RAD // --stop
- rtcontrol --from-view UNMOV_SON // --stop
- # Move the data files
- rtcontrol --from-view UNMOV_RAD // --spawn "mv {{item.path}} /media/merged/movies/"
- rtcontrol --from-view UNMOV_SON // --spawn "mv {{item.path}} /media/merged/tv/"
- # Set the new directory in rTorrent to resume seeding
- rtcontrol --from-view UNMOV_RAD // --exec "directory.set=/media/merged/movies/" --yes --flush
- rtcontrol --from-view UNMOV_SON // --exec "directory.set=/media/merged/tv/" --yes --flush
- # Resume seeding
- rtcontrol --from-view UNMOV_RAD // --start
- rtcontrol --from-view UNMOV_SON // --start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement