From 369b28e4081b4e32d860d34b09868319ddc1deb1 Mon Sep 17 00:00:00 2001 From: RandomNamer Date: Sun, 30 Jun 2024 02:07:43 -0400 Subject: [PATCH] fix: fix movie play status syncing. --- Jellyfin.Plugin.Bangumi/PlaybackScrobbler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Bangumi/PlaybackScrobbler.cs b/Jellyfin.Plugin.Bangumi/PlaybackScrobbler.cs index f94a193..fb7d272 100644 --- a/Jellyfin.Plugin.Bangumi/PlaybackScrobbler.cs +++ b/Jellyfin.Plugin.Bangumi/PlaybackScrobbler.cs @@ -115,7 +115,7 @@ private async Task ReportPlaybackStatus(BaseItem item, Guid userId, bool played) if (item is Movie) { - episodeId = subjectId; + subjectId = (subjectId == 0) ? episodeId : subjectId; // jellyfin only have subject id for movie, so we need to get episode id from bangumi api var episodeList = await _api.GetSubjectEpisodeListWithOffset(subjectId, EpisodeType.Normal, 0, CancellationToken.None); if (episodeList?.Data.Count > 0)