From 7cd9ab29043ceedb3657c5e4d57ebc114c03e8fb Mon Sep 17 00:00:00 2001 From: lordwelch Date: Mon, 8 Jan 2018 23:25:45 -0700 Subject: [PATCH] Forgot period on extension Sorts by resolution before release --- type.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/type.go b/type.go index 922c849..db53ed0 100644 --- a/type.go +++ b/type.go @@ -119,10 +119,10 @@ func (Et *EpisodeTorrent) ByExt(i, j int) bool { ij int ) - if filepath.Ext(Et.Ep[i].Meta.Info.Name) != "mkv" { + if filepath.Ext(Et.Ep[i].Meta.Info.Name) != ".mkv" { ii = 1 } - if filepath.Ext(Et.Ep[j].Meta.Info.Name) != "mkv" { + if filepath.Ext(Et.Ep[j].Meta.Info.Name) != ".mkv" { ij = 1 } return ii < ij @@ -199,7 +199,7 @@ func (Et *EpisodeTorrent) Swap(i, j int) { } func (Et *EpisodeTorrent) Less(i, j int) bool { - return OrderedBy(Et.ByExt, Et.ByRelease, Et.ByRes, Et.ByTag)(i, j) + return OrderedBy(Et.ByExt, Et.ByRes, Et.ByRelease, Et.ByTag)(i, j) } func (Et *EpisodeTorrent) Add(Vt *SceneVideoTorrent) {