torrent.lt: add config sort options

add movie-search
add freeleech
This commit is contained in:
Garfield69 2020-03-15 11:08:20 +13:00
parent 5b570b5cec
commit 594959c858
1 changed files with 29 additions and 6 deletions

View File

@ -1,7 +1,7 @@
--- ---
site: torrentlt site: torrentlt
name: Torrent.LT name: Torrent.LT
description: "Torrent.LT is Private site for TV / MOVIES / GENERAL" description: "Torrent.LT is a LITHUANIAN Private Torrent Tracker for 0DAY / GENERAL"
language: lt-lt language: lt-lt
type: private type: private
encoding: UTF-8 encoding: UTF-8
@ -10,12 +10,14 @@
legacylinks: legacylinks:
- http://www.torrent.ai/ - http://www.torrent.ai/
- https://torrent.ai/ - https://torrent.ai/
caps: caps:
categorymappings: categorymappings:
- {id: 27, cat: TV, desc: "Animacija"} - {id: 27, cat: TV, desc: "Animacija"}
- {id: 76, cat: TV, desc: "Animacija / LT"}
- {id: 35, cat: TV/Anime, desc: "Anime"} - {id: 35, cat: TV/Anime, desc: "Anime"}
- {id: 31, cat: Movies/DVD, desc: "Filmai / DVD"} - {id: 31, cat: Movies/DVD, desc: "Filmai / DVD"}
- {id: 33, cat: Movies, desc: "Filmai / LTU"} - {id: 33, cat: Movies, desc: "Filmai / LT"}
- {id: 43, cat: Movies, desc: "Filmai / LT-Subs"} - {id: 43, cat: Movies, desc: "Filmai / LT-Subs"}
- {id: 34, cat: Movies, desc: "Filmai / Eng"} - {id: 34, cat: Movies, desc: "Filmai / Eng"}
- {id: 32, cat: Movies, desc: "Filmai / Rus"} - {id: 32, cat: Movies, desc: "Filmai / Rus"}
@ -60,12 +62,12 @@
- {id: 71, cat: XXX/Packs, desc: "pr0n / pack"} - {id: 71, cat: XXX/Packs, desc: "pr0n / pack"}
- {id: 30, cat: Other, desc: "Kita"} - {id: 30, cat: Other, desc: "Kita"}
- {id: 41, cat: Books, desc: "E-Books"} - {id: 41, cat: Books, desc: "E-Books"}
- {id: 76, cat: TV, desc: "Animacija / LT"}
- {id: 77, cat: Other, desc: "Educational"} - {id: 77, cat: Other, desc: "Educational"}
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q]
settings: settings:
- name: cookie - name: cookie
@ -75,6 +77,21 @@
type: info type: info
label: How to get the Cookie label: How to get the Cookie
default: "<ol><li>Login to this tracker in your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here</ol>" default: "<ol><li>Login to this tracker in your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here</ol>"
- name: sort
type: select
label: Sort requested from site
default: "0"
options:
"0": "created"
"6": "seeders"
"4": "size"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
method: cookie method: cookie
@ -89,14 +106,18 @@
inputs: inputs:
$raw: "{{ range .Categories }}cats[]={{.}}&{{end}}" $raw: "{{ range .Categories }}cats[]={{.}}&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
keywordsfilters: keywordsfilters:
- name: replace - name: replace
args: [".", " "] # issue #3296 args: [".", " "] # issue #3296
rows: rows:
selector: table> tbody > tr[class^="torrents_table_row_"] selector: table> tbody > tr[class^="torrents_table_row_"]
filters: filters:
- name: andmatch - name: andmatch
args: 50 args: 50
fields: fields:
title: title:
selector: td[class$="torrent_info"] a selector: td[class$="torrent_info"] a
@ -122,7 +143,9 @@
size: size:
selector: td a.torrent_size selector: td a.torrent_size
downloadvolumefactor: downloadvolumefactor:
text: 1 case:
img[src$="/freedownload.gif"]: 0
"*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
date: date:
@ -131,4 +154,4 @@
filters: filters:
- name: dateparse - name: dateparse
args: "2006-01-02 15:04" args: "2006-01-02 15:04"
# engine tbd # engine n/a