1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-27 02:09:24 +00:00

hdreactor: new layout html and cats

This commit is contained in:
Garfield69 2021-03-06 10:47:45 +13:00
parent 11bbc76e5b
commit 45314c3fe3

View file

@ -14,14 +14,14 @@ legacylinks:
caps:
categorymappings:
- {id: 2001, cat: Movies/HD, desc: "Кино HD"}
- {id: 5006, cat: Movies/UHD, desc: "Кино 4K"}
- {id: 2007, cat: Movies/Other, desc: "Анимация"}
- {id: 2006, cat: TV/HD, desc: "Сериалы"}
- {id: 5005, cat: TV/Sport, desc: "Спорт"}
- {id: 2004, cat: Audio/Lossless, desc: "Музыка"}
- {id: 2005, cat: PC/Games, desc: "Игры"}
- {id: 2003, cat: XXX, desc: "18+"}
- {id: 1, cat: Movies/HD, desc: "Кино HD"}
- {id: 2, cat: Movies/UHD, desc: "Кино UHD"}
- {id: 3, cat: XXX, desc: "18+ HD"}
- {id: 4, cat: Audio/Lossless, desc: "Музыка A"}
- {id: 5, cat: PC/Games, desc: "Игры"}
- {id: 6, cat: TV/HD, desc: "Сериалы HD"}
- {id: 7, cat: TV/Anime, desc: "Мультфильмы"}
- {id: 9, cat: Audio/Video, desc: "Музыка V"}
modes:
search: [q]
@ -69,29 +69,29 @@ search:
do: search
subaction: search
showposts: 1
# 0 in article 1 in comments 2 in static pages 3 in article titles
# 0 in article, 1 in comments ,2 in static pages, 3 in article titles
titleonly: 3
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
sortby: "{{ .Config.sort }}"
resorder: "{{ .Config.type }}"
rows:
selector: div.news:contains("Категория:")
selector: div.movie-item
fields:
category:
selector: div.news-content > a
selector: div.movie-item__meta > span > a
case:
a[href$="/4k_uhd/"]: 5006
a[href$="/1/"]: 2001
a[href$="/6/"]: 2006
a[href$="/7/"]: 2007
a[href$="/4/"]: 2004
a[href$="/5/"]: 2005
a[href$="/3/"]: 2003
a[href$="/sport-hd/"]: 5005
a[href$="/1/"]: 1
a[href$="/3/"]: 3
a[href$="/4/"]: 4
a[href$="/4k_uhd/"]: 2
a[href$="/5/"]: 5
a[href$="/6/"]: 6
a[href$="/7/"]: 7
a[href$="/9/"]: 9
title:
selector: h1 > a
selector: span.movie-item__title
filters:
# normalize to SXXEYY format
- name: re_replace
@ -117,11 +117,14 @@ search:
- name: replace
args: ["HDTVRip", "HDTV"]
details:
selector: h1 > a
selector: div.movie-item__desc > a
attribute: href
download:
selector: h1 > a
selector: div.movie-item__desc > a
attribute: href
poster:
selector: img
attribute: src
size:
text: "512 MB"
seeders:
@ -129,11 +132,9 @@ search:
leechers:
text: 1
date:
selector: div.news-content
selector: div.movie-item__meta > span:nth-child(2)
filters:
# - 30-10-2019, 14:49]
- name: regexp
args: "(\\d{1,2}\\-\\d{2}\\-\\d{4}\\, \\d{1,2}\\:\\d{2})"
# 5-03-2021, 21:59
- name: replace
args: [",", ""]
- name: append