Jackett/src/Jackett.Common/Definitions/baibako.yml

171 lines
4.5 KiB
YAML
Raw Normal View History

---
site: baibako
name: BaibaKo
description: "BaibaKo is a RUSSIAN Semi-Private Torrent Tracker for TV"
language: ru-ru
type: semi-private
encoding: windows-1251
links:
- http://baibako.tv/ # site does not support https NET::ERR_CERT_AUTHORITY_INVALID
caps:
categorymappings:
- {id: 1, cat: TV, desc: "TV"}
modes:
search: [q]
tv-search: [q, season, ep]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: striprussian
type: checkbox
label: Strip Russian Letters
default: false
2019-12-13 04:14:58 +00:00
- 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"
login:
path: takelogin.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: div.login2
test:
path: /
selector: a[href="logout.php"]
search:
paths:
- path: browse.php
inputs:
search: "{{.Keywords }}"
# 0 active 1 incldead 2 onlydead 3 gold 4 seedfree
2019-12-13 04:14:58 +00:00
incldead: 1
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
keywordsfilters:
- name: re_replace
args: ["[s|S](\\d+)[e|E][\\d]+", "/s$1"]
2019-12-13 04:14:58 +00:00
rows:
selector: table > tbody > tr:has(a[href^="details.php?id="])
2019-12-13 04:14:58 +00:00
fields:
title:
selector: a[href^="details.php?id="]
filters:
- name: re_replace
args: ["[\\/]+", ""]
- name: replace
args: [" (Золото)", ""]
- name: replace
args: ["-Rip", "Rip"]
- name: replace
args: ["WEB-DL", "WEBDL"]
- name: replace
args: ["WEBRip", "WEBDL"]
- name: re_replace
args: ["WEBDLRip", "WEBDL"]
- name: replace
args: ["HD720p", "HD 720p"]
- name: replace
args: ["HDR720p", "HD 720p"]
- name: replace
args: ["HD1080p", "HD 1080p"]
- name: replace
args: ["HDR1080p", "HD 1080p"]
- name: re_replace
args: ["(\\([А-Яа-яЁё\\W]+\\))|(^[А-Яа-яЁё\\W\\d]+\\/ )|([а-яА-ЯЁё \\-]+,+)|([а-яА-ЯЁё]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"]
2019-07-24 05:29:01 +00:00
- name: append
args: " - rus"
details:
selector: a[href^="details.php?id="]
attribute: href
category:
text: 1
banner:
selector: img[src^="/posters/"]
attribute: src
download:
selector: a[href^="download.php?id="]
attribute: href
date:
selector: small
filters:
- name: replace
args: ["Загружена: ", ""]
- name: replace
args: [" в ", " "]
- name: replace
args: ["января", "January"]
- name: replace
args: ["февраля", "February"]
- name: replace
args: ["марта ", "March"]
- name: replace
args: ["апреля", "April"]
- name: replace
args: ["мая", "May"]
- name: replace
args: ["июня", "June"]
- name: replace
args: ["июля", "July"]
- name: replace
args: ["августа", "August"]
- name: replace
args: ["сентября", "September"]
- name: replace
args: ["октября", "October"]
- name: replace
args: ["ноября", "November"]
- name: replace
args: ["декабря", "December"]
- name: dateparse
args: "2 January 2006 15:04:05"
files:
selector: td:nth-last-child(5)
size:
selector: td:nth-last-child(3)
seeders:
selector: td:nth-last-child(2)
filters:
- name: split
args: ["|", 0]
leechers:
selector: td:nth-last-child(2)
filters:
- name: split
args: ["|", 1]
grabs:
selector: td:nth-last-child(1)
downloadvolumefactor:
case:
2019-12-13 04:14:58 +00:00
"a[href^=\"details.php?id=\"]:contains(\"(Золото)\")": 0
"*": 1
uploadvolumefactor:
case:
2019-12-13 04:14:58 +00:00
"*": 1
2020-01-15 19:26:44 +00:00
# engine n/a