feat(explore): MyAnimeList catalog source

This commit is contained in:
edde746
2026-07-10 07:07:54 +02:00
parent dcdbbc8483
commit 2aa084287d
13 changed files with 1129 additions and 3 deletions
+8
View File
@@ -58,6 +58,14 @@ class TrackersProvider extends ChangeNotifier with DisposableChangeNotifierMixin
bool get isAnilistConnected => _anilist != null;
bool get isSimklConnected => _simkl != null;
/// The live MAL client for the Explore catalog, shared with the scrobble
/// tracker so both ride one session (MAL rotates refresh tokens — a second
/// client would race refreshes and log the user out). Gated on this
/// provider's own session so a freshly-mounted profile subtree never sees
/// the previous profile's client while its sessions are still loading;
/// every rebind is followed by a notify, so proxy consumers track identity.
MalClient? get malCatalogClient => _mal == null ? null : MalTracker.instance.client;
String? get malUsername => _mal?.username;
String? get anilistUsername => _anilist?.username;
String? get simklUsername => _simkl?.username;