fix: update cached sorting to prefer all streams that are not explicitly marked as uncached

This commit is contained in:
Viren070
2025-06-13 17:04:59 +01:00
parent 90980c7636
commit b16f36d4ea
+1 -4
View File
@@ -2435,10 +2435,7 @@ ${errorStreams.length > 0 ? ` ❌ Errors : ${errorStreams.map((s) => `
const multiplier = direction === 'asc' ? 1 : -1;
switch (key) {
case 'cached':
return (
multiplier *
(stream.service?.cached || stream.type === 'http' ? 1 : 0)
);
return multiplier * (stream.service?.cached !== false ? 1 : 0);
case 'library':
return multiplier * (stream.library ? 1 : 0);