limetorrents: add config sort options

This commit is contained in:
Garfield69 2019-12-18 06:10:41 +13:00
parent fb7e55cba9
commit 3103862a98
1 changed files with 13 additions and 3 deletions

View File

@ -40,6 +40,14 @@
options:
"http://itorrents.org/" : "iTorrents.org"
"magnet:": "magnet"
- name: sort
type: select
label: Sort requested from site
default: "date"
options:
"date": "created"
"seeds": "seeders"
"size": "size"
download:
# the .torrent url is on the on the details page
@ -47,12 +55,14 @@
search:
paths:
- path: "{{if .Keywords}}search/all/{{ .Keywords}}/date/1/{{else}}/index.php?page=latest100{{end}}"
- path: "{{ if .Keywords }}search/all/{{ .Keywords }}/{{ .Config.sort }}/1/{{else}}/latest100{{end}}"
keywordsfilters:
- name: re_replace
args: ["S[0-9]{2}([^E]|$)", ""] #remove season tag without episode
rows:
selector: ".table2 > tbody > tr[bgcolor]"
fields:
title:
selector: div.tt-name > a[href^="/"]
@ -88,6 +98,6 @@
- name: replace
args: [".", ""]
downloadvolumefactor:
text: "0"
text: 0
uploadvolumefactor:
text: "1"
text: 1