mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
AiredEpisodeOrderComparer does not respect dates. #3133
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?
Originally created by @ankenyr on GitHub (Jul 6, 2021).
Describe the bug
AiredEpisodeOrderComparer.cs looks to not compare the air ordering but rather the Parent Index (Season Number) modified by the Index Number (Episode number)
This leads to it being basically the same as absolute order
System (please complete the following information):
To Reproduce
Shows
└── Series
├── YYYYMMDD-Title [ytid].mkv
Expected behavior
It would be expected that since there is no Aired Date property that premier date would be respected. It however is not and you will notice that the ordering is not in the chronological order.
Server Logs
n/a
FFmpeg Logs
n/a
Browser Console Logs
n/a
Screenshots
n/a
Additional context
This was found during development of my Youtube plugin to add the following feature
https://github.com/ankenyr/jellyfin-youtube-metadata-plugin/issues/7
It seems that at one point PremiereDate was use but was commented out and it is unclear why this is. I believe uncommenting that line would solve the issue but it would likely break other things. What seems like a better fix would be changing the comparison on line 155 to do the premiere date compare rather than what it is doing now.
Let me know if this seems sane and I can work on a PR with tests.