[PR #15508] [MERGED] Fix playlist DateCreated and DateLastMediaAdded not being set #14154

Closed
opened 2025-12-22 10:20:45 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/15508
Author: @theguymadmax
Created: 11/14/2025
Status: Merged
Merged: 11/14/2025
Merged by: @crobibero

Base: release-10.11.zHead: fix-playlist-creation-dates


📝 Commits (1)

  • f86ba36 Fix playlist DateCreated and DateLastMediaAdded not being set

📊 Changes

2 files changed (+5 additions, -1 deletions)

View changed files

📝 Emby.Server.Implementations/Playlists/PlaylistManager.cs (+1 -0)
📝 MediaBrowser.Providers/Manager/MetadataService.cs (+4 -1)

📄 Description

BeforeSaveInternal in MetadataService was overwriting valid DateCreated values with DateTime.MinValue when the file system returned invalid creation times.

Changes
Added a check to only update DateCreated from file system info when it has a valid timestamp, and added code to set DateLastMediaAdded when items are added to playlists.

Issues
Fixes #15311
May fix: #14841


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/15508 **Author:** [@theguymadmax](https://github.com/theguymadmax) **Created:** 11/14/2025 **Status:** ✅ Merged **Merged:** 11/14/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.11.z` ← **Head:** `fix-playlist-creation-dates` --- ### 📝 Commits (1) - [`f86ba36`](https://github.com/jellyfin/jellyfin/commit/f86ba3642a5753d970815684e2f4421ea049ba01) Fix playlist DateCreated and DateLastMediaAdded not being set ### 📊 Changes **2 files changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Playlists/PlaylistManager.cs` (+1 -0) 📝 `MediaBrowser.Providers/Manager/MetadataService.cs` (+4 -1) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> `BeforeSaveInternal` in `MetadataService` was overwriting valid `DateCreated` values with `DateTime.MinValue` when the file system returned invalid creation times. **Changes** Added a check to only update `DateCreated` from file system info when it has a valid timestamp, and added code to set DateLastMediaAdded when items are added to playlists. **Issues** Fixes #15311 May fix: #14841 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 10:20:45 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#14154
No description provided.