Skip to content

Conversation

@DFreezerR
Copy link
Contributor

Partially moved Shikimori to GRAPHQL API

Problem: While Shikimori uses old REST API, there's no way to user to search for LNs/WNs in correction search or normal search using Shiki as primary provider. That is due to manga and novels being separate API endpoints while other providers (MAL, AL etc.) merged them together under name "Manga".

Updating to GQL allow to search for both manga types and novel types at the same time since their API merged novels with manga.

Implementation modifies almost all Shikimori files, so there's a need for writing a tests (I think).

Some notable changes:

  1. GQL impl.
  2. Split API into "queries" and "types"
  3. Old REST API only left for adding/deleting/updating user list
  4. Added "updated_at" sorting option to sort user list by update time in both orders asc/desc

Also some spelling fixes.

@DFreezerR DFreezerR marked this pull request as draft February 12, 2025 17:26
@DFreezerR DFreezerR marked this pull request as ready for review February 13, 2025 17:39
@DFreezerR
Copy link
Contributor Author

I think it's safe to review now

@DFreezerR DFreezerR changed the title Shikimori graphql Shikimori - GraphQL Feb 17, 2025
@stale
Copy link

stale bot commented May 30, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 30, 2025
@lolamtisch lolamtisch added enhancement New feature or request and removed stale labels May 30, 2025
},
}).then((res: Types.CurrentUser) => {
// TODO - Waiting for GRAPHQL update
// if (res.locale) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unfortunate. As this will result in mixed languages in the popup. RU title with English descriptions and headers. I am fine with it tho, as I imagine most people have Shiki set to RU either way
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added old request back, can you try this one again?

@DFreezerR DFreezerR requested a review from lolamtisch July 17, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants