Skip to content

Obtain PNID data directly from account.pretendo.cc + un-hardcode Mii image URL#3

Open
ariankordi wants to merge 4 commits into
Project-Rose:devfrom
ariankordi:dev
Open

Obtain PNID data directly from account.pretendo.cc + un-hardcode Mii image URL#3
ariankordi wants to merge 4 commits into
Project-Rose:devfrom
ariankordi:dev

Conversation

@ariankordi
Copy link
Copy Markdown

@ariankordi ariankordi commented May 9, 2026

Previously, the mii-unsecure.ariankordi.net/mii_data/ API was used for PNID data. I have changed this to use Pretendo directly, because my site is unreliable and I am considering changing my API.

I have also put the Mii render URL in .env and made a method to obtain it cleanly. This makes self-hosting easier. Another minor detail is that title.ts now handles if the Mii image request fails, so that's good.
Hopefully these changes can also make their way into Roseverse along with self-hosting the server so that I won't cause it to go down again.

All of my changes are UNTESTED, and I would appreciate if one of you gave this a try when possible.

Edit 05/11: I just split the PNID fetching functionality into a class that I posted publicly. I've confirmed this to work with the upcoming Bun update that enables HTTP/2 (which Pretendo blocks)
That class is meant to work with other JS projects as well, so I pasted it in the repo as-is. It is still fully typed and can be ported to .ts easily, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant