mirror of https://github.com/jellyfin/jellyfin
Fix playlist DateCreated and DateLastMediaAdded not being set (#15508)
This commit is contained in:
parent
ee34c75386
commit
078f9584ed
|
|
@ -244,6 +244,7 @@ namespace Emby.Server.Implementations.Playlists
|
|||
|
||||
// Update the playlist in the repository
|
||||
playlist.LinkedChildren = [.. playlist.LinkedChildren, .. childrenToAdd];
|
||||
playlist.DateLastMediaAdded = DateTime.UtcNow;
|
||||
|
||||
await UpdatePlaylistInternal(playlist).ConfigureAwait(false);
|
||||
|
||||
|
|
|
|||
|
|
@ -344,7 +344,10 @@ namespace MediaBrowser.Providers.Manager
|
|||
item.DateModified = info.LastWriteTimeUtc;
|
||||
if (ServerConfigurationManager.GetMetadataConfiguration().UseFileCreationTimeForDateAdded)
|
||||
{
|
||||
item.DateCreated = info.CreationTimeUtc;
|
||||
if (info.CreationTimeUtc > DateTime.MinValue)
|
||||
{
|
||||
item.DateCreated = info.CreationTimeUtc;
|
||||
}
|
||||
}
|
||||
|
||||
if (item is Video video)
|
||||
|
|
|
|||
Loading…
Reference in New Issue