mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] apply sort by seeders pruning first when sorting by size
This commit is contained in:
@@ -55,7 +55,7 @@ function sortBySeeders(streams, limit) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sortBySize(streams, limit) {
|
function sortBySize(streams, limit) {
|
||||||
return streams
|
return sortBySeeders(streams)
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
const aSize = extractSize(a.title);
|
const aSize = extractSize(a.title);
|
||||||
const bSize = extractSize(b.title);
|
const bSize = extractSize(b.title);
|
||||||
|
|||||||
Reference in New Issue
Block a user