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
links:
- https://www.torrentfunk.com/
- https://www.torrentfunk2.com/
caps:
categories:
@ -26,51 +27,15 @@
tv-search: [q, season, ep]
movie-search: [q]
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/"]
settings: []
search:
paths:
# https://www.torrentfunk.com/all/torrents/vikings.html?v=&smi=&sma=&i=50&sort=added&o=desc
- path: "{{.Config.category}}/torrents/{{.Keywords}}.html?v={{re_replace .Config.verified \"_\" \"\"}}&smi=&sma=&i=50&sort={{.Config.sort}}&o=desc"
# https://www.torrentfunk.com/all/torrents/morty-402-castellano.html
- path: "all/torrents/{{ re_replace .Keywords \"[\\s]+\" \"-\" }}.html"
rows:
selector: table.tmain tbody tr:has(a[href^="/torrent/"])
filters:
- name: andmatch
fields:
title:
selector: div a[href^="/torrent/"]
@ -84,8 +49,16 @@
selector: div a[href^="/torrent/"]
attribute: href
download:
# /tor/25878251.torrent
selector: div a[href^="/torrent/"]
attribute: href
filters:
- name: split
args: ["/", 2]
- name: prepend
args: "/tor/"
- name: append
args: ".torrent"
# two types of dates
date:
# Today
@ -114,6 +87,6 @@
leechers:
selector: td:nth-child(5)
downloadvolumefactor:
text: "0"
text: 0
uploadvolumefactor:
text: "1"
text: 1