evazion / translate-pixiv-tags

MIT License
35 stars 6 forks source link

SauceNAO brings up deleted artists #23

Closed BrokenEagle closed 5 years ago

BrokenEagle commented 5 years ago

I noticed this when doing a SauceNAO search.

WARNING: NSFW! http://saucenao.com/search.php?db=999&url=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FC2q3lxtVQAEKkLN.png image

It's because the get function for artists is not passing in the is_active parameter.

https://github.com/evazion/translate-pixiv-tags/blob/159cdb301719e6cb24ab8f7f2aa5d5a9f068861b/translate-pixiv-tags.user.js#L1392

The following is what it should be.

get("/artists", {search: {name: e.text().replace(/ /g, "_"), is_active: true}, only: ARTIST_FIELDS})