From b5f457e06f741f37245c857f7544aa2d74b138c7 Mon Sep 17 00:00:00 2001 From: Bright-W Date: Wed, 23 Mar 2022 10:24:12 +0800 Subject: [PATCH] torrentgalaxy : add imdbid search (#13078) --- src/Jackett.Common/Definitions/torrentgalaxy.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentgalaxy.yml b/src/Jackett.Common/Definitions/torrentgalaxy.yml index 2164838ff..49c8509f7 100644 --- a/src/Jackett.Common/Definitions/torrentgalaxy.yml +++ b/src/Jackett.Common/Definitions/torrentgalaxy.yml @@ -75,8 +75,8 @@ caps: modes: search: [q] - tv-search: [q, season, ep] - movie-search: [q] + tv-search: [q, season, ep, imdbid] + movie-search: [q, imdbid] music-search: [q] book-search: [q] @@ -119,7 +119,7 @@ search: path: torrents.php inputs: $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" - search: "{{ .Keywords }}" + search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" lang: 0 sort: "{{ .Config.sort }}" order: "{{ .Config.type }}" @@ -157,6 +157,12 @@ search: magnet: selector: div a[href^="magnet:?"] attribute: href + imdbid: + selector: a[href^="/torrents.php?search=tt"] + attribute: href + filters: + - name: regexp + args: tt(\d+) size: selector: div span[style^="border-radius"] seeders: