@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, waslen(content_files) == 1
, which now generates the errorMy 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
thatcontent_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