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

Patreon-related issues #711

Closed
SumatraPeter opened this issue Apr 26, 2020 · 3 comments
Closed

Patreon-related issues #711

SumatraPeter opened this issue Apr 26, 2020 · 3 comments

Comments

@SumatraPeter
Copy link

I'm trying to download only certain (not all) public files from a creator's Patreon that I'm not subscribed to. The creator has non-public files as well of course, available only to subscribers at various tiers, but I'm not concerned about those here. I'm not logged in to Patreon either. All target files are images that I'm able to view fine via a browser.

gallery-dl.exe "https://www.patreon.com/user/posts?u=CreatorID&filters[tag]=Word1 Word2"
resulted in

[patreon][error] NotFoundError: Requested creator could not be found

gallery-dl.exe "https://www.patreon.com/CreatorName/posts?filters[tag]=Word1 Word2"
on the other hand worked, but instead of downloading attachments from posts that only matched the tag filter, I found that it was downloading attachments from all the public posts of the creator.

So my request would be to have the program recognize Patreon URLs containing the CreatorID instead of the CreatorName, and to properly obey any specified tag filters.

@mikf
Copy link
Owner

mikf commented Apr 27, 2020

233b6f9 now recognizes Patreon URLs with creator IDs.

Applying filters from URL queries hasn't been implemented yet, but you can always use --filter to manually filter posts by their metadata.

@SumatraPeter
Copy link
Author

Thanks for what's been implemented so far!

you can always use --filter to manually filter posts by their metadata

I don't know how to get this to work - can you please point me to some documentation about it?

@mikf
Copy link
Owner

mikf commented Apr 29, 2020

Filter statements (and post sort order) in query parameters now get recognized (fc3e542)


I don't know how to get this to work - can you please point me to some documentation about it?

https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractorimage-filter
You would basically have to write custom Python statements to evaluate a file's metadata (-j) to decide whether or not to download it. It's not the easiest thing, but it can at least sometimes be used as a fallback when certain features aren't implemented in gallery-dl itself.

@mikf mikf closed this as completed Apr 29, 2020
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