Jackett/src/Jackett.Common/Definitions/partis.yml

166 lines
5.6 KiB
YAML

---
id: partis
name: Partis
description: "Partis is a Private SLOVENIAN Torrent Tracker for MOVIES / TV / BOOKS / GENERAL"
language: sl-SI
type: private
encoding: UTF-8
links:
- https://www.partis.si/
caps:
categorymappings:
# Movies / Filmi
- {id: 7, cat: Movies, desc: "Xvid"}
- {id: 20, cat: Movies/HD, desc: "HD"}
- {id: 55, cat: Movies/UHD, desc: "UHD 4K Remux"}
- {id: 32, cat: Movies/UHD, desc: "UHD 4K Disc"}
- {id: 40, cat: Movies/BluRay, desc: "Blu-ray 1080p/i"}
- {id: 41, cat: Movies/3D, desc: "Blu-ray 3D"}
- {id: 42, cat: Movies/BluRay, desc: "Blu-ray 720p/i"}
- {id: 43, cat: Movies/BluRay, desc: "Blu-ray B-Disc"}
- {id: 44, cat: Movies/BluRay, desc: "Blu-ray Remux"}
- {id: 45, cat: Movies/BluRay, desc: "Blu-ray"}
- {id: 4, cat: Movies/DVD, desc: "DVD-R"}
- {id: 54, cat: Movies/WEB-DL, desc: "WEBRip"}
- {id: 59, cat: Movies/WEB-DL, desc: "WEB-DL"}
- {id: 30, cat: Movies/Other, desc: "Risanke"}
# TV
- {id: 17, cat: TV/HD, desc: "HD-TV"}
- {id: 31, cat: TV/HD, desc: "HD-TV"}
- {id: 38, cat: TV/SD, desc: "SD-TV"}
- {id: 51, cat: TV/HD, desc: "TV 1080p/i"}
- {id: 52, cat: TV/SD, desc: "TV 720p/i"}
- {id: 53, cat: TV/WEB-DL, desc: "TV WEB-DL"}
- {id: 5, cat: TV/Sport, desc: "Sport"}
- {id: 2, cat: TV/Anime, desc: "Anime"}
- {id: 24, cat: TV/Documentary, desc: "Dokumentarci"}
# Games / Igre
- {id: 10, cat: PC/Games, desc: "PC igre/ISO"}
- {id: 11, cat: PC/Games, desc: "PC igre/Rips/Repack"}
- {id: 13, cat: Console, desc: "PS2"}
- {id: 12, cat: Console/PSP, desc: "PSP"}
- {id: 28, cat: Console/PS3, desc: "PS3"}
- {id: 63, cat: Console/PS4, desc: "PS4"}
- {id: 27, cat: Console/Wii, desc: "Wii"}
- {id: 14, cat: Console/XBox, desc: "XboX"}
- {id: 49, cat: PC/Games, desc: "Mac Igre"}
- {id: 48, cat: PC/Games, desc: "Linux Igre"}
- {id: 64, cat: PC/Games, desc: "PC igre/Update & Patch"}
# Music / Glasba
- {id: 8, cat: Audio, desc: "Glasba/Ostalo"}
- {id: 47, cat: Audio/MP3, desc: "Glasba/Mp3"}
- {id: 46, cat: Audio/Lossless, desc: "Glasba/Flac"}
- {id: 23, cat: Audio/Video, desc: "Videospoti"}
- {id: 22, cat: Audio/Video, desc: "Music DVD"}
# Programs / Programi
- {id: 15, cat: PC, desc: "PC programi/drugo"}
- {id: 16, cat: PC/ISO, desc: "PC programi/ISO"}
- {id: 58, cat: PC/Mac, desc: "Mac programi"}
- {id: 50, cat: PC, desc: "Linux programi"}
# XXX
# only works for exactly categories cat=18,36,35,37,56,39 in this order
# - {id: 18, cat: XXX, desc: "XXX-HD"}
# - {id: 36, cat: XXX/XviD, desc: "XXX-XviD"}
# - {id: 35, cat: XXX, desc: "XXX-Clip"}
# - {id: 37, cat: XXX, desc: "XXX 37"}
# - {id: 39, cat: XXX, desc: "XXX 39"}
# - {id: 56, cat: XXX, desc: "XXX 56"}
# Other / Ostalo
- {id: 3, cat: Books/EBook, desc: "eKnjige"}
- {id: 19, cat: Other, desc: "Slike"}
- {id: 21, cat: Audio/Audiobook, desc: "AudioBook"}
- {id: 9, cat: PC/Mobile-Other, desc: "GBA"}
- {id: 25, cat: PC/Mobile-Other, desc: "GSM/Igre"}
- {id: 26, cat: PC/Mobile-Android, desc: "PDA"}
- {id: 29, cat: PC/Mobile-iOS, desc: "Ipod"}
- {id: 61, cat: PC/Mobile-Other, desc: "GSM/Programi"}
- {id: 62, cat: PC/Mobile-Other, desc: "GSM/Ostalo"}
# undocumented in category table but present in results
- {id: 60, cat: TV/SD, desc: "TV-XVID"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort results
default: _
options:
_: "Added descending"
"seeders ASC": "Seeders ascending"
"seeders DESC": "Seeders descending"
"leechers ASC": "Leechers ascending"
"leechers DESC": "Leechers descending"
"size ASC": "Size ascending"
"size DESC": "Size descending"
login:
method: post
path: user/login
inputs:
user: "{{ .Config.username }}"
pass: "{{ .Config.password }}"
test:
path: torrent/search
search:
paths:
- path: torrent/search
inputs:
q: "{{ .Keywords }}"
cat: "{{ join .Categories \",\" }}"
order: "{{ re_replace .Config.sort \"_\" \"\" }}"
preprocessingfilters:
# Extract torrent information from the json array that is part of the response and transform it into html form
- name: re_replace
args: ["\\[(\\d+),(\\d+),(\\d+),\"([^\"]+?)\",(\\d+),(\\d+),\"([^\"]+?)\",(\\d+),([\\d.]+?),\"([^\"]+?)\",\"([^\"]+?)\",\"([^\"]+?)\".*?\\],?", "<torrent><fid>$1</fid><w>$2</w><created_at>$3</created_at><title>$4</title><seeders>$5</seeders><leechers>$6</leechers><short_description>$7</short_description><torrent_category_id>$8</torrent_category_id><completed>$9</completed><size>$10</size><icon>$11</icon><poster>$12</poster></torrent>"]
# Remove javascript and keep only <torrent>...</torrent>
- name: re_replace
args: ["^.*?(<torrent>.*<\\\/torrent>).*|.*", "$1"]
rows:
selector: torrent
fields:
category:
selector: torrent_category_id
title:
selector: title
_id:
selector: fid
details:
text: "{{ .Config.sitelink }}portal#torrent/{{ .Result._id }}"
download:
text: "{{ .Config.sitelink }}torrent/download/{{ .Result._id }}"
poster:
selector: poster
date:
selector: created_at
size:
selector: size
leechers:
selector: leechers
seeders:
selector: seeders
downloadvolumefactor:
text: 1
uploadvolumefactor:
text: 1
minimumratio:
text: 1.0
description:
selector: short_description
# engine BtiTracker