From a6486fc233686f5bc9e7eb3a41b1886334b50cfb Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 3 Apr 2018 23:06:06 +0200 Subject: [PATCH] YGGtorrent: cookie login for now --- src/Jackett.Common/Definitions/yggtorrent.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Definitions/yggtorrent.yml b/src/Jackett.Common/Definitions/yggtorrent.yml index 47f1c7da9..b09faa090 100644 --- a/src/Jackett.Common/Definitions/yggtorrent.yml +++ b/src/Jackett.Common/Definitions/yggtorrent.yml @@ -72,6 +72,9 @@ movie-search: [q] settings: + - name: cookie + type: text + label: Cookie - name: username type: text label: Username @@ -99,7 +102,7 @@ login: path: "/" - method: post + method: cookie # temp inputs: id: "{{ .Config.username }}" pass: "{{ .Config.password }}" @@ -112,8 +115,8 @@ search: paths: - - path: "{{ if .Keywords }}/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search{{else}}/top/day?category=2145{{end}}" - - path: "{{ if .Keywords }}/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&page=50{{else}}/top/day?category=2145&page=50{{end}}" + - path: "/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search" + - path: "/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&page=50" rows: selector: "table.table > tbody > tr"