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

Variables use and syntax

$
0
0

@avalloneandrea wrote:

I'm trying to use an external variables file in my configuration file.
This is the content of my variables.yml file at the moment:

safe_title: {{title|re_replace('[^\w]+','_')}}
folderwatch_dir: /home/andrea/jdownloader/folderwatch/{?safe_title?}.crawljob

However, when I launch a flexget check, I got the following validation error:

flexget.plugin.PluginError: Invalid variables file: while parsing a flow mapping
  in "<unicode string>", line 1, column 12:
    safe_title: {{title|re_replace('[^\w]+','_')}}
               ^
expected ',' or '}', but got '['
  in "<unicode string>", line 1, column 31:
    safe_title: {{title|re_replace('[^\w]+','_')}}
                                    ^

I'm pretty sure it is a matter of escaping characters, but I'm not sure on what to do.
Any help would be appreciated.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles