mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #12859] Order using production year when premiere date is not available #13397
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/12859
Author: @yutongluo
Created: 10/21/2024
Status: 🔄 Open
Base:
master← Head:use-year-when-premieredate-null📝 Commits (1)
8c63f6border using production year when premiere date is not available📊 Changes
2 files changed (+2 additions, -1 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
Emby.Server.Implementations/Data/SqliteItemRepository.cs(+1 -1)📄 Description
Changes
Add coalesce clause to use production year to sort when premiere date is not available. Behavior is as follows
date(ProductionYear||'-01-01')ProductionYearis also null, date will return null since '-01-01' is invalid, and sort will be using NULL (expected behavior)Could not find where to add a test, if folks more familiar could help point it out that'd be great.
Issues
#12101
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.