bug处理

This commit is contained in:
truewhile
2026-09-23 23:07:01 +08:00
parent e2cd32af53
commit c9c612df1b
5 changed files with 362 additions and 24 deletions
+3 -1
View File
@@ -143,9 +143,11 @@ func (e *EmbyService) nextUpForRemoteSeries(ctx context.Context, userID, seriesI
}
var current *model.Media
currentCompleted := false
for i := range hist {
if m := epByID[hist[i].MediaID]; m != nil {
current = m
currentCompleted = hist[i].Completed
break
}
}
@@ -167,7 +169,7 @@ func (e *EmbyService) nextUpForRemoteSeries(ctx context.Context, userID, seriesI
}
}
next, ok := pickNextEpisode(episodes, current, completed)
next, ok := pickNextEpisode(episodes, current, currentCompleted, completed)
if !ok {
return emptyItemsEnvelope(0), nil
}