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: 27, cat: Movies, desc: "Movies"}
- {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: 16, cat: PC/0day, desc: "Roms / Emulation"}
- {id: 12, cat: TV, desc: "TV - PRE 2009 W/O/C"}
- {id: 11, cat: TV, desc: "TV - PRE 2013"}
- {id: 12, cat: TV, desc: "TV - Pre 2009 WOC"}
- {id: 11, cat: TV, desc: "TV - Pre 2013"}
- {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:
search: [q]
tv-search: [q, season, ep]
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:
path: login
method: form
@@ -63,20 +90,22 @@
#https://nostalgic.to/torrents.php?filter_cat%5B32%5D=1&filter_cat%5B27%5D=1&order_by=time&order_way=desc&searchtext=&action=advanced&title=terminator&sizeall=&sizetype=gb&sizerange=0.01&filelist=&taglist=&autocomplete_toggle=1
- path: torrents.php
inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
order_by: "time"
order_way: "desc"
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
order_by: "{{ .Config.sort }}"
order_way: "{{ .Config.type }}"
searchtext: ""
action: "advanced"
action: advanced
title: "{{ .Keywords }}"
sizeall: ""
sizetype: "gb"
sizetype: gb
sizerange: 0.01
filelist: ""
taglist: ""
autocomplete_toggle: 1
rows:
selector: table#torrent_table tr:has(a[href^="torrents.php?action=download"])
fields:
title:
selector: a[href^="/torrents.php?id="]
@@ -100,13 +129,6 @@
- name: timeago
size:
selector: td:nth-last-child(5)
filters:
- name: replace
args: ["GiB", "GB"]
- name: replace
args: ["MiB", "MB"]
- name: replace
args: ["KiB", "KB"]
grabs:
selector: td:nth-last-child(4)
seeders:
@@ -115,8 +137,8 @@
selector: td:nth-last-child(2)
downloadvolumefactor:
case:
"img[alt=\"Freeleech\"]": "0"
"*": "1"
"img[alt=\"Freeleech\"]": 0
"*": 1
uploadvolumefactor:
case:
"*": "1"
"*": 1