@jbaddock wrote:
Trying to create one particular if statement that will run if NONE of these names are in the title, as my final catch all in my overall IF statement. So far it does not work, if anyone can assist or advise if this IF statement is possible, that would be appreciated.
Was trying to keep a few uploader names, so I know where they come from if I ever question something.
if: - "'Grym'" or "'PublicHD'" or "'RARBG' in title" = false: And Tried: - "any(['Grym', 'PublicHD', 'RARBG']) in title" = false: and - "'Grym'" or "'PublicHD'" or "'RARBG' not in title":
And tried other variations.... Simplified it. Just with one NOT
- "'uploader1' not in title": - not 'Uploader1' in title: - not ('Uplaoder1' in title): - "not ('Uplaoder1' in title)":
Currently have this as an example, and was just wondering if it is possible to have a final catch. Or if there is a better/more compact way to write this. I did have a "set content_filename" statement outside of the if statement, but then it was set and none of the if statements were executed.
My original thought, was that since "set" was a priority of 128, and "IF" was 80, "IF" would run last and override the original "SET" value if any applied. But it didn't.
set: content_filename: > /{{ tmdb_name|default(imdb_name) }}.{{ tmdb_year|default(imdb_year) }}.{{ quality }} if: - "'Grym' in title": set: content_filename: > /{{ tmdb_name|default(imdb_name) }}.{{ tmdb_year|default(imdb_year) }}.{{ quality }}-Grym - "'PublicHD' in title": set: content_filename: > /{{ tmdb_name|default(imdb_name) }}.{{ tmdb_year|default(imdb_year) }}.{{ quality }}-PublicHD - "'RARBG' in title": set: content_filename: > /{{ tmdb_name|default(imdb_name) }}.{{ tmdb_year|default(imdb_year) }}.{{ quality }}-RARBG
Posts: 2
Participants: 1