Exclude folders based on exact folder name?
Posted: 10 Apr 2022, 21:56
Here's the script i'm using (for TV shows):
And it has been working pretty well so far. However, I have been having some trouble with not matching some files. After troubleshooting, I realized this is because the containing folder has the word "Extras" in it (e.g. . I thought that would exclude only exact matches, but it doesn't seem so. This has also been a problem for my movie script too.
So, how can I exclude folders that match the exact folder name only?
Code: Select all
!file.isMovie() && none{ f =~ /Featurette|Featurettes|tv-sonarr|seeding|Extras/ } && none{ ext =~ /jpg|png|txt|exe|nfo|website/ }{ fn.match(/sample|trailer/) }
Code: Select all
TV Show (2022) Season 1 + Extras
Code: Select all
none{ f =~ /Featurette|Featurettes|tv-sonarr|seeding|Extras/ }
So, how can I exclude folders that match the exact folder name only?