Page 1 of 1
Match Single Genre Documentary Movies
Posted: 24 Sep 2023, 11:07
by hama4reall
Hi! I'm looking for a way to put documentary movies into a different folder but i would like to only match documentary that has only "Documentary" in there genre list, currently I'm using
Code: Select all
{ genres =~ /Documentary/ ? 'Documentary' : '' }
but I like to match Documentary Movies that talks about nature, rather than war & horror documentaries.
Re: Match Single Genre Documentary Movies
Posted: 24 Sep 2023, 11:15
by rednoah

Can you provide a specific positive and a specific negative example? i.e. TMDB link for one movie that only has "Documentary" in the genre list, and another that has multiple genres?
In general,
Conditional Structures (if-then-else) can be arbitrarily complex and check for multiple things if that's what you want:
Re: Match Single Genre Documentary Movies
Posted: 24 Sep 2023, 11:36
by hama4reall
For example this movie
https://www.themoviedb.org/movie/576017-for-sama
Is should be a negative match, and this one
https://www.themoviedb.org/movie/10946-earth
Should be a positive match for the "Documentary" Folder.
Re: Match Single Genre Documentary Movies
Posted: 24 Sep 2023, 12:01
by rednoah
Cheers. The code above has been tested with the given movies and works as desired:
Re: Match Single Genre Documentary Movies
Posted: 24 Sep 2023, 12:03
by hama4reall
Thanks a lot it works, amazing software it's like doing magic!