mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-21 09:57:35 +08:00
fix: no sort
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
|||||||
"polaris/pkg/torznab"
|
"polaris/pkg/torznab"
|
||||||
"polaris/pkg/transmission"
|
"polaris/pkg/transmission"
|
||||||
"polaris/pkg/utils"
|
"polaris/pkg/utils"
|
||||||
"sort"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -158,11 +157,11 @@ func (s *Server) findBestMatchTv(resources []torznab.Result, season, episode int
|
|||||||
filtered = append(filtered, r)
|
filtered = append(filtered, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
sort.Slice(filtered, func(i, j int) bool {
|
// sort.Slice(filtered, func(i, j int) bool {
|
||||||
var s1 = filtered[i]
|
// var s1 = filtered[i]
|
||||||
var s2 = filtered[2]
|
// var s2 = filtered[j]
|
||||||
return s1.Seeders > s2.Seeders
|
// return s1.Seeders > s2.Seeders
|
||||||
})
|
// })
|
||||||
|
|
||||||
return filtered[0]
|
return filtered[0]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user