torrentfunk: add sort, update cats, add verified, 100 results

This commit is contained in:
Garfield69
2025-03-12 08:54:01 +13:00
parent 430eb209a8
commit 3089d8aab9

View File

@@ -25,10 +25,10 @@ caps:
- {id: 5, cat: PC, desc: Software} - {id: 5, cat: PC, desc: Software}
- {id: 6, cat: TV/Anime, desc: Anime} - {id: 6, cat: TV/Anime, desc: Anime}
- {id: 7, cat: XXX, desc: Adult} - {id: 7, cat: XXX, desc: Adult}
- {id: 8, cat: Other, desc: Other(tbd)} - {id: 8, cat: Books/EBook, desc: Ebooks}
- {id: 10, cat: Other/Misc, desc: Other}
- {id: 9, cat: Other, desc: Other(tbd)} - {id: 9, cat: Other, desc: Other(tbd)}
- {id: 0, cat: Other, desc: Other(tbd)} - {id: 0, cat: Other, desc: Other(tbd)}
- {id: 10, cat: Other, desc: Other(tbd)}
- {id: 11, cat: Other, desc: Other(tbd)} - {id: 11, cat: Other, desc: Other(tbd)}
modes: modes:
@@ -37,16 +37,39 @@ caps:
movie-search: [q] movie-search: [q]
music-search: [q] music-search: [q]
settings: [] settings:
- name: sort
type: select
label: Sort requested from site
default: added
options:
added: created
seeds: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
search: search:
paths: paths:
# https://www.torrentfunk.com/all/torrents/morty-402-castellano.html # https://www.torrentfunk.com/all/torrents/2025.html?smi=0&sma=0&i=100&sort=added&o=desc&
- path: "all/torrents/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}.html" - path: "all/torrents/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}.html"
keywordsfilters: keywordsfilters:
- name: re_replace - name: re_replace
args: ["[\\s]+", "-"] args: ["[\\s]+", "-"]
- name: tolower - name: tolower
inputs:
smi: 0
sma: 0
# 50, 100, 150, 200, 250
i: 100
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows: rows:
selector: table.tmain tbody tr:has(a[href^="/torrent/"]) selector: table.tmain tbody tr:has(a[href^="/torrent/"])
@@ -101,6 +124,12 @@ search:
selector: td:nth-child(4) selector: td:nth-child(4)
leechers: leechers:
selector: td:nth-child(5) selector: td:nth-child(5)
_verified:
selector: img[title="Torrent Verified"]
attribute: title
optional: true
description:
text: "{{ if .Result._verified }}Verified{{ else }}{{ end }}"
downloadvolumefactor: downloadvolumefactor:
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor: