From c973fc2a277ec0939f9cc1d9b55a500eabbe627f Mon Sep 17 00:00:00 2001 From: Schnitzel5 Date: Mon, 25 Aug 2025 18:42:00 +0200 Subject: [PATCH] fixed callback uri --- lib/services/trackers/simkl.dart | 4 +++- lib/services/trackers/trakt_tv.dart | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/services/trackers/simkl.dart b/lib/services/trackers/simkl.dart index e4291bb5..136f2503 100644 --- a/lib/services/trackers/simkl.dart +++ b/lib/services/trackers/simkl.dart @@ -20,7 +20,9 @@ class Simkl extends _$Simkl implements BaseTracker { static const _baseOAuthUrl = 'https://simkl.com/oauth'; static const _baseApiUrl = 'https://api.simkl.com'; static final _isDesktop = (Platform.isWindows || Platform.isLinux); - static const _redirectUri = 'http://localhost:43824'; + static final _redirectUri = _isDesktop + ? 'http://localhost:43824' + : 'mangayomi'; static const _clientId = '1e0a52930b1bdface4e30c1a94a44641475f3c80b69a5ea939562153fccffb68'; static const _clientSecret = diff --git a/lib/services/trackers/trakt_tv.dart b/lib/services/trackers/trakt_tv.dart index db114b33..e26ac34a 100644 --- a/lib/services/trackers/trakt_tv.dart +++ b/lib/services/trackers/trakt_tv.dart @@ -20,7 +20,9 @@ class TraktTv extends _$TraktTv implements BaseTracker { static const _baseOAuthUrl = 'https://api.trakt.tv/oauth'; static const _baseApiUrl = 'https://api.trakt.tv'; static final _isDesktop = (Platform.isWindows || Platform.isLinux); - static const _redirectUri = 'http://localhost:43824'; + static final _redirectUri = _isDesktop + ? 'http://localhost:43824' + : 'mangayomi'; static const _clientId = '5520c7e24da0d8d73ec80315b61b9849483583b013cb7f296c6db723eb9886a1'; static const _clientSecret =