mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #13598] [MERGED] Fix overwrite of PremierDate with a year-only value #13460
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#13460
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/13598
Author: @IDisposable
Created: 2/21/2025
Status: ✅ Merged
Merged: 3/1/2025
Merged by: @Bond-009
Base:
release-10.10.z← Head:preserve-premier-date📝 Commits (3)
93c8937Preserve the more-specific PremierDate's month and day192ade7PR feedback6fa9af0Update unit test📊 Changes
2 files changed (+16 additions, -4 deletions)
View changed files
📝
MediaBrowser.Providers/Manager/MetadataService.cs(+3 -1)📝
tests/Jellyfin.Providers.Tests/Manager/MetadataServiceTests.cs(+13 -3)📄 Description
When a update-metadata is processed and the information from one provider gives a full date (e.g. 2025-02-20) and another provider gives only the year (e.g. 2025-01-01), don't overwrite the date unless it's currently a year-only.
This comes up when (for example) The Audio DB has only the year, but MusicBrainz has a full date for the release date. With this change prefer the full date.
Changes
Add a test for IsYearOnlyDate, and use that in MetadataService.MergeBaseItemData to ensure we don't replace more-specific dates with less-specific ones.
Issues
Fixes #13596
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.