mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fix empty collections and watched counts
This commit is contained in:
1 parent
31e86b384b
commit
4f527c77cf
2 files changed
+73
-1
No files matched your search
@@ -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';
|
||||
|
||||
|
||||
Reference in new issue
Block a user