From e9af533a8dc7a698ba8f63c724cf4111d328602c Mon Sep 17 00:00:00 2001 From: NBA2K1 <78034913+NBA2K1@users.noreply.github.com> Date: Wed, 28 May 2025 20:04:55 +0200 Subject: [PATCH] Fix Kitsu Resolved an issue where items could not be added to the tracker due to the use of an incorrect ID. This caused `parseTrackResponse()` to fail in locating the 'included' key within `jsonResponse`, leading to a null return. As a result, an exception was thrown in `tracker_widget.dart` at line 134 when accessing `widget.trackRes.title!,` triggering a _TypeError (Null check operator used on a null value)_. --- lib/services/trackers/kitsu.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/trackers/kitsu.dart b/lib/services/trackers/kitsu.dart index d922c10e..fc312686 100644 --- a/lib/services/trackers/kitsu.dart +++ b/lib/services/trackers/kitsu.dart @@ -179,7 +179,7 @@ class Kitsu extends _$Kitsu { final accessToken = _getAccessToken(); final url = Uri.parse( - '${_baseUrl}library-entries?filter[${type}_id]=${track.libraryId}&filter[user_id]=$userId&include=$type', + '${_baseUrl}library-entries?filter[${type}_id]=${track.mediaId}&filter[user_id]=$userId&include=$type', ); Response response = await _makeGetRequest(url, accessToken); if (response.statusCode == 200) {