Skip to content

Am I using contains with --filter incorrectly? #6065

Closed Answered by shadowbobx
shadowbobx asked this question in Q&A
Discussion options

You must be logged in to vote

regex solution works!
any/all solution does not (or more likely I am misunderstanding something)!

I realize why contains would not work as I found its method signature in util.py
The any/all solution was actually my starting point and the reason I found #2446 which I thought was suggesting to use contains, as somehow title wouldn't resolve correctly using any/all which may still be the case?

gallery-dl --filter "not any(t in title.lower() for t in ('season 3', 'season 1'))" --simulate --filename "{title}.{extension}" https://www.webtoons.com/en/fantasy/tower-of-god/list?title_no=95
returns nothing

gallery-dl --filter "any(t in title.lower() for t in ('season 3', 'season 1'))" --simulate -…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shadowbobx
Comment options

Answer selected by shadowbobx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants