-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Filtering keywords in an input file #7839
-
Is there a way to have gallery-dl skip processing a link in an input file if it fails to pass a filter on a keyword already present in the file? I want to avoid making unnecessary connections when the input file already contains the information needed for the filter to operate.
For example, if I apply this filter to the input file below: 'cat' in title.lower(), it should immediately skip the first two links and start processing the third link (and afterward the last link). Currently, it connects to the link first and then filters afterward for all links.
- keywords.title = "Dogs"
https://danbooru.donmai.us/posts/9632220
- keywords.title = "Hamsters"
https://danbooru.donmai.us/posts/9600247
- keywords.title= "Cats"
https://danbooru.donmai.us/posts/9617258
- keywords.title = "Cat"
https://danbooru.donmai.us/posts/9637272
Moreover, is there a way for gallery-dl to create an input file for a supported site with all or a select few keywords set? So if I use https://www.erome.com/explore, it should create an input file containing a list of album links with keywords set for each one.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
No, that's not possible. Anything inside an input file is just taken as is.
Beta Was this translation helpful? Give feedback.
All reactions
-
I'll leave this open so it can be treated as a feature request(s).
Beta Was this translation helpful? Give feedback.