Fix empty collections and watched counts

This commit is contained in:
Dominic Kleiner authored and HighImKevin committed 2026-10-18 11:30:15 -04:00
1 parent 31e86b384b
commit 4f527c77cf
2 files changed
+73 -1

No files matched your search

+1 -1
View File
@@ -613,7 +613,7 @@
const totalItemCount = item.RecursiveItemCount || item.ChildCount || 0;
const playedItemCount = totalItemCount - unplayedItemCount;
const isVideoCollection = document.querySelector('.libraryPage:not(.hide) .collectionItems:has(.card[data-mediatype="Video"])').length > 0;
const isVideoCollection = document.querySelector('.libraryPage:not(.hide) .collectionItems:has(.card[data-mediatype="Video"])') !== null;
const progressText = isVideoCollection ? 'watched' : 'complete';
const incompleteText = isVideoCollection ? 'unwatched' : 'incomplete';