From 594959c8585c8e635f9029b26cfeefc133c22b2e Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 15 Mar 2020 11:08:20 +1300 Subject: [PATCH] torrent.lt: add config sort options add movie-search add freeleech --- src/Jackett.Common/Definitions/torrentlt.yml | 35 ++++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentlt.yml b/src/Jackett.Common/Definitions/torrentlt.yml index 394e2ceb6..3eed928a4 100644 --- a/src/Jackett.Common/Definitions/torrentlt.yml +++ b/src/Jackett.Common/Definitions/torrentlt.yml @@ -1,7 +1,7 @@ --- site: torrentlt 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 type: private encoding: UTF-8 @@ -10,12 +10,14 @@ legacylinks: - http://www.torrent.ai/ - https://torrent.ai/ + caps: categorymappings: - {id: 27, cat: TV, desc: "Animacija"} + - {id: 76, cat: TV, desc: "Animacija / LT"} - {id: 35, cat: TV/Anime, desc: "Anime"} - {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: 34, cat: Movies, desc: "Filmai / Eng"} - {id: 32, cat: Movies, desc: "Filmai / Rus"} @@ -60,12 +62,12 @@ - {id: 71, cat: XXX/Packs, desc: "pr0n / pack"} - {id: 30, cat: Other, desc: "Kita"} - {id: 41, cat: Books, desc: "E-Books"} - - {id: 76, cat: TV, desc: "Animacija / LT"} - {id: 77, cat: Other, desc: "Educational"} modes: search: [q] tv-search: [q, season, ep] + movie-search: [q] settings: - name: cookie @@ -75,6 +77,21 @@ type: info label: How to get the Cookie default: "
  1. Login to this tracker in your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button
  5. Refresh the page by pressing F5
  6. Select the Headers tab
  7. Find 'cookie:' in the Request Headers section
  8. Copy & paste the whole cookie string to here
" + - 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: method: cookie @@ -87,16 +104,20 @@ paths: - path: lt/torrents.php inputs: - $raw: "{{range .Categories}}cats[]={{.}}&{{end}}" + $raw: "{{ range .Categories }}cats[]={{.}}&{{end}}" search: "{{ .Keywords }}" + sort: "{{ .Config.sort }}" + type: "{{ .Config.type }}" keywordsfilters: - name: replace args: [".", " "] # issue #3296 + rows: selector: table> tbody > tr[class^="torrents_table_row_"] filters: - name: andmatch args: 50 + fields: title: selector: td[class$="torrent_info"] a @@ -122,7 +143,9 @@ size: selector: td a.torrent_size downloadvolumefactor: - text: 1 + case: + img[src$="/freedownload.gif"]: 0 + "*": 1 uploadvolumefactor: text: 1 date: @@ -131,4 +154,4 @@ filters: - name: dateparse args: "2006-01-02 15:04" -# engine tbd +# engine n/a