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

Problem with if plugin after change to jinja2 expressions

$
0
0

@tubedogg wrote:

With the recent change to the if plugin to use jinja2 expressions I am having problems with a config line that worked previously. This new config:

    if:
      - "content_files.length() == 1":
          set:
            title: "My New Title"

results in the following error in the log: My Entry Title does not contain the field list object. (My original expression, prior to upgrading Flexget, was len(content_files) == 1, which now generates the error My Entry Title does not contain the field len.)

This is intended to be part of a longer expression, but I've isolated the error to this part as the rest works fine without this clause. I've confirmed through --dump that content_files indeed exists in the entry and is a list. I've tried .len() and .length() as well as just .length.

Please tell me what I'm doing wrong.

Flexget v2.10.9

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles