hydrusvideodeduplicator / hydrus-video-deduplicator

Video Deduplicator for the Hydrus Network
https://hydrusvideodeduplicator.github.io/hydrus-video-deduplicator/
MIT License
41 stars 7 forks source link

Support OR predicate for queries #26

Open appleappleapplenanner opened 1 year ago

appleappleapplenanner commented 1 year ago

OR predicates are supported through the client API.

The way --query is parsed right now does not allow passing a list to the JSON encoder. It just creates a list of strings.

To do OR predicates there needs to be a way to create a list from --query

Example:

search_tags = ['system:filetype=video, gif, apng', 'system:has duration', ["character:edward", "character:yoda"]]

Search tags are only processed in __main__.py, config.py, and dedup.py.

If anyone wants to PR this it wouldn't be too hard and it's a crucial feature.