Jackett/src/Jackett.Common/Definitions/peersfm.yml

163 lines
4.2 KiB
YAML
Raw Normal View History

---
id: peersfm
name: Peers.FM
description: "Peers.FM is a RUSSIAN Private Torrent Tracker for MOVIES / TV / GENERAL"
language: ru-RU
type: private
encoding: windows-1251
links:
- https://peers.fm/
caps:
categorymappings:
- {id: 18, cat: TV/Anime, desc: "Anime"}
- {id: 17, cat: PC, desc: "Database"}
- {id: 25, cat: TV, desc: "EDU"}
- {id: 14, cat: Movies/HD, desc: "HD Видео"}
- {id: 7, cat: Other, desc: "Images"}
- {id: 15, cat: PC/Mac, desc: "Mac"}
- {id: 26, cat: PC/Mobile-Other, desc: "Mobile"}
- {id: 24, cat: TV, desc: "TV Show"}
- {id: 1, cat: PC, desc: "WaReZ"}
- {id: 10, cat: XXX, desc: "XXX"}
- {id: 9, cat: Audio/Audiobook, desc: "Аудиокниги"}
- {id: 3, cat: PC/Games, desc: "Игры/GameZ"}
- {id: 2, cat: Audio/Video, desc: "Клипы/Концерты"}
- {id: 8, cat: Books/Mags, desc: "Книги/Журналы"}
- {id: 20, cat: Audio/Lossless, desc: "Музыка/Lossless"}
- {id: 11, cat: Audio/MP3, desc: "Музыка/Mp3"}
- {id: 13, cat: TV, desc: "Мультфильмы"}
- {id: 12, cat: Other, desc: "Разное/Miscellaneous"}
- {id: 4, cat: Movies/DVD, desc: "Фильмы DVD"}
- {id: 6, cat: Movies, desc: "Фильмы MPEG4"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
2020-10-09 20:25:30 +00:00
book-search: [q]
2019-12-18 05:36:17 +00:00
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
2020-10-23 20:01:19 +00:00
default: 4
options:
2020-10-23 20:01:19 +00:00
4: created
7: seeders
5: size
1: title
- name: type
type: select
label: Order requested from site
2020-10-23 20:01:19 +00:00
default: desc
options:
2020-10-23 20:01:19 +00:00
desc: desc
asc: asc
login:
path: takelogin.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
SSL: 1
error:
- selector: table[width="400"] tr td
test:
path: browse.php
selector: a[href="/logout.php"]
search:
paths:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
# 0=active, 1=incl dead, 2=only dead, 3=FREE
incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
2019-12-18 05:36:17 +00:00
rows:
selector: table[width="940px"] > tbody > tr:has(a[href^="details.php?id="])
2019-12-18 05:36:17 +00:00
fields:
title:
selector: a[href^="details.php?id="]
details:
selector: a[href^="details.php?id="]
attribute: href
category:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
download:
selector: a[href^="download.php/"]
attribute: href
grabs:
selector: a[href^="download.php/"]
size:
selector: td:nth-child(6)
date:
selector: td:nth-child(5)
filters:
2020-05-12 22:42:31 +00:00
# replace month abbreviations
- name: replace
args: ["янв", "Jan"]
- name: replace
args: ["фев", "Feb"]
- name: replace
args: ["мар", "Mar"]
- name: replace
args: ["апр", "Apr"]
- name: replace
args: ["мая", "May"]
- name: replace
args: ["июн", "Jun"]
- name: replace
args: ["июл", "Jul"]
- name: replace
args: ["авг", "Aug"]
- name: replace
args: ["сен", "Sep"]
- name: replace
args: ["окт", "Oct"]
- name: replace
args: ["ноя", "Nov"]
- name: replace
args: ["дек", "Dec"]
2020-10-09 20:25:30 +00:00
- name: append
args: " +00:00" # auto adjusted by site account profile
- name: dateparse
2020-10-09 20:25:30 +00:00
args: "15:04:0502 Jan 2006 -07:00"
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
downloadvolumefactor:
case:
img[src="pic/free_100.png"]: 0
img[src="pic/free_75.png"]: 0.25
img[src="pic/free_50.png"]: 0.5
img[src="pic/free_25.png"]: 0.75
"*": 1
uploadvolumefactor:
text: 1
minimumratio:
text: 0.5
2020-01-19 19:36:57 +00:00
# engine n/a