# Pastebin qLePvH0t tasks: # find all complete mkv files and move them to the sync dir move_outgoing: inputs: - filesystem: path: - "/torrents/complete/tv/" - "/torrents/complete/anime/" - "/torrents/complete/movies/" - "/torrents/complete/other/" recursive: yes retrieve: - files regexp: '.*\.(mp4|avi|mkv|ts)$' # reject samples based on filename regexp: reject: - "sample.mkv$" - "^sample" - "sample-" from: location accept_all: yes only_new: yes seen: local exec: on_output: for_accepted: - echo "{{title}}" >> ~/new_releases.log - echo "{{location}}" >> ~/debug_location.log - echo "{{location|pathscrub('windows')}}" >> ~/debug_location_pathscrub.log - cp -al "{{location}}" /torrents/outgoing/