hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.41k stars 160 forks source link

Ability to tell POST /add_urls/add_url to follow gallery urls (and behave as normal search) when given first page of a gallery #1046

Closed sttollgrin closed 2 years ago

sttollgrin commented 2 years ago

Currently API endpoint POST /add_urls/add_url supports gallery urls but only seems to be downloading first page, it would be nice to be able to (optionally) tell hydrus to follow found gallery subpages (and basically behave as search).

ie.: right now submitting url like 'https://safebooru.org/index.php?page=post&s=list&tags=1girl' will download all files from the first page (40 files) and then stop, I would like to be able to tell the downloader to for example continue extracting subsequent gallery urls until it hits some limit.

Zweibach commented 2 years ago

That's working as intended. The endpoint sends the URL to an URL downloader page which is made to just grab what it gets, not pursue further queries. For that you want gallery downloader. #350