-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[NSFW] Sankaku Complex image booru's new IDs #5073
Comments
Posts with alphanumeric IDs are now supported (a416d4c). |
Thanks a bunch, that did the trick. |
Could you also please add a directory and file template field for the new post IDs? |
I can't figure out how to do this in general. I would have thought and hoped that these new IDs can somehow be gotten by converting an existing value (numeric ID, MD5) to another format/base, but that doesn't seem to work. New IDs are all 11 characters long and in base 62 (ASCII letters and digits) from what I can tell. We could obviously just take the given ID for post URLs, but it would be missing for everything else like tag searches. |
So I figured out how to get alphanumeric IDs (34a4ddc, |
https://forum.sankakucomplex.com/t/converting-between-legacy-numeric-new-alphanumeric-post-ids/48568
The admin wrote:
|
@mikf since the id is not |
It is possible to compare |
They're obviously using hashids with default alphabet and length of 11. If someone somehow brakes into their server please retrieve the salt string, it would be really helpful for the community 🙈 |
I am also getting headache on the new id does not help on sorting, guess in future we have to resort to timestamps. And luckily there is accurate enough time available. I suggest use that. e.g.
filename = {dt}{newid}{ext} Should looks something like this |
Since a few weeks or so, the old numeric IDs are fully gone (entering the old ID now fails on the site, and the program also only shows no others) :( Sankaku became such a pain |
yup, imagine TBs of "cultural" content that need figure out how to deal with it. |
|
fyi, found out this https://chan.sankakucomplex.com/en/posts.json?page=1&tags=yutian_alice it's still returning the good old ids for now. note: can use firefox to open the link for in-browser UI for json output |
Since a few days or weeks or so, the Sankaku image booru changed their IDs from purely numeric to alphanumeric (among others apparent changes to their API). Downloads now sometimes fail with various errors or do succeed, but with nonsensical IDs. Here are a few examples:
An attempt to download posts with containing more... extreme content throws the following error message, even though I do have a premium account and could view these kinda posts in the browser without problems:
Another post with extreme content throws the following error:
The text was updated successfully, but these errors were encountered: