ex-torrenty: change to cookie & UA login, add cat. resolves #15609

This commit is contained in:
ilike2burnthing
2024-10-11 23:34:22 +01:00
committed by GitHub
parent 53494afaf2
commit 1d9016e3dd

View File

@@ -20,6 +20,7 @@ caps:
- {id: 265, cat: Movies/HD, desc: "Filmy x265 HEVC"} - {id: 265, cat: Movies/HD, desc: "Filmy x265 HEVC"}
- {id: 12, cat: Movies/3D, desc: "Filmy 3D"} - {id: 12, cat: Movies/3D, desc: "Filmy 3D"}
- {id: 530, cat: Movies/SD, desc: "Filmy TS/CAM"} - {id: 530, cat: Movies/SD, desc: "Filmy TS/CAM"}
- {id: 826, cat: Movies/HD, desc: "REMUX / Complete"}
- {id: 9, cat: PC, desc: "Programy"} - {id: 9, cat: PC, desc: "Programy"}
- {id: 7, cat: Console, desc: "Konsole"} - {id: 7, cat: Console, desc: "Konsole"}
- {id: 6, cat: PC/Games, desc: "Gry"} - {id: 6, cat: PC/Games, desc: "Gry"}
@@ -44,12 +45,16 @@ caps:
book-search: [q] book-search: [q]
settings: settings:
- name: email - name: cookie
type: text type: text
label: Email label: Cookie
- name: password - name: info_cookie
type: password type: info_cookie
label: Password - name: useragent
type: text
label: User-Agent
- name: info_useragent
type: info_useragent
- name: multilang - name: multilang
type: checkbox type: checkbox
label: Replace MULTi by another language in release name label: Replace MULTi by another language in release name
@@ -63,13 +68,9 @@ settings:
MULTi POLISH: MULTIi POLISH MULTi POLISH: MULTIi POLISH
login: login:
path: takelogin.php method: cookie
method: post
inputs: inputs:
username: "{{ .Config.email }}" cookie: "{{ .Config.cookie }}"
password: "{{ .Config.password }}"
error:
- selector: table.main:contains("Logowanie nie udane")
test: test:
path: index.php path: index.php
selector: a[href^="/logout.php"] selector: a[href^="/logout.php"]
@@ -84,6 +85,9 @@ search:
search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}%{{ end }}" search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}%{{ end }}"
# does not support imdbid searching, or have imdb in results # does not support imdbid searching, or have imdb in results
headers:
User-Agent: ["{{ .Config.useragent }}"]
rows: rows:
selector: table[width="100%"] > tbody > tr:has(a[href*="torrent/"]) selector: table[width="100%"] > tbody > tr:has(a[href*="torrent/"])
@@ -101,6 +105,7 @@ search:
":contains(\"x265 HEVC\")": 265 ":contains(\"x265 HEVC\")": 265
":contains(\"3D\")": 12 ":contains(\"3D\")": 12
":contains(\"TS/CAM\")": 530 ":contains(\"TS/CAM\")": 530
":contains(\"REMUX\")": 826
":contains(\"Programy\")": 9 ":contains(\"Programy\")": 9
":contains(\"Konsole\")": 7 ":contains(\"Konsole\")": 7
":contains(\"Gry\")": 6 ":contains(\"Gry\")": 6