mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
p2pbg: add config sort options
This commit is contained in:
@@ -73,6 +73,20 @@
|
|||||||
type: info
|
type: info
|
||||||
label: "Search results"
|
label: "Search results"
|
||||||
default: "For best results, increase the torrents number in your profile to 100.<br />Default is 15."
|
default: "For best results, increase the torrents number in your profile to 100.<br />Default is 15."
|
||||||
|
- name: sort
|
||||||
|
type: select
|
||||||
|
label: Sort requested from site
|
||||||
|
default: "data"
|
||||||
|
options:
|
||||||
|
"data": "created"
|
||||||
|
"size": "size"
|
||||||
|
- name: type
|
||||||
|
type: select
|
||||||
|
label: Order requested from site
|
||||||
|
default: "DESC"
|
||||||
|
options:
|
||||||
|
"DESC": "desc"
|
||||||
|
"ASC": "asc"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: index.php?page=login
|
path: index.php?page=login
|
||||||
@@ -85,20 +99,24 @@
|
|||||||
- selector: td.lista span[style="color:#FF0000;"]
|
- selector: td.lista span[style="color:#FF0000;"]
|
||||||
test:
|
test:
|
||||||
path: index.php
|
path: index.php
|
||||||
selector: :has(a[href="logout.php"])
|
selector: a[href="logout.php"]
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
# http://p2pbg.com/index.php?page=torrents&search=%D0%9A%D0%B0%D1%82%D0%BE&category=0&active=0
|
# http://p2pbg.com/index.php?page=torrents&search=%D0%9A%D0%B0%D1%82%D0%BE&category=0&active=0
|
||||||
- path: index.php
|
- path: index.php
|
||||||
inputs:
|
inputs:
|
||||||
page: "torrents"
|
page: torrents
|
||||||
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0;{{end}}"
|
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0;{{end}}"
|
||||||
search: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{end}}"
|
search: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{end}}"
|
||||||
active: "1"
|
# 0 all 1 active 2 dead
|
||||||
|
active: 0
|
||||||
|
order: "{{ .Config.sort }}"
|
||||||
|
by: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table.lista tr td table.lista tr:has(a[href^="index.php?page=torrent-details"])
|
selector: table.lista tr td table.lista tr:has(a[href^="index.php?page=torrent-details"])
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
title:
|
title:
|
||||||
selector: td a[onclick]
|
selector: td a[onclick]
|
||||||
@@ -164,6 +182,6 @@
|
|||||||
grabs:
|
grabs:
|
||||||
selector: td:nth-child(10)
|
selector: td:nth-child(10)
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
text: "0"
|
text: 0
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
text: "1"
|
text: 1
|
||||||
|
Reference in New Issue
Block a user