Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ignore user/gallery urls? #5778

Closed
sockpuppetclock opened this issue Jun 23, 2024 · 1 comment
Closed

How to ignore user/gallery urls? #5778

sockpuppetclock opened this issue Jun 23, 2024 · 1 comment

Comments

@sockpuppetclock
Copy link

I'm running a browser script that passes selected URLs to gallery-dl. Sometimes I accidentally select a profile url instead of the post url and gallery-dl downloads the entire profile, which I do not want. Is there any internal distinction between galleries and posts that gallery-dl can be set to ignore?

@mikf
Copy link
Owner

mikf commented Jun 23, 2024

Distinguishing between galleries and posts can be done via subcategories and setting options only for one of them. There is currently no option to completely ignore a certain type of URL, but you can tell gallery-dl to more or less immediately stop.

For example,

-o extractor.deviantart.gallery.image-filter="abort()"

will prevent DA galleries from being processed, but it'll still allow single posts to be downloaded.

You can find a URL's subcategory with -E/--extractor-info:

$ gallery-dl -E https://www.deviantart.com/shimoda7/gallery
Category / Subcategory
  "deviantart" / "gallery"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants