Skip to content

Commit

Permalink
trezzor: update, add separate cookie indexer. resolves #14376 (#14379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilike2burnthing committed May 27, 2023
1 parent 906b8e1 commit efc1602
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 51 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -576,7 +576,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* TotallyKids (TK)
* ToTheGlory (TTG) [![(invite needed)][inviteneeded]](#)
* TranceTraffic
* Trezzor [![(invite needed)][inviteneeded]](#)
* TreZzoR [![(invite needed)][inviteneeded]](#)
* TurkSeed
* TurkTorrent (TT)
* TV Chaos UK (TVCUK)
Expand Down
158 changes: 108 additions & 50 deletions src/Jackett.Common/Definitions/trezzor.yml
@@ -1,7 +1,7 @@
---
id: trezzor
name: Trezzor
description: "Trezzor is a CZECH Private site for TV / MOVIES / GENERAL"
name: TreZzoR
description: "TreZzoR is a CZECH Private site for TV / MOVIES / GENERAL"
language: cs-CZ
type: private
encoding: windows-1250
Expand All @@ -10,74 +10,103 @@ links:

caps:
categorymappings:
- {id: 1, cat: Movies/DVD, desc: "DVD CZ/SK dabing"}
- {id: 2, cat: Movies/DVD, desc: "DVD CZ/SK titulky"}
- {id: 3, cat: Audio/Video, desc: "DVD Hudební video"}
- {id: 4, cat: Movies/SD, desc: "XviD, DivX CZ/SK dabing"}
- {id: 13, cat: Audio, desc: "Hudba CZ/SK scéna"}
- {id: 24, cat: Audio, desc: "Mluv. slovo CZ/SK dabing"}
- {id: 10, cat: Audio/Other, desc: "DTS audio"}
- {id: 31, cat: Movies/HD, desc: "HD CZ/SK Dabing"}
- {id: 33, cat: Movies/HD, desc: "HD CZ/SK Titulky"}
- {id: 41, cat: TV/HD, desc: "HD Seriály CZ/SK dabing"}
- {id: 42, cat: TV/HD, desc: "HD Seriály CZ/SK titulky"}
- {id: 1, cat: Movies/BluRay, desc: "Full disc CZ/SK dabing"}
- {id: 2, cat: Movies/BluRay, desc: "Full disc CZ/SK titulky"}
- {id: 4, cat: Movies/SD, desc: "SD CZ/SK dabing"}
- {id: 36, cat: Movies/SD, desc: "SD CZ/SK titulky"}
- {id: 7, cat: TV/SD, desc: "Seriály CZ/SK dabing"}
- {id: 37, cat: TV/SD, desc: "Seriály CZ/SK titulky"}
- {id: 35, cat: Audio/Video, desc: "Hudebni video"}
- {id: 32, cat: XXX, desc: "XXX CZ/SK"}
- {id: 13, cat: Audio, desc: "Hudba"}
- {id: 24, cat: Audio/Audiobook, desc: "Mluv. slovo CZ/SK dabing"}
- {id: 14, cat: PC/Games, desc: "Hry"}
- {id: 17, cat: PC, desc: "Programy"}
- {id: 14, cat: PC, desc: "Cestiny,patche,upgrady"}
- {id: 17, cat: PC/0day, desc: "Programy"}
- {id: 15, cat: PC/Games, desc: "Cestiny,patche,upgrady"}
- {id: 18, cat: Books, desc: "Knihy CZ/SK lokalizace"}
- {id: 18, cat: Books/Comics, desc: "Komiks CZ/SK lokalizace"}
- {id: 19, cat: Books/Comics, desc: "Komiks CZ/SK lokalizace"}
- {id: 16, cat: Other, desc: "Foto,obrázky"}
- {id: 21, cat: PC/Mobile-Android, desc: "Mobilmánia"}
- {id: 20, cat: Console, desc: "Konzole"}
- {id: 21, cat: PC/Mobile-Other, desc: "Mobilmánia"}
- {id: 22, cat: Other, desc: "Ostatní CZ/SK scéna"}
- {id: 23, cat: Other, desc: "Na prani non CZ/SK"}
- {id: 27, cat: Other, desc: "TreZzoR rls"}
- {id: 35, cat: Audio/Video, desc: "HDTV Hudební video"}
- {id: 36, cat: Movies/SD, desc: "XviD, DivX CZ/SK titulky"}
- {id: 31, cat: Movies/HD, desc: "HDTV CZ/SK Dabing"}
- {id: 33, cat: Movies/HD, desc: "HDTV CZ/SK Titulky"}
- {id: 39, cat: Movies/3D, desc: "3D HDTV CZ/SK Dabing"}
- {id: 40, cat: Movies/3D, desc: "3D HDTV CZ/SK Titulky"}
- {id: 5, cat: Movies/SD, desc: "TV-rip CZ/SK dabing"}
- {id: 41, cat: TV/HD, desc: "HD Seriály CZ/SK dabing"}
- {id: 42, cat: TV/HD, desc: "HD Seriály CZ/SK titulky"}
- {id: 7, cat: TV/SD, desc: "Seriály CZ/SK dabing"}
- {id: 37, cat: TV/SD, desc: "Seriály CZ/SK titulky"}
- {id: 9, cat: XXX/XviD, desc: "XXX CZ/SK dabing"}
- {id: 32, cat: XXX/x264, desc: "XXX HD CZ/SK dabing"}

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
tv-search: [q, season, ep, year]
movie-search: [q, year]
music-search: [q]
book-search: [q]

settings:
- name: cookie
- name: username
type: text
label: Cookie
- name: info
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Filter FreeLeech only
default: false
- name: sort
type: select
label: Sort requested from site
default: data
options:
data: created
seeds: seeders
size: size
filename: title
- name: type
type: select
label: Order requested from site
default: DESC
options:
DESC: desc
ASC: asc
- name: info_tpp
type: info
label: Results Per Page
default: For best results, change the <b>Torrentu na strance:</b> setting to <b>100</b> on your account profile.
- name: info_xxx
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser</li><li>Open the <b>DevTools</b> panel by pressing <b>F12</b></li><li>Select the <b>Network</b> tab</li><li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)</li><li>Refresh the page by pressing <b>F5</b></li><li>Click on the first row entry</li><li>Select the <b>Headers</b> tab on the Right panel</li><li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</li></ol>"
label: XXX Results
default: To include XXX in results, click <b>Kategoria XXX sa nezobrazuje!!!. povolit zobrazenie</b> on the tracker search page.

login:
method: cookie
path: prihlasenie.php
method: post
inputs:
cookie: "{{ .Config.cookie }}"
uid: "{{ .Config.username }}"
pwd: "{{ .Config.password }}"
error:
- selector: div > font:has(a[href="neregpodp.php"])
test:
path: torrents.php
path: index.php
selector: a[href="logout.php"]

search:
paths:
- path: torrents.php
keywordsfilters:
- name: re_replace
args: ["(?i)S(\\d{2})E(\\d{2})", "$1 $2"]
inputs:
search: "{{ .Keywords }}"
category: 0
active: 1
# 0 all, 1 active, 2 dead
active: 0
rok: "{{ .Query.Year }}"
# can search for genre but you need to know the id. &genres=57466 for Akční

keywordsfilters:
- name: re_replace
args: ["(?i)S(\\d{2})E(\\d{2})", "$1 $2"]

rows:
selector: tr.torrenty_lista
selector: "tr.torrenty_lista{{ if .Config.freeleech }}:has(a[href^=\"details.php?slug=\"] b span[style=\"color:darkmagenta\"]){{ else }}{{ end }}"

fields:
category:
Expand All @@ -90,17 +119,36 @@ search:
selector: a[href^="details.php?slug="]
attribute: title
filters:
# Czech, English
- name: re_replace
args: ["(?i)(Zobrazit detaily: |View details: )", ""]
args: ["(?i)^(Zobrazit detaily|View details|Detaily): ", ""]
- name: re_replace
args: ["(?i)[\\s\\->]*FREELEECH.*", ""]
- name: re_replace
args: ["(Detaily: )", ""]
args: [".*?/ ", ""]
- name: re_replace
args: ["(\\w)\\.(\\w)", "$1 $2"]
args: ["(?i)\\b(\\d{1,3})x(\\d{1,3})\\b", "S$1E$2"]
- name: re_replace
args: [".*? / ", ""]
- name: diacritics
args: replace
args: ["(?i)\\b(?:Sezona|Series?|Seria|Season)[\\s\\.]*(\\d{1,3}(?:-\\d+)?)[\\.,\\s]*Epizoda[\\s\\.]*(\\d+(?:-\\d+)?)\\b", "S$1E$2"]
- name: re_replace
args: ["(?i)\\b(\\d{1,3}(?:-\\d+)?)[\\s\\.]*(?:Sezona|Series?|Seria|Season)[\\.,\\s]*(\\d+(?:-\\d+)?)[\\s\\.]*Epizoda\\b", "S$1E$2"]
- name: re_replace
args: ["(?i)\\b(?:Sezona|Series?|Seria|Season)[\\s\\.]*(\\d{1,3}(?:-\\d+)?)[\\.,\\s]+(\\d+(?:-\\d+)?)[\\s\\.]*Epizoda\\b", "S$1E$2"]
- name: re_replace
args: ["(?i)\\b(?:Sezona|Series?|Seria|Season)[\\s\\.]*(\\d{1,3})[-\\+\\.,\\s]+(\\d+)\\b", "S$1-$2"]
- name: re_replace
args: ["(?i)\\b(\\d{1,3})[-\\+\\.\\s]+(\\d+)[\\s\\.]*(?:Sezona|Series?|Seria|Season)\\b", "S$1-$2"]
- name: re_replace
args: ["(?i)\\b(?:Sezona|Series?|Seria|Season)[\\s\\.]*(\\d{1,3}(?:-\\d+)?)\\b", "S$1"]
- name: re_replace
args: ["(?i)\\b(\\d{1,3}(?:-\\d+)?)[\\s\\.]*(?:Sezona|Series?|Seria|Season)\\b", "S$1"]
- name: re_replace
args: ["(?i)\\bEpizoda[\\s\\.]*(\\d+)[-\\+\\.,\\s]+(\\d+)\\b", "E$1-$2"]
- name: re_replace
args: ["(?i)\\b(\\d+)[-\\+\\.,\\s]+(\\d+)[\\s\\.]*Epizoda\\b", "E$1-$2"]
- name: re_replace
args: ["(?i)\\bEpizoda[\\s\\.]*(\\d+(?:-\\d+)?)\\b", "E$1"]
- name: re_replace
args: ["(?i)\\b(\\d+(?:-\\d+)?)[\\s\\.]*Epizoda\\b", "E$1"]
details:
selector: a[href^="details.php?slug="]
attribute: href
Expand All @@ -123,7 +171,17 @@ search:
grabs:
selector: td:nth-child(10)
downloadvolumefactor:
text: 1
case:
a[href^="details.php?slug="] b span[style="color:darkmagenta"]: 0
"*": 1
uploadvolumefactor:
text: 1
description:
selector: a[href^="details.php?slug="]
attribute: title
filters:
- name: re_replace
args: ["(?i)^(Zobrazit detaily|View details|Detaily): ", ""]
- name: re_replace
args: ["(?i)[\\s\\->]*FREELEECH.*", ""]
# engine tbd

0 comments on commit efc1602

Please sign in to comment.