media-server-docker-compose/config/prowlarr/Definitions/megapeer.yml

221 lines
8.7 KiB
YAML
Raw Normal View History

2024-04-07 00:37:31 -04:00
---
id: megapeer
name: MegaPeer
description: "MegaPeer is a RUSSIAN Public Torrent Tracker for MOVIES / TV"
language: ru-RU
type: public
encoding: windows-1251
links:
- https://megapeer.vip/
legacylinks:
- http://megapeer.ru/ # https is not supported
- http://alt.megapeer.ru/
caps:
categorymappings:
- {id: 79, cat: Movies, desc: "Наши фильмы (Russian Movies)"}
- {id: 5, cat: TV, desc: "Наши сериалы (Russian Series)"}
- {id: 174, cat: Movies/Foreign, desc: "Зарубежные фильмы (Foreign Movies)"}
- {id: 6, cat: TV/Foreign, desc: "Зарубежные сериалы (Foreign Series)"}
- {id: 76, cat: TV/Anime, desc: "Мультипликация (Animation)"}
- {id: 89, cat: Audio/Video, desc: "Концерты / Клипы (Concerts / Clips)"}
- {id: 57, cat: TV, desc: "Телепередачи / Шоу / Юмор (TV)"}
- {id: 145, cat: TV/Other, desc: "Обучающее видео (Instructional Video)"}
- {id: 55, cat: TV/Documentary, desc: "Документалистика (Documentary)"}
- {id: 164, cat: TV/Other, desc: "Прочее (Other)"}
- {id: 21, cat: TV/Sport, desc: "Спорт (Sport)"}
- {id: 94, cat: Audio, desc: "Музыка (Music)"}
- {id: 28, cat: Console, desc: "Игры (Games)"}
- {id: 107, cat: PC/0day, desc: "Софт / ОС / Оформление (Software)"}
- {id: 41, cat: PC/Mobile-Other, desc: "Мобильные устройства (Mobile)"}
- {id: 52, cat: Books, desc: "Книги / Журналы (Books)"}
- {id: 169, cat: Other/Misc, desc: "Разное (Misc)"}
- {id: 178, cat: Other, desc: "Страницы (Pages)"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]
settings:
- name: stripcyrillic
type: checkbox
label: Strip Cyrillic Letters
default: false
- name: addrussiantotitle
type: checkbox
label: Add RUS to end of all titles to improve language detection by Sonarr and Radarr. Will cause English-only results to be misidentified.
default: false
- name: sort
type: select
label: Sort requested from site
default: 0
options:
0: created
1: title
2: size
- name: type
type: select
label: Order requested from site
default: 0
options:
0: desc
1: asc
search:
# https://megapeer.vip/browse.php?search=%25%25&age=&cat=0&stype=0&sort=0&ascdesc=0
paths:
- path: browse.php
inputs:
search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
# does not support multi category searches
cat: 0
# 0 title, 1 descr, 2 phrase, 3 infohash
stype: 0
sort: "{{ .Config.sort }}"
ascdesc: "{{ .Config.type }}"
headers:
# prevent redirect
Referer: ["{{ .Config.sitelink }}browse.php"]
keywordsfilters:
- name: re_replace # S01 to сезон 1
args: ["(?i)\\bS0*(\\d+)\\b", "сезон $1"]
- name: re_replace # E02 to сери 1
args: ["(?i)\\bE0*(\\d+)\\b", "сери $1"]
- name: re_replace # S01E02 to сезон 1 сери 2
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"]
# prepend % to each word - allow 1 character keywords
- name: re_replace
args: ["(\\w+)", "%$1"]
rows:
selector: table#tor-tbl > tbody > tr.hl-tr
fields:
category:
selector: a[href^="/cat/"]
attribute: href
filters:
- name: regexp
args: (\d+)
title:
selector: a.tLink
filters:
# normalize to SXXEYY format
- name: re_replace
args: ["(?i)[CС]езоны?[\\s:]*(\\d+(?:-\\d+)?).+?(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))[\\s:]*(\\d+(?:-\\d+)?)\\s*из\\s*(\\w?)", "S$1E$2 of $3"]
- name: re_replace
args: ["(?i)(\\d+(?:-\\d+)?)\\s*[CС]езоны?.+?(\\d+(?:-\\d+)?)\\s*из\\s*(\\w?)(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))?", "S$1E$2 of $3"]
- name: re_replace
args: ["(?i)(\\d+(?:-\\d+)?)\\s*[CС]езоны?.+?(\\d+(?:-\\d+)?)\\s*(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))\\s+из\\s*(\\w?)", "S$1E$2 of $3"]
- name: re_replace
args: ["(?i)[CС]езоны?[\\s:]*(\\d+(?:-\\d+)?).+?(\\d+(?:-\\d+)?)\\s*из\\s*(\\w?)(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))?", "S$1E$2 of $3"]
- name: re_replace
args: ["(?i)[CС]езоны?[\\s:]*(\\d+(?:-\\d+)?).+?(\\d+(?:-\\d+)?)\\s*(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))\\s+из\\s*(\\w?)", "S$1E$2 of $3"]
- name: re_replace
args: ["(?i)[CС]езоны?[\\s:]*(\\d+(?:-\\d+)?).+?(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))[\\s:]*(\\d+(?:-\\d+)?)", "S$1E$2"]
- name: re_replace
args: ["(?i)(\\d+(?:-\\d+)?)\\s*[CС]езоны?.+?(\\d+(?:-\\d+)?)(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))", "S$1E$2"]
- name: re_replace
args: ["(?i)[CС]езоны?[\\s:]*(\\d+(?:-\\d+)?).+?(\\d+(?:-\\d+)?)(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))", "S$1E$2"]
- name: re_replace
args: ["(?i)[CС]езоны?[\\s:]*(\\d+(?:-\\d+)?)", "S$1"]
- name: re_replace
args: ["(?i)(\\d+(?:-\\d+)?)\\s+[CС]езоны?", "S$1"]
- name: re_replace
args: ["(?i)(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))[\\s:]*(\\d+(?:-\\d+)?)\\s*из\\s*(\\w?)", "E$1 of $2"]
- name: re_replace
args: ["(?i)(\\d+(?:-\\d+)?)\\s*из\\s*(\\w?)(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))", "E$1 of $2"]
- name: re_replace
args: ["(?i)(\\d+(?:-\\d+)?)\\s+(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))\\s+из\\s*(\\w?)", "E$1 of $2"]
- name: re_replace
args: ["(?i)(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))[\\s:]*(\\d+(?:-\\d+)?)", "E$1"]
- name: re_replace
args: ["(?i)(\\d+(?:-\\d+)?)\\s+(?:\\s*(?:[CС]ери[ияй]|Эпизод|Выпуски?))", "E$1"]
- name: re_replace
args: ["(?i)\\bFiles-х\\b", "Files-x"]
- name: re_replace
args: ["(?i)\\sот\\s([\\w\\p{P}\\p{S}]+)$", "-$1"]
- name: re_replace
args: ["\\s\\|\\s(\\w{4,})$", "-$1"]
- name: re_replace
args: ["(\\([\\p{IsCyrillic}\\W]+\\))|(^[\\p{IsCyrillic}\\W\\d]+\\/ )|([\\p{IsCyrillic} \\-]+,+)|([\\p{IsCyrillic}]+)", "{{ if .Config.stripcyrillic }}{{ else }}$1$2$3$4{{ end }}"]
- name: re_replace
args: ["(?i)\\bHDTV[-\\s]?Rip\\b", "HDTV"]
- name: re_replace
args: ["(?i)\\bSAT[-\\s]?Rip\\b", "HDTV"]
- name: re_replace
args: ["(?i)\\bWEB[-\\s]?DL[-\\s]?Rip\\b", "WEB-DL"]
- name: re_replace
args: ["(?i)\\bWEB\\sRip\\b", "WEBRip"]
- name: re_replace
args: ["(?i)\\bWEB\\sDL\\b", "WEB-DL"]
- name: re_replace
args: ["[\\[\\(\\{<«][\\s\\W]*[\\]\\)\\}>»]", ""]
- name: re_replace
args: ["^[\\s&,\\.!\\?\\+\\-_\\|\\/':]+", ""]
- name: append
args: "{{ if .Config.addrussiantotitle }} RUS{{ else }}{{ end }}"
details:
selector: a.tLink
attribute: href
download:
selector: a.tr-dl
attribute: href
poster:
selector: img.tor-icon
attribute: src
size:
selector: a.tr-dl
seeders:
selector: span.seedmed
leechers:
text: 1
date:
# Добавлен: 5 октября 2021 в 06:56:08
selector: p
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: append
args: " +03:00" # MSK
- name: dateparse
args: "d MMMM yyyy HH:mm:ss zzz"
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
description:
selector: a.tLink
# engine n/a