media-server-docker-compose/config/prowlarr/Definitions/xtorrenty.yml
Braden Jageman fd77c332fb new stuff
2024-04-07 00:37:31 -04:00

179 lines
5.0 KiB
YAML

---
id: xtorrenty
name: xTorrenty
description: "xTorrenty is a POLISH Semi-Private Torrent Tracker for MOVIES / TV / GENERAL"
language: pl-PL
type: semi-private
encoding: UTF-8
links:
- https://xtorrenty.org/
caps:
categorymappings:
- {id: 15, cat: Movies/SD, desc: "Filmy XviD/DivX"}
- {id: 20, cat: Movies/Other, desc: "Filmy/Bajki"}
- {id: 21, cat: Movies/DVD, desc: "Filmy DVD"}
- {id: 22, cat: Movies/SD, desc: "Filmy RMVB"}
- {id: 23, cat: Movies/HD, desc: "Filmy x264"}
- {id: 24, cat: Movies/UHD, desc: "Filmy 4K UHD"}
- {id: 25, cat: Movies/HD, desc: "Filmy HD"}
- {id: 26, cat: Movies/3D, desc: "Filmy 3D"}
- {id: 27, cat: Movies/HD, desc: "Filmy x265"}
- {id: 28, cat: Movies/SD, desc: "Filmy TS/CAM"}
- {id: 84, cat: PC/0day, desc: "Programy"}
- {id: 85, cat: Console, desc: "Konsole"}
- {id: 16, cat: PC/Games, desc: "Gry"}
- {id: 86, cat: Audio, desc: "Muzyka"}
- {id: 88, cat: Audio/Video, desc: "Teledyski"}
- {id: 89, cat: TV, desc: "TV"}
- {id: 90, cat: XXX, desc: "Erotyka"}
- {id: 91, cat: Books/EBook, desc: "Książki"}
- {id: 92, cat: Books/Comics, desc: "Komiksy"}
- {id: 93, cat: PC/Mac, desc: "Linux/Mac"}
- {id: 94, cat: TV/Sport, desc: "Sport"}
- {id: 95, cat: TV/Anime, desc: "Anime"}
- {id: 96, cat: Other, desc: "Dla dzieci"}
- {id: 97, cat: PC/Mobile-Other, desc: "GSM/PDA"}
- {id: 344, cat: Other/Misc, desc: "Inne"}
modes:
search: [q]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
music-search: [q]
book-search: [q]
settings:
- name: email
type: text
label: Email
- name: password
type: password
label: Password
- name: multilang
type: checkbox
label: Replace MULTi by another language in release name
default: false
- name: multilanguage
type: select
label: Replace MULTi by this language
default: POLISH
options:
POLISH: POLISH
MULTi POLISH: MULTi POLISH
- name: sort
type: select
label: Sort requested from site
default: date
options:
date: created
title: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
login:
path: login.html
method: form
form: form
inputs:
login_name: "{{ .Config.email }}"
login_password: "{{ .Config.password }}"
login_not_save: ""
login: submit
test:
path: /
selector: a[href$="/index.php?action=logout"]
download:
selectors:
- selector: a[href^="/engine/download.php?id="]
attribute: href
- selector: a[href^="magnet:?xt="]
attribute: href
search:
# do=search&subaction=search&story=greyhound&titleonly=3&sortby=date&resorder=desc&showposts=1&catlist[]=23
paths:
- path: index.php
inputs:
$raw: "{{ range .Categories }}catlist[]={{.}}&{{end}}"
do: search
subaction: search
showposts: 0
# 0 in article 1 in comments 2 in static pages 3 in article titles
titleonly: "{{ if .Query.IMDBID }}0{{ else }}3{{ end }}"
story: "{{ if or .Query.IMDBID .Keywords }}{{ or .Query.IMDBID .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
sortby: "{{ .Config.sort }}"
resorder: "{{ .Config.type }}"
rows:
selector: table > tbody > tr:has(td[class="colhead"])
fields:
category:
selector: td
case:
"td:contains(\"XviD/DivX\")": 15
"td:contains(\"Filmy/Bajki\")": 20
"td:contains(\"DVD\")": 21
"td:contains(\"RMVB\")": 22
"td:contains(\"x264\")": 23
"td:contains(\"4K UHD\")": 24
"td:contains(\"HD\")": 25
"td:contains(\"3D\")": 26
"td:contains(\"x265\")": 27
"td:contains(\"TS/CAM\")": 28
"td:contains(\"Programy\")": 84
"td:contains(\"Konsole\")": 85
"td:contains(\"Gry\")": 16
"td:contains(\"Muzyka\")": 86
"td:contains(\"Teledyski\")": 88
"td:contains(\"TV\")": 89
"td:contains(\"Erotyka\")": 90
"td:contains(\"Książki\")": 91
"td:contains(\"Komiksy\")": 92
"td:contains(\"Linux/Mac\")": 93
"td:contains(\"Sport\")": 94
"td:contains(\"Anime\")": 95
"td:contains(\"Dla dzieci\")": 96
"td:contains(\"GSM/PDA\")": 97
"*": 344
title_phase1:
selector: a
title_multilang:
selector: a
filters:
- name: re_replace
args: ["(?i)\\b(MULTI(?!.*(?:POLISH|ENGLISH|\\bPL\\b)))\\b", "{{ .Config.multilanguage }}"]
- name: re_replace
args: ["(?i)\\b(pl)\\b", "POLISH"]
title:
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
details:
selector: a
attribute: href
download:
selector: a
attribute: href
date:
text: now
seeders:
selector: td:nth-child(4)
leechers:
selector: td:nth-child(5)
size:
selector: td:nth-child(3)
filters:
- name: append
args: "B"
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a