mirror of https://github.com/Jackett/Jackett
4thd: handle invalid date. resolves #6622
also add config sort option add new category 44 music pack
This commit is contained in:
parent
2fc244484c
commit
9f6c3ffd25
|
@ -26,6 +26,7 @@
|
|||
- {id: 2, cat: TV/SD, "TV/SD MP4/mkv"}
|
||||
- {id: 31, cat: TV/SD, "TV/XviD"}
|
||||
- {id: 18, cat: PC/Games, "Games/PC"}
|
||||
- {id: 44, cat: Audio, "Music/Pack"}
|
||||
- {id: 12, cat: Audio/Lossless, "Music/FLAC"}
|
||||
- {id: 15, cat: Audio/MP3, "Music/MP3"}
|
||||
- {id: 37, cat: Audio, "Radio"}
|
||||
|
@ -38,6 +39,29 @@
|
|||
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.php
|
||||
method: form
|
||||
|
@ -58,23 +82,25 @@
|
|||
inputs:
|
||||
# https://4thd.xyz/torrents.php?order_by=time&order_way=desc&filter_freeleech=1&title=twilight+zone&search_type=1&taglist=&tags_type=0
|
||||
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
|
||||
order_by: time
|
||||
order_way: desc
|
||||
order_by: "{{ .Config.sort }}"
|
||||
order_way: "{{ .Config.type }}"
|
||||
# 0 all 1 onlyfree
|
||||
filter_freeleech: 0
|
||||
title: "{{ .Keywords }}"
|
||||
search_type: 1
|
||||
taglist: ""
|
||||
tags_type: 0
|
||||
|
||||
rows:
|
||||
selector: table#torrent_table > tbody > tr.torrent
|
||||
|
||||
fields:
|
||||
category:
|
||||
selector: td.cats_col div a
|
||||
attribute: href
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "\\[(\\d+)\\]"
|
||||
args: \[(\d+)\]
|
||||
title:
|
||||
selector: a[href^="torrents.php?id="]
|
||||
details:
|
||||
|
@ -97,6 +123,9 @@
|
|||
selector: td:nth-child(3)
|
||||
date:
|
||||
selector: td:nth-child(5)
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["Never", "99 years ago"]
|
||||
size:
|
||||
selector: td:nth-child(6)
|
||||
grabs:
|
||||
|
|
Loading…
Reference in New Issue