From cced447ef6286ddd29edfb6aad66f903fc29a2ab Mon Sep 17 00:00:00 2001 From: Daniel Martin Gonzalez Date: Fri, 8 Jan 2021 15:44:18 +0100 Subject: [PATCH] xbytes2: Improve Tracker Name, WEBDL Detection, Languages. Freeleench only option (#10752) --- src/Jackett.Common/Definitions/xbytes2.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/xbytes2.yml b/src/Jackett.Common/Definitions/xbytes2.yml index 906132f41..41737fca0 100644 --- a/src/Jackett.Common/Definitions/xbytes2.yml +++ b/src/Jackett.Common/Definitions/xbytes2.yml @@ -57,6 +57,10 @@ settings: - name: password type: password label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false - name: sort type: select label: Sort requested from site @@ -96,7 +100,10 @@ search: inputs: page: torrents $raw: "&category={{ range .Categories }}{{.}};{{end}}" + # 0 all, 1 activeonly, 2 deadonly active: 1 + # 0 title, 1 title&desc, 2 descr, 3 uploaders, 5 gold, 6 silver, 7 bronze, 8 1x, 9 2x, 10 3x, 11 4x, 12 5x, 13 6x, 14 7x, 15 8x, 16 9x, 17 10x + options: "{{ if .Config.freeleech }}5{{ else }}0{{ end }}" search: "{{ .Keywords }}" order: "{{ .Config.sort }}" by: "{{ .Config.type }}" @@ -114,6 +121,10 @@ search: title: selector: td[valign="middle"] a filters: + - name: re_replace + args: ["\\.+", "."] # More than 1 dot -> . + - name: re_replace + args: ["^\\.", ""] # Delete first dot - name: re_replace args: ["\\/", " "] - name: re_replace @@ -134,7 +145,7 @@ search: - name: replace args: ["CAT", "Catalan"] - name: replace - args: ["FRA", "French"] + args: ["FR[AE]", "French"] - name: replace args: ["JAP", "Japanese"] - name: replace @@ -143,6 +154,14 @@ search: args: ["RUS", "Russian"] - name: replace args: ["DUAL", "Spanish English"] + - name: re_replace + args: ["MHD", "MHD.BDRip"] # Fix for Radarr + - name: re_replace + args: ["WEB.DL", "WEBDL"] # Fix for Radarr + - name: re_replace + args: ["WEBDL.MHD.BDRip", "WEBDL"] # Fix for Radarr + - name: re_replace + args: ["WEBRIP.MHD.BDRip", "WEBRIP"] # Fix for Radarr details: selector: td[valign="middle"] a attribute: href