mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Series DateLastMediaAdded field not updated when new episodes are added #7723
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 @MangataL on GitHub (Nov 9, 2025).
Description of the bug
When new TV episodes are added to an existing series, the "Date Episode Added" sorting does not work as expected. The newly added episodes don't appear at the top of the list immediately after adding them to the library.After reviewing the source code, I found that it seems to be due to the DateLastMediaAdded not being updated after adding a new episode.
Reproduction steps
/video/tv/GNOSIA/video/tv/GNOSIA/Season 1/GNOSIA S01E06By checking the logs, I found logs similar to
Emby.Server.Implementations.IO.LibraryMonitor: "GNOSIA" ("/video/bangumi/GNOSIA/Season 1") will be refreshed.Further examination of the code revealed that when a new episode is added to the database, it triggers the refresh of the directory of the previous episode. In the database, its type isMediaBrowser.Controller.Entities.TV.Season, and the SupportsDateLastMediaAdded property of this type is false. There is also no DateLastMediaAdded attribute value in the database. The page seems to sort by the date of addition according to the episode number, but when episodes are added and updated, only the update of the Season is triggered, not the update of the Series.What is the current bug behavior?
The series with new episodes doesn't appear at the top
What is the expected correct behavior?
The series with new episodes appear at the top
Jellyfin Server version
10.11.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.11.2
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response
@moontwister commented on GitHub (Nov 10, 2025):
I can confirm this issue on multiple setups:
When sorting by “Date Episode Added”, adding a new episode does not reorder the series in the Web or webOS clients.
The same server and library show correct “latest episode” ordering in Kodi and Infuse, which suggests that the server is correctly storing the DateAdded metadata, but the Web UI and webOS clients are not updating or using the latest DateLastMediaAdded field properly.
Also, running “Search for Missing Metadata” temporarily fixes the order, but that shouldn’t be required for normal updates.
@theguymadmax commented on GitHub (Nov 17, 2025):
Fixed by: #15472