AtoraSuunva / booru

Searches boorus for images using some js magic
https://www.npmjs.com/package/booru
MIT License
78 stars 19 forks source link

Return artist(s) & character(s) #100

Open iced-queen opened 1 year ago

iced-queen commented 1 year ago

I think it'd be nice if the data object also returned the artist(s) and character(s) like shown in the image below img

Right now it returns an owner which I assume is the uploader, but personally I think it's more relevant to get the artist(s) and character(s). Would also be very useful, at least for my project but I'm sure other's could make use of that as well 😄

AtoraSuunva commented 1 year ago

Those are returned as part of the tags on a post.

I've thought of having them separate, but most boorus don't categorize the tags at all.

hypnohub, rule34.xxx, gelbooru, paheal, and derpibooru all just return a single string/array of tags

The only one that remember splitting tags is e621

I could probably fetch tags from the booru to categorize them, but that'd need another API call and I assume most people don't need that info, so I'd rather not make extra calls

It's something that I would have to look into to see if there's any good (cross-booru) way to do this

iced-queen commented 1 year ago

Well I know rule34.xxx returns the artist(s) and having them returned separetly as they don't really fit in the tags would be really useful for those who uses rule34.xxx with this library 😄

AtoraSuunva commented 1 year ago

I'm planning to eventually rewriting booru and having some way to do specific "only some boorus support this" things, so it's definitely possible in the future