mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #13598] [MERGED] Fix overwrite of PremierDate with a year-only value #13640
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?
📋 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.