Quantcast
Channel: uncategorized - Forum - FlexGet
Viewing all articles
Browse latest Browse all 376

Jinja expression for if plugin that checks if a field is defined, and then value if present

$
0
0

@tubedogg wrote:

Back when if used Python, I was able to use this as an if expression:

trakt_networks and 'hallmark' in trakt_networks

This worked great. Upon the switch to pure Jinja expressions, it throws log errors about iterating with None when trakt_networks isn't in the entry. I tried changing it to this:

trakt_networks is defined and 'hallmark' in trakt_networks`

But that throws the same errors when trakt_networks isn't present.

What should my Jinja expression be so that I don't get log errors?

Posts: 9

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 376

Trending Articles