1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-29 11:17:22 +00:00

torrentbomb: drop rows without date. resolves #8408

as they lead to details apges without .torrent or magnets.
- also fetch up to 5 pages (14 rows per page)
- add new cat
- add .Today.Year to keyword-less search for TEST
This commit is contained in:
Garfield69 2020-04-30 09:16:13 +12:00
parent 62753f4848
commit 584ba3cbfe

View file

@ -28,6 +28,7 @@
- {id: "etc", cat: Other, desc: "토렌트 기타 (Other)"}
- {id: "torrent_magnet", cat: Other, desc: "토렌트 마그넷 자료실 (Magnets)"}
- {id: "torrent_netflix", cat: Movies, desc: "넷플릭스 (Netflix)"}
- {id: "torrent", cat: Other, desc: "토렌트 기타 (Other)"}
modes:
search: [q]
@ -42,20 +43,32 @@
selector: a[href*="magnet:?xt="]
attribute: href
filters:
- name: querystring
args: magnet:?xt
- name: prepend
args: "magnet:?xt="
# strip the leading magnet provider site
- name: re_replace
args: ["^(.+?\\/magnet.php\\?)(.+?)$", "$2"]
search:
paths:
# https://torrent.vet/search.php?keyword=2020
# 14 rows per page!?!
- path: search.php
- path: search.php
inputs:
page: 2
- path: search.php
inputs:
page: 3
- path: search.php
inputs:
page: 4
- path: search.php
inputs:
page: 5
inputs:
keyword: "{{ if .Keywords }}{{ .Keywords }}{{else}}2020{{end}}"
keyword: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
rows:
selector: section.sch_res_list > ul > li
selector: section.sch_res_list > ul > li:has(span.sch_datetime:contains(":"))
fields:
category: