Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Filtering keywords in an input file #7839

Unanswered
powerfulsaber asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

No, that's not possible. Anything inside an input file is just taken as is.

You must be logged in to vote
1 reply
Comment options

I'll leave this open so it can be treated as a feature request(s).

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

AltStyle によって変換されたページ (->オリジナル) /