Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Specify directory for clean_transmission via run_task or Cli?

$
0
0

@DickVicious wrote:

Hi,

I have a task that uploads files to a server from a directory and I would like to have it remove & delete that single torrent from transmission upon successful upload. However I cant seem to figure out a way to pass the directory to the clean transmission task so that it only removes that one. Is it possible to pass parameters/variables to other tasks?

Currently this is what I have for the clean transmission task, however this seems kind of "lazy" and sometimes it deletes torrents before flexget has time to do anything with them.

  Clean-Transmission:
    priority: 20
    template:
      - maintenance-global
    clean_transmission:
      host: '{? transmission.host ?}'
      port: 9091
      username: '{? transmission.username ?}'
      password: '{? transmission.password ?}'
      delete_files: yes
      finished_for: 6 hours
      directories:
        - '{? transmission.regex_tv ?}'
        - '{? transmission.regex_movies ?}'

Things I have tried:
- Run_task doesn't seem to provide that functionality
- Using exec to call flexget with the "--cli-config" option, this doesn't seem to actually do anything when running as a daemon, and I haven't seen a way to have it not be sent to the daemon when its running.
- Using exec to call flexget with the inject command. Doesn't seem to allow me to pass anything.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles