Sometimes "Recently Added" directs to a specific episode instead of an entire series #7584

Closed
opened 2026-02-07 05:12:30 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @nothing2obvi on GitHub (Oct 26, 2025).

Description of the bug

Sometimes, "Recently Added" directs to a specific episode instead of an entire series. This makes it somewhat confusing to navigate, and it might be the cause of issue https://github.com/jellyfin/jellyfin-roku/issues/495 for Jellyfin Roku. To clarify, it is not showing me the next episode I'm supposed to watch; it's showing the latest episode, even for series I've never watched before. This may lead to spoilers and confusion when navigating.

I noticed this before 10.11.0.

Reproduction steps

  1. Add new episode

What is the current bug behavior?

Jellyfin sometimes links/directs to recently added episode instead of whole series.

What is the expected correct behavior?

Direct to whole series.

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.11.1

Environment

- OS: MacOS Tahoe
- Linux Kernel:
- Virtualization: Native
- Clients: Android TV, Roku, Web
- Browser: Chrome
- FFmpeg Version:
- Playback Method:
- Hardware Acceleration:
- GPU Model:
- Plugins:
- Reverse Proxy:
- Base URL:
- Networking:
- Jellyfin Data Storage:
- Media Storage:
- External Integrations:

Jellyfin logs

n/a

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

See underneath the posters.

Image

Additional information

No response

Originally created by @nothing2obvi on GitHub (Oct 26, 2025). ### Description of the bug Sometimes, "Recently Added" directs to a specific episode instead of an entire series. This makes it somewhat confusing to navigate, and it might be the cause of issue https://github.com/jellyfin/jellyfin-roku/issues/495 for Jellyfin Roku. To clarify, it is not showing me the next episode I'm supposed to watch; it's showing the latest episode, even for series I've never watched before. This may lead to spoilers and confusion when navigating. I noticed this before 10.11.0. ### Reproduction steps 1. Add new episode ### What is the current _bug_ behavior? Jellyfin sometimes links/directs to recently added episode instead of whole series. ### What is the expected _correct_ behavior? Direct to whole series. ### 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.11.1 ### Environment ```markdown - OS: MacOS Tahoe - Linux Kernel: - Virtualization: Native - Clients: Android TV, Roku, Web - Browser: Chrome - FFmpeg Version: - Playback Method: - Hardware Acceleration: - GPU Model: - Plugins: - Reverse Proxy: - Base URL: - Networking: - Jellyfin Data Storage: - Media Storage: - External Integrations: ``` ### Jellyfin logs ```shell n/a ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos See underneath the posters. <img width="1206" height="346" alt="Image" src="https://github.com/user-attachments/assets/6c3b3e62-c323-4ac4-9c0e-c381f32f1cf5" /> ### Additional information _No response_
OVERLORD added the bug label 2026-02-07 05:12:30 +03:00
Author
Owner

@CeruleanRed commented on GitHub (Nov 4, 2025):

As I ran into the same issue I did some digging. I have a "production" server running with some media files, hoping to replicate this issue in a dev environment, I copied the media files to my workstation and tried running it there as well in a dev environment with the debugger attached. The issue shows up in the exact same way for the exact same series.

I was able to track it down to this line in particular

a7d039b7c6/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs (L336)

In my case, all items were returned correctly initially, but some were then filtered out based on MaxDateCreated leading to the above issue as for certain shows, only one episode is then returned.

It seems to me that the actual root of the issue is in how the grouped subquery is being built here:

a7d039b7c6/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs (L318-L325)

but I don't understand exactly what the logic is trying to do. If someone could clarify what the intent and logic is there, I would be very happy to write a fix for this

@CeruleanRed commented on GitHub (Nov 4, 2025): As I ran into the same issue I did some digging. I have a "production" server running with some media files, hoping to replicate this issue in a dev environment, I copied the media files to my workstation and tried running it there as well in a dev environment with the debugger attached. The issue shows up in the exact same way for the exact same series. I was able to track it down to this line in particular https://github.com/jellyfin/jellyfin/blob/a7d039b7c63b0ea9c5bc69898baa1e69d9396908/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs#L336 In my case, all items were returned correctly initially, but some were then filtered out based on MaxDateCreated leading to the above issue as for certain shows, only one episode is then returned. It seems to me that the actual root of the issue is in how the grouped subquery is being built here: https://github.com/jellyfin/jellyfin/blob/a7d039b7c63b0ea9c5bc69898baa1e69d9396908/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs#L318-L325 but I don't understand exactly what the logic is trying to do. If someone could clarify what the intent and logic is there, I would be very happy to write a fix for this
Author
Owner

@CeruleanRed commented on GitHub (Nov 4, 2025):

If anyone else is trying to reproduce this, the show that only shows up with one episode for me is Fullmetal Alchemist: Brotherhood. It only ever shows up as S1:E8 on every installation I tried

@CeruleanRed commented on GitHub (Nov 4, 2025): If anyone else is trying to reproduce this, the show that only shows up with one episode for me is [Fullmetal Alchemist: Brotherhood](https://www.themoviedb.org/tv/31911-fullmetal-alchemist-brotherhood). It only ever shows up as S1:E8 on every installation I tried
Author
Owner

@peaynan commented on GitHub (Nov 25, 2025):

I’ve encountered exactly the same issue described in the original post: the Recently Added section incorrectly points to the last Episode instead of the entire Series. This occurs even for series where I have not watched any episodes at all, which makes browsing and navigation quite confusing.

Temporary “Fix”

I noticed an interesting phenomenon:

When I perform the following sequence of actions on a Series affected by this issue, the Recently Added section starts correctly linking to the Series (instead of a single Episode):

  1. Edit the title of the series.
  2. Refresh metadata.
  3. Scan for new and updated files.

After performing these steps, the Series entry in Recently Added behaves normally.
Crucially, even if I revert the title change afterwards, the correct linking behavior persists.

Note: Although this operation temporarily restores correct behavior, it is not a practical long-term solution — I can’t repeat these steps every time new episodes are added.

Scope of the Issue

This issue occurs across all series within one of my Libraries
The attached screenshot shows an example from my current Libraries, specifically the Recently Added – Current Season section, where the entries display incorrect linking behavior.

Jellyfin Server Version: 10.11.3 (Deployed using the Official Docker Image)

Image
@peaynan commented on GitHub (Nov 25, 2025): I’ve encountered **exactly the same issue** described in the original post: the **Recently Added** section incorrectly points to the last **Episode** instead of the entire **Series**. This occurs **even for series where I have not watched any episodes at all**, which makes browsing and navigation quite confusing. ## Temporary “Fix” I noticed an interesting phenomenon: When I perform the following sequence of actions on a **Series** affected by this issue, the **Recently Added** section starts correctly linking to the Series (instead of a single Episode): 1. **Edit the title** of the series. 2. **Refresh metadata**. 3. **Scan for new and updated files**. After performing these steps, the Series entry in **Recently Added** behaves normally. **Crucially, even if I revert the title change afterwards, the correct linking behavior persists.** **Note:** Although this operation temporarily restores correct behavior, it is not a practical long-term solution — I can’t repeat these steps every time new episodes are added. ## Scope of the Issue This issue occurs across all series within one of my Libraries The attached screenshot shows an example from my current Libraries, specifically the **Recently Added – Current Season** section, where the entries display incorrect linking behavior. Jellyfin Server Version: **10.11.3** (Deployed using the **Official Docker Image**) <img width="1876" height="573" alt="Image" src="https://github.com/user-attachments/assets/0f620838-7346-4893-b071-1b9dc3241315" />
Author
Owner

@soultaco83 commented on GitHub (Dec 8, 2025):

I can confirm that with this PR installed that the Recently added TV and anime now have series instead of episodes.

Image

https://github.com/jellyfin/jellyfin/pull/15433

@soultaco83 commented on GitHub (Dec 8, 2025): I can confirm that with this PR installed that the Recently added TV and anime now have series instead of episodes. <img width="1710" height="120" alt="Image" src="https://github.com/user-attachments/assets/3af88545-cc42-4b70-bce7-a443bb71311c" /> https://github.com/jellyfin/jellyfin/pull/15433
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#7584