1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-23 14:51:01 +00:00

torrentfunk: correct search. resolves #6502 #6501

add alternate domain
This commit is contained in:
Garfield69 2019-12-05 15:35:19 +13:00
parent dfc130154c
commit d028c11bb0

View file

@ -7,6 +7,7 @@
encoding: UTF-8 encoding: UTF-8
links: links:
- https://www.torrentfunk.com/ - https://www.torrentfunk.com/
- https://www.torrentfunk2.com/
caps: caps:
categories: categories:
@ -26,51 +27,15 @@
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q] movie-search: [q]
settings: settings: []
- name: category
type: select
label: Category
default: "all"
options:
"all": "All"
"movie": "Movies"
"music": "Music"
"television": "TV"
"game": "Games"
"software": "Software"
"anime": "Anime"
"ebook": "eBooks"
"adult": "Adult"
- name: verified
type: select
label: Verified
default: "_"
options:
"_": "Any"
"on": "Verified Only"
- name: sort
type: select
label: Sort Desc
default: "added"
options:
"added": "Date"
"seeds": "Seeders"
"peers": "Leechers"
"size": "Size"
"name": "Title"
download:
selector: a[href^="/tor/"]
search: search:
paths: paths:
# https://www.torrentfunk.com/all/torrents/vikings.html?v=&smi=&sma=&i=50&sort=added&o=desc # https://www.torrentfunk.com/all/torrents/morty-402-castellano.html
- path: "{{.Config.category}}/torrents/{{.Keywords}}.html?v={{re_replace .Config.verified \"_\" \"\"}}&smi=&sma=&i=50&sort={{.Config.sort}}&o=desc" - path: "all/torrents/{{ re_replace .Keywords \"[\\s]+\" \"-\" }}.html"
rows: rows:
selector: table.tmain tbody tr:has(a[href^="/torrent/"]) selector: table.tmain tbody tr:has(a[href^="/torrent/"])
filters:
- name: andmatch
fields: fields:
title: title:
selector: div a[href^="/torrent/"] selector: div a[href^="/torrent/"]
@ -84,8 +49,16 @@
selector: div a[href^="/torrent/"] selector: div a[href^="/torrent/"]
attribute: href attribute: href
download: download:
# /tor/25878251.torrent
selector: div a[href^="/torrent/"] selector: div a[href^="/torrent/"]
attribute: href attribute: href
filters:
- name: split
args: ["/", 2]
- name: prepend
args: "/tor/"
- name: append
args: ".torrent"
# two types of dates # two types of dates
date: date:
# Today # Today
@ -114,6 +87,6 @@
leechers: leechers:
selector: td:nth-child(5) selector: td:nth-child(5)
downloadvolumefactor: downloadvolumefactor:
text: "0" text: 0
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1