nostalgic: refresh categories

also add config sort options
This commit is contained in:
Garfield69
2019-12-18 15:01:38 +13:00
parent 619e3b3c6b
commit 29d64294d9

View File

@@ -24,19 +24,46 @@
- {id: 17, cat: TV/Documentary, desc: "Documentaries"} - {id: 17, cat: TV/Documentary, desc: "Documentaries"}
- {id: 27, cat: Movies, desc: "Movies"} - {id: 27, cat: Movies, desc: "Movies"}
- {id: 25, cat: Audio/Video, desc: "Music / Video"} - {id: 25, cat: Audio/Video, desc: "Music / Video"}
- {id: 23, cat: PC/Games, desc: "PC GAMES"} - {id: 23, cat: PC/Games, desc: "PC Games"}
- {id: 8, cat: TV/WEB-DL, desc: "Podcasts"} - {id: 8, cat: TV/WEB-DL, desc: "Podcasts"}
- {id: 16, cat: PC/0day, desc: "Roms / Emulation"} - {id: 16, cat: PC/0day, desc: "Roms / Emulation"}
- {id: 12, cat: TV, desc: "TV - PRE 2009 W/O/C"} - {id: 12, cat: TV, desc: "TV - Pre 2009 WOC"}
- {id: 11, cat: TV, desc: "TV - PRE 2013"} - {id: 11, cat: TV, desc: "TV - Pre 2013"}
- {id: 10, cat: TV, desc: "TV Animation"} - {id: 10, cat: TV, desc: "TV Animation"}
- {id: 18, cat: TV, desc: "TV Animation W/O/C"} - {id: 18, cat: TV, desc: "TV Animation WOC"}
- {id: 33, cat: TV, desc: "TV Archive Packs"}
- {id: 34, cat: Movies, desc: "Laserdiscs"}
- {id: 35, cat: XXX, desc: "NSFW"}
- {id: 36, cat: TV, desc: "Youtube Archives"}
modes: modes:
search: [q] search: [q]
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: "time"
options:
"time": "created"
"seeders": "seeders"
"size": "size"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
path: login path: login
method: form method: form
@@ -64,19 +91,21 @@
- path: torrents.php - path: torrents.php
inputs: inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}" $raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
order_by: "time" order_by: "{{ .Config.sort }}"
order_way: "desc" order_way: "{{ .Config.type }}"
searchtext: "" searchtext: ""
action: "advanced" action: advanced
title: "{{ .Keywords }}" title: "{{ .Keywords }}"
sizeall: "" sizeall: ""
sizetype: "gb" sizetype: gb
sizerange: 0.01 sizerange: 0.01
filelist: "" filelist: ""
taglist: "" taglist: ""
autocomplete_toggle: 1 autocomplete_toggle: 1
rows: rows:
selector: table#torrent_table tr:has(a[href^="torrents.php?action=download"]) selector: table#torrent_table tr:has(a[href^="torrents.php?action=download"])
fields: fields:
title: title:
selector: a[href^="/torrents.php?id="] selector: a[href^="/torrents.php?id="]
@@ -100,13 +129,6 @@
- name: timeago - name: timeago
size: size:
selector: td:nth-last-child(5) selector: td:nth-last-child(5)
filters:
- name: replace
args: ["GiB", "GB"]
- name: replace
args: ["MiB", "MB"]
- name: replace
args: ["KiB", "KB"]
grabs: grabs:
selector: td:nth-last-child(4) selector: td:nth-last-child(4)
seeders: seeders:
@@ -115,8 +137,8 @@
selector: td:nth-last-child(2) selector: td:nth-last-child(2)
downloadvolumefactor: downloadvolumefactor:
case: case:
"img[alt=\"Freeleech\"]": "0" "img[alt=\"Freeleech\"]": 0
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
"*": "1" "*": 1