mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: update cached sorting to prefer all streams that are not explicitly marked as uncached
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user