From 2cb6a15c0bd456671c850e4e540cee6582270117 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Fri, 26 Jul 2024 13:45:25 +0800 Subject: [PATCH] feat: movie ignore sound tracks --- server/core/torrent.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/core/torrent.go b/server/core/torrent.go index 286a22c..01eb647 100644 --- a/server/core/torrent.go +++ b/server/core/torrent.go @@ -110,6 +110,10 @@ func SearchMovie(db1 *db.Client, movieId int, checkResolution bool) ([]torznab.R if meta.Year != year && meta.Year != year-1 && meta.Year != year+1 { //year not match continue } + if utils.ContainsIgnoreCase(r.Name, "soundtrack") { + //ignore soundtracks + continue + } filtered = append(filtered, r)