mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Nextup episodes api call missing first episode of the show #6834
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hagaygo on GitHub (Mar 18, 2025).
Description of the bug
When calling /Shows/NextUp API call the result sometimes misses "in progress" episodes when they are the first episodes of the show.
Reproduction steps
1.Make sure to have at least two shows in your library (I'll call them X and Y)
2.Mark first episode of show X as watched.
3.Verify it is shown on NextUp API call.
4.Partially watch first episode of show Y.
5.Check NextUp result it should show both episodes of each show , the episode of show Y should be first.
6.Now fully play the next episode of show X
7. Requery NextUp API again and you'll we see only show X next episode and partially played episode of show Y is not shown at all.
What is the current bug behavior?
Not fully watched episode (first of the show) are not shown on some cases.
What is the expected correct behavior?
Partially played episodes should always be shown on NextUp API call.
I looked into the code and found the problem.
TVSeriesManager.cs
There is some logic here that we don't want to see first episodes of a show. (since first episode's show don't have value in LastWatchedDate it ignores him)
If a fully playback episode is the first on the list the anyFound is true and no first episode is shown next.
If our partially played episode is the first on the list , anyFound is still false and it will be returned.
I am not sure how to fix this since we don't yet have the playback position filled up and fill all the items on the list seems overkill. (if we hade the playback runtime ticks value we could not filter out the episode)
Any fix/help will be appreciated.
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.6
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response
@theguymadmax commented on GitHub (Mar 18, 2025):
This part of the code is being rewritten in PR #13687. Feel free to test it and see if the issue persists.
@hagaygo commented on GitHub (Mar 18, 2025):
Seems the PR fixes this issue I'll close this this issue now and follow the PR