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

183 lines
5.1 KiB
YAML

---
id: polishsource
name: PolishSource
description: "PolishSource (PS) is a POLISH Private Torrent Tracker for MOVIES / TV / GENERAL"
language: pl-PL
type: private
encoding: ISO-8859-2
requestDelay: 3
links:
- https://polishsource.cz/
- https://plsrc.cz/
caps:
categorymappings:
- {id: 12, cat: Movies/SD, desc: "Movies/SD"}
- {id: 11, cat: Movies/HD, desc: "Movies/HD"}
- {id: 46, cat: Movies/UHD, desc: "Movies/UHD"}
- {id: 10, cat: TV/SD, desc: "TV/SD"}
- {id: 39, cat: TV/HD, desc: "TV/HD"}
- {id: 47, cat: TV/UHD, desc: "TV/UHD"}
- {id: 8, cat: PC/Games, desc: "Games/PC"}
- {id: 3, cat: Console, desc: "Games/Consoles"}
- {id: 5, cat: Books, desc: "E-Books"}
- {id: 42, cat: Audio, desc: "Music"}
- {id: 18, cat: PC/0day, desc: "Apps"}
- {id: 13, cat: XXX, desc: "XXX"}
modes:
search: [q]
tv-search: [q, season, ep, imdbid, genre]
movie-search: [q, imdbid, genre]
music-search: [q, genre]
book-search: [q, genre]
settings:
- name: username
type: text
label: Username
- 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: 4
options:
4: created
7: seeders
5: size
1: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
- name: info_activity
type: info
label: Account Inactivity
default: "PolishSource account is not meant for 'collectors' or those who log in once a week. Using the account = downloading + seeding. Unused account = banned account.</br>Inactive accounts will be deleted:</br>User to Extreme User - 30 days | Legend User - 60 days | Veteran User+ - N/A"
login:
path: login.php
method: form
form: form[action="takelogin.php"]
captcha:
type: image
selector: img[src="img.php"]
input: vImageCodP
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: td.embedded:has(h2:contains("nieudane"))
- selector: td.embedded:has(h2:contains("failed"))
- selector: td.embedded:has(h2:contains("Error"))
test:
path: browse.php
selector: a[href^="logout.php"]
search:
paths:
# https://polishsource.cz/browse.php?search=tt1598778&incldead=1&scene=0&pl=0&sub=&search_in=nfo
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search
# 0 onlyactive, 1 all, 2 onlydead
incldead: 1
# 0 all, 1 scene, 2 notscene, 3 internal
scene: 0
# 0 all, 1 Polish, 2 non-Polish, 4 subtitled
pl: 0
# genre blank=all
sub: "{{ .Query.Genre }}"
# title, both, nfo
search_in: "{{ if .Query.IMDBID }}nfo{{ else }}title{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows:
selector: table#restable > tbody > tr:has(a[href^="details.php?id="])
fields:
category:
selector: a[href^="?cat="]
attribute: href
filters:
- name: querystring
args: cat
title_phase1:
selector: a[href^="details.php?id="]
title_multilang:
selector: a[href^="details.php?id="]
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[href^="details.php?id="]
attribute: href
download:
selector: a[href^="downloadssl.php?id="]
attribute: href
genre:
selector: td:nth-child(2) > small
filters:
- name: replace
args: [" ", ", "]
_language:
optional: true
selector: img[src="pic/pl.png"]
filters:
- name: append
args: "Language: Polish\n<br>"
_subbed:
optional: true
selector: img[src="pic/napisy.png"]
filters:
- name: append
args: "Subbed\n<br>"
description:
text: "Genre: {{ .Result.genre }}\n<br>{{ .Result._language }}{{ .Result._subbed }}"
imdbid:
selector: a[href*="imdb.com/title/tt"]
date:
selector: td:nth-child(4)
# auto adjusted by site account profile
filters:
- name: dateparse
args: "yyyy-MM-ddHH:mm:ss"
size:
selector: td:nth-child(5)
grabs:
selector: td:nth-child(6)
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
minimumseedtime:
# 2 days (as seconds = 2 x 24 x 60 x 60)
text: 172800
# engine n/a