Make tracker use Komikku’s client
This commit is contained in:
parent
a3e47a1055
commit
c3246bf4b6
5 changed files with 6 additions and 5 deletions
|
|
@ -180,7 +180,7 @@
|
|||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:scheme="tachiyomi" />
|
||||
<data android:scheme="komikku" />
|
||||
|
||||
<data android:host="anilist-auth" />
|
||||
<data android:host="bangumi-auth" />
|
||||
|
|
|
|||
|
|
@ -363,7 +363,8 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val clientId = "385"
|
||||
// Registered under KMK's MAL account
|
||||
private const val clientId = "16801"
|
||||
private const val apiUrl = "https://graphql.anilist.co/"
|
||||
private const val baseUrl = "https://anilist.co/api/v2/"
|
||||
private const val baseMangaUrl = "https://anilist.co/manga/"
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ class BangumiApi(
|
|||
private const val oauthUrl = "https://bgm.tv/oauth/access_token"
|
||||
private const val loginUrl = "https://bgm.tv/oauth/authorize"
|
||||
|
||||
private const val redirectUrl = "tachiyomi://bangumi-auth"
|
||||
private const val redirectUrl = "komikku://bangumi-auth"
|
||||
|
||||
fun authUrl(): Uri =
|
||||
loginUrl.toUri().buildUpon()
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ class MyAnimeListApi(
|
|||
|
||||
companion object {
|
||||
// Registered under KMK's MAL account
|
||||
private const val clientId = "6aa6df85b5f386a4328e01299ad74c75"
|
||||
private const val clientId = "2be14959235191ece14eebdc2eea0466"
|
||||
|
||||
private const val baseOAuthUrl = "https://myanimelist.net/v1/oauth2"
|
||||
private const val baseApiUrl = "https://api.myanimelist.net/v2"
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ class ShikimoriApi(
|
|||
private const val oauthUrl = "$baseUrl/oauth/token"
|
||||
private const val loginUrl = "$baseUrl/oauth/authorize"
|
||||
|
||||
private const val redirectUrl = "tachiyomi://shikimori-auth"
|
||||
private const val redirectUrl = "mihon://shikimori-auth"
|
||||
|
||||
fun authUrl(): Uri = loginUrl.toUri().buildUpon()
|
||||
.appendQueryParameter("client_id", clientId)
|
||||
|
|
|
|||
Loading…
Reference in a new issue