mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-02 16:42:01 +02:00
takeabyte: amend login
also add config sort options
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
- https://takeabyte-nordic.org/
|
- https://takeabyte-nordic.org/
|
||||||
certificates:
|
certificates:
|
||||||
- 8b88d216d270b9b672ba44fbbdd5ca3d8919e5fd # expired Nov 2015
|
- 8b88d216d270b9b672ba44fbbdd5ca3d8919e5fd # expired Nov 2015
|
||||||
|
|
||||||
|
|
||||||
caps:
|
caps:
|
||||||
categorymappings:
|
categorymappings:
|
||||||
@@ -60,36 +59,63 @@
|
|||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
|
settings:
|
||||||
|
- name: username
|
||||||
|
type: text
|
||||||
|
label: Username
|
||||||
|
- name: password
|
||||||
|
type: password
|
||||||
|
label: Password
|
||||||
|
- name: sort
|
||||||
|
type: select
|
||||||
|
label: Sort requested from site
|
||||||
|
default: "4"
|
||||||
|
options:
|
||||||
|
"4": "created"
|
||||||
|
"7": "seeders"
|
||||||
|
"5": "size"
|
||||||
|
"1": "title"
|
||||||
|
- name: type
|
||||||
|
type: select
|
||||||
|
label: Order requested from site
|
||||||
|
default: "desc"
|
||||||
|
options:
|
||||||
|
"desc": "desc"
|
||||||
|
"asc": "asc"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: login.php
|
path: takelogin.php
|
||||||
method: form
|
method: post
|
||||||
form: form[action="takelogin.php"]
|
|
||||||
inputs:
|
inputs:
|
||||||
username: "{{ .Config.username }}"
|
username: "{{ .Config.username }}"
|
||||||
password: "{{ .Config.password }}"
|
password: "{{ .Config.password }}"
|
||||||
returnto: "/browse.php"
|
returnto: "/"
|
||||||
error:
|
error:
|
||||||
- selector: h2:contains("Login failed!")
|
- selector: h2:contains("Login failed!")
|
||||||
message:
|
message:
|
||||||
selector: table tr td.colhead2
|
selector: table tr td.colhead2
|
||||||
test:
|
test:
|
||||||
path: /
|
path: /
|
||||||
selector: :has(a[href^="logout.php?hash_please="])
|
selector: a[href^="logout.php?hash_please="]
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
# http://takeabyte-nordic.org/browse.php?search=first+man&searchin=title&incldead=0
|
# http://takeabyte-nordic.org/browse.php?search=first+man&searchin=title&incldead=0
|
||||||
# http://takeabyte-nordic.org/browse.php?c9=1&c47=1&c21=1&c11=1&c25=1&c14=1&c26=1&c3=1&search=%22first+man%22&searchin=title&incldead=0
|
# http://takeabyte-nordic.org/browse.php?c9=1&c26=1&c3=1&search=%22first+man%22&searchin=title&incldead=0
|
||||||
- path: browse.php
|
- path: browse.php
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
|
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||||
search: "{{.Keywords}}"
|
search: "{{ .Keywords }}"
|
||||||
searchin: "title"
|
searchin: title
|
||||||
incldead: 1
|
incldead: 1
|
||||||
|
sort: "{{ .Config.sort }}"
|
||||||
|
type: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table tr:has(a[href^="browse.php?cat="]):has(a[href^="details.php?id="])
|
selector: table tr:has(a[href^="browse.php?cat="]):has(a[href^="details.php?id="])
|
||||||
filters:
|
filters:
|
||||||
- name: andmatch
|
- name: andmatch
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
title:
|
title:
|
||||||
selector: a[href^="details.php?id="] b
|
selector: a[href^="details.php?id="] b
|
||||||
@@ -115,10 +141,8 @@
|
|||||||
grabs:
|
grabs:
|
||||||
selector: td:nth-last-child(3)
|
selector: td:nth-last-child(3)
|
||||||
filters:
|
filters:
|
||||||
- name: replace
|
- name: regexp
|
||||||
args: ["times", ""]
|
args: (\d+)
|
||||||
- name: replace
|
|
||||||
args: ["time", ""]
|
|
||||||
# 2 flavours of dates
|
# 2 flavours of dates
|
||||||
date:
|
date:
|
||||||
# Today<br />13:20:59
|
# Today<br />13:20:59
|
||||||
@@ -140,9 +164,9 @@
|
|||||||
selector: td:nth-last-child(1)
|
selector: td:nth-last-child(1)
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
case:
|
case:
|
||||||
"b:contains(\"[Free and Double]\")": "0"
|
"b:contains(\"[Free and Double]\")": 0
|
||||||
"*": "1"
|
"*": 1
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
case:
|
case:
|
||||||
"b:contains(\"[Free and Double]\")": "2"
|
"b:contains(\"[Free and Double]\")": 2
|
||||||
"*": "1"
|
"*": 1
|
Reference in New Issue
Block a user