Skip to content

Commit

Permalink
fix: fix movie play status syncing.
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomNamer authored and kookxiang committed Jul 1, 2024
1 parent 659813c commit 369b28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Bangumi/PlaybackScrobbler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 369b28e

Please sign in to comment.