Fix Shikimori URL (#3497)

There is a redirect from the .one domain to the .io domain but it uses
code 301 for redirecting on the token POST request, meaning the
followup request tries to use GET which returns a 404.
This commit is contained in:
MajorTanya
2026-07-02 20:03:24 +02:00
committed by GitHub
parent d8c3440d37
commit 3fd76e4f93
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -14,6 +14,9 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
### Added ### Added
- Support resumable image downloads if supported by source ([@xMohnad](https://github.com/xMohnad)) ([#3167](https://github.com/mihonapp/mihon/pull/3167)) - Support resumable image downloads if supported by source ([@xMohnad](https://github.com/xMohnad)) ([#3167](https://github.com/mihonapp/mihon/pull/3167))
### Fixed
- Fix Shikimori tracking not working ([@MajorTanya](https://github.com/MajorTanya)) ([#3497](https://github.com/mihonapp/mihon/pull/3497))
## [v0.20.0] - 2026-06-27 ## [v0.20.0] - 2026-06-27
### Added ### Added
- Add support for `tachiyomix` 1.6 extensions ([@AntsyLich](https://github.com/AntsyLich)) - Add support for `tachiyomix` 1.6 extensions ([@AntsyLich](https://github.com/AntsyLich))
@@ -154,7 +154,7 @@ class ShikimoriApi(
) )
companion object { companion object {
const val BASE_URL = "https://shikimori.one" const val BASE_URL = "https://shikimori.io"
private const val API_URL = "$BASE_URL/api" private const val API_URL = "$BASE_URL/api"
private const val OAUTH_URL = "$BASE_URL/oauth/token" private const val OAUTH_URL = "$BASE_URL/oauth/token"
private const val LOGIN_URL = "$BASE_URL/oauth/authorize" private const val LOGIN_URL = "$BASE_URL/oauth/authorize"