Stop linking to the generic Upcoming tv page on Jellyfin v12, link to the details page for Playlists and Collections

This commit is contained in:
HighImKevin
2026-10-20 12:59:00 -04:00
parent ef0249b6a8
commit 23d8e233f2
+6 -2
View File
@@ -569,7 +569,10 @@
return `#/tv.html?collectionType=tvshows&tab=4&serverId=${ApiClient.serverId()}`;
}
if (id === 'upcoming' || id === 'recentlyReleased.episodes') {
// Check for Jellyfin 12, as this universal Upcoming tab is currently broken in Jellyfin 12
const isJellyfin12 = await window.KefinTweaks.getJellyfinMajorVersion();
if (id === 'upcoming' || (id === 'recentlyReleased.episodes' && !isJellyfin12)) {
return `#/tv.html?collectionType=tvshows&tab=2&serverId=${ApiClient.serverId()}`;
}
@@ -633,7 +636,8 @@
// Check for ParentId
if (queryOptions.ParentId) {
if (sectionConfig.discoveryType === 'Collection' || sectionConfig.discoveryType === 'Playlist') {
const detailsParentTypes = ['Collection', 'Playlist'];
if (sectionConfig.discoveryType === 'Collection' || sectionConfig.discoveryType === 'Playlist' || detailsParentTypes.includes(activeQuery._parentItemType)) {
return `#/details?id=${queryOptions.ParentId}&serverId=${serverId}`;
}