Quantcast
Channel: configuration - Forum - FlexGet
Viewing all articles
Browse latest Browse all 716

Use movedone in Jinja template?

$
0
0

@confus wrote:

Hi,

i have yaml file, where I define my shows and their movedone path for use with deluge like this:

# This is 'shows.yml'
series:
  toons:
    - ugly americans:  { set: { movedone: '/home/confus/Extern/Anime/{{series_name}}/{{ series_name }} - Season {{series_season}}/' } }tasks:
    # ... more shows in different categories ...

which works great. Now I have a task, where I'd like to use that set variable movedone in a Jinja template:

tasks:
    locationfile:
        # ...
        include:
          - shows.yml
        exec:
          on_output:
            for_accepted:
              'echo "$(date -R): {{ series_name }} {{ series_di }}: {{  movedone }}" >> locationfile.txt'

But that doesn't seem to work

ERROR exec locationfile Could not set exec command for (UndefinedError) 'movedone' is undefined

Is there a way to use an item set by the set plugin in a template?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles