Skip to content

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

Open
ariankordi wants to merge 3 commits intoProject-Rose:devfrom
ariankordi:dev
Open

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

Conversation

@ariankordi
Copy link
Copy Markdown

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.

One concern is that account.pretendo.cc blocks HTTP/2 and requires 1.1. Bun is about to implement it in its fetch() client: https://x.com/bunjavascript/status/2048873100239135163
I need you to test if that can be overridden to force HTTP 1.1. If not, we may have to use an alternative.

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