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

[Wallhaven] search results entries doesn't include tag. #2803

Closed
gphg opened this issue Aug 5, 2022 · 1 comment
Closed

[Wallhaven] search results entries doesn't include tag. #2803

gphg opened this issue Aug 5, 2022 · 1 comment

Comments

@gphg
Copy link

gphg commented Aug 5, 2022

Unlike single page link wallpaper, search results link that download multiple wallpapers at once doesn't produce tags on JSON metadata.

Search link: https://wallhaven.cc/search?q=%40garett

# save the whole metadata into single JSON file
gallery-dl -j https://wallhaven.cc/search?q=%40garett > output.json

# JSON per entry, so I don't have to split it later
gallery-dl --no-download --write-metadata https://wallhaven.cc/search?q=%40garett

Single entry, pick randomly wallpaper page, for example this: https://wallhaven.cc/w/8ojrvo

# basically the same as above
gallery-dl -j https://wallhaven.cc/w/8ojrvo > 8ojrvo.data.json
gallery-dl --no-download --write-metadata https://wallhaven.cc/w/8ojrvo

The single entry is more detailed.

@mikf
Copy link
Owner

mikf commented Aug 10, 2022

Single entries use a different API endpoint with slightly different, more complete metadata.

I've added a metadata option for wallhaven (a69f198), that, when enabled, uses the single entry API endpoint for all wallpapers to provide tags metadata in all instances.

You might want to use a sleep-request value of at least 1 when using this option to not get throttled by 429 Too Many Requests errors.

@gphg gphg closed this as completed Aug 15, 2022
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