From 82c7900f776e248afab189cf0bdcf44df7055c94 Mon Sep 17 00:00:00 2001 From: mrhydejc Date: Fri, 18 Jan 2019 11:04:06 +0100 Subject: [PATCH] YGG: Enhance sonarr compatibility with anime by renaming episode (xxx -> Exxx) (#4478) --- src/Jackett.Common/Definitions/yggtorrent.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/yggtorrent.yml b/src/Jackett.Common/Definitions/yggtorrent.yml index b649dfc6a..95f90859a 100644 --- a/src/Jackett.Common/Definitions/yggtorrent.yml +++ b/src/Jackett.Common/Definitions/yggtorrent.yml @@ -131,6 +131,10 @@ type: checkbox label: Replace VOSTFR with ENGLISH default: false + - name: enhancedAnime + type: checkbox + label: Enhance sonarr compatibility with anime by renaming episode (xxx to exxx). Works only if episode is at the end of the query. Can disturb movies search. (back to the future 3 -> back to the future e3) + default: false login: method: form path: / @@ -147,8 +151,8 @@ search: paths: - - path: "/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date" - - path: "/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date&page=50" + - path: "/engine/search?category={{ .Config.category }}&name={{if .Config.enhancedAnime}}{{ re_replace .Keywords \"([\\.\\s\\[\\-])(\\d+)$\" \"$1e$2\" }}{{else}}{{ .Keywords }}{{end}}&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date" + - path: "/engine/search?category={{ .Config.category }}&name={{if .Config.enhancedAnime}}{{ re_replace .Keywords \"([\\.\\s\\[\\-])(\\d+)$\" \"$1e$2\" }}{{else}}{{ .Keywords }}{{end}}&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date&page=50" rows: selector: "table.table > tbody > tr"