From 30e88be99d24a3cc3808e72a60bfd71bc526c273 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 18 Sep 2020 20:23:06 +1200 Subject: [PATCH] onlyscene: add config multi option. #9544 refresh categories add minimumratio and minimumseedtime --- src/Jackett.Common/Definitions/onlyscene.yml | 60 ++++++++++++++++++-- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/onlyscene.yml b/src/Jackett.Common/Definitions/onlyscene.yml index fce25959e..0358ca2be 100644 --- a/src/Jackett.Common/Definitions/onlyscene.yml +++ b/src/Jackett.Common/Definitions/onlyscene.yml @@ -13,9 +13,18 @@ caps: - {id: 1, cat: Movies, desc: "Movies"} - {id: 2, cat: TV, desc: "TV"} - {id: 3, cat: Audio, desc: "Music"} - - {id: 4, cat: Console, desc: "Games"} - {id: 5, cat: TV/Anime, desc: "Anime"} - - {id: 6, cat: PC/Games, desc: "Games-ssIDGB"} + - {id: 9, cat: TV/Anime, desc: "TV Anime"} + - {id: 10, cat: TV/Documentary, desc: "DOC"} + - {id: 12, cat: Other, desc: "Attente-Classement"} + - {id: 13, cat: PC/Games, desc: "jeux"} + - {id: 14, cat: Other, desc: "Dox"} + - {id: 15, cat: PC/0day, desc: "APPS"} + - {id: 16, cat: Books/Manazines, desc: "Journaux-Mags"} + - {id: 17, cat: Books/Ebook, desc: "Ebooks"} + - {id: 18, cat: TV, desc: "Spectacles"} + - {id: 19, cat: TV, desc: "TV Spectacles"} + - {id: 20, cat: TV/Documentary, desc: "TV DOC"} modes: search: [q, imdbid] @@ -34,6 +43,25 @@ settings: type: checkbox label: Search freeleech only default: false + - name: multilang + type: checkbox + label: Replace MULTI by another language in release name + default: false + - name: multilanguage + type: select + label: Replace MULTI by this language + default: FRENCH + options: + FRENCH: "FRENCH" + MULTI.FRENCH: "MULTI.FRENCH" + ENGLISH: "ENGLISH" + MULTI.ENGLISH: "MULTI.ENGLISH" + VOSTFR: "VOSTFR" + MULTI.VOSTFR: "MULTI.VOSTFR" + - name: vostfr + type: checkbox + label: Replace VOSTFR with ENGLISH + default: false - name: sort type: select label: Sort requested from site @@ -81,7 +109,7 @@ search: - path: torrents/filter inputs: $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}" - search: "{{ if .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" + search: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" description: "" uploader: "" imdb: "{{ .Query.IMDBIDShort }}" @@ -105,8 +133,27 @@ search: filters: - name: regexp args: "/categories/(\\d+)" - title: + title_phase1: selector: a.view-torrent + filters: + - name: re_replace + args: ["([\\.]+)", " "] + title_multilang: + text: "{{ .Result.title_phase1 }}" + filters: + - name: re_replace + args: ["(?i)(\\smulti\\s)", " {{ .Config.multilanguage }} "] + title_phase2: + text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}" + title_vostfr: + text: "{{ .Result.title_phase2 }}" + filters: + - name: re_replace + args: ["(?i)(\\svostfr\\s)", " ENGLISH "] + - name: re_replace + args: ["(?i)(\\ssubfrench\\s)", " ENGLISH "] + title: + text: "{{ if .Config.vostfr }}{{ .Result.title_vostfr }}{{ else }}{{ .Result.title_phase2 }}{{ end }}" download: selector: a[href*="/download/"] attribute: href @@ -188,4 +235,9 @@ search: i[class*="fa-globe text-green"]: 2 # Global Double Upload i[class*="fa-certificate text-pink"]: 2 # Featured Torrent "*": 1 + minimumratio: + text: 1.0 + minimumseedtime: + # 3 days (as seconds = 3 x 24 x 60 x 60) + text: 259200 # UNIT3D 2.3.0