1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-26 03:18:24 +01:00
Files
Indexers/definitions/v3/abnormal.yml
Qstick e07c451080 New: YAML Schema Validations (#206)
* New: YAML Schema Validations

* fixup! skip json when doing ymllint

* fixup!

* fixup!

* fixup!

* fixup!

* fixup! validate login methods, filter names, captcha types

* fixup! validate tracker type

* fixup! validate tracker type

* fixup! validate category mappings use a correct category

* fixup! further download block validation

* fixup!

* fixup! validate links and legacy-links are valid urls

* fixup! validate settings types

* fixup! v6 doubanid

* fixup! v5 json filter validation

* fixup! xbit should be v5
2022-06-24 21:01:47 -05:00

126 lines
3.2 KiB
YAML

---
id: abnormal
name: Abnormal
description: "General French Private Tracker"
language: fr-FR
type: private
encoding: UTF-8
links:
- https://abn.lol/
followredirect: true
caps:
categorymappings:
- { id: 1, cat: TV, desc: "Series" }
- { id: 2, cat: Movies, desc: "Movies" }
- { id: 3, cat: TV/Documentary, desc: "Documentaries" }
- { id: 4, cat: TV/Anime, desc: "Anime" }
- { id: 5, cat: PC/Games, desc: "Games" }
- { id: 6, cat: PC, desc: "Applications" }
- { id: 7, cat: Books/EBook, desc: "Ebooks" }
- { id: 9, cat: TV, desc: "Emissions" }
modes:
search: [ q ]
tv-search: [ q, season, ep ]
movie-search: [ q ]
book-search: [ q ]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: multilanguage
type: text
label: Replace MULTI by this word
default: MULTI
- name: subfrench
type: text
label: Replace "VOSTFR" and "SUBFRENCH" by this word
login:
method: form
path: Home/Login
form: "#account"
inputs:
Username: "{{ .Config.username }}"
Password: "{{ .Config.password }}"
RememberMe: "true"
selectorinputs:
__RequestVerificationToken:
selector: input[name="__RequestVerificationToken"]
attribute: value
error:
- selector: span.text-danger.validation-summary-errors > span
message:
text: " - Bad username/password."
test:
path: /
search:
paths:
- path: Torrent
inputs:
$raw: "{{ range .Categories }}SelectedCats={{.}}&{{end}}"
search: "{{ .Keywords }}"
page: torrents
category: 0
3dformat: 0
active: 1
rows:
selector: table.table-rows > tbody > tr
fields:
category:
selector: a[href^="/Torrent?SelectedCats="]
attribute: href
filters:
- name: querystring
args: SelectedCats
title_phase1:
selector: td.grid-release-column > a
title_multilanguage:
text: "{{ .Result.title_phase1 }}"
filters:
- name: re_replace
args: [ "(?i)[\\.\\s\\[\\-]multi[\\.\\s\\]\\-]", ".{{ .Config.multilanguage }}." ]
title_phase2:
text: "{{ if .Config.multilanguage }}{{ .Result.title_multilanguage }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
title_vostfr:
text: "{{ .Result.title_phase2 }}"
filters:
- name: re_replace
args: [ "(?i)[\\.\\s\\[\\-]vostfr[\\.\\s\\]\\-]", ".{{ .Config.subfrench }}." ]
- name: re_replace
args: [ "(?i)[\\.\\s\\[\\-]subfrench[\\.\\s\\]\\-]", ".{{ .Config.subfrench }}." ]
title:
text: "{{ if .Config.subfrench }}{{ .Result.title_vostfr }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
download:
selector: a[href^="/Torrent/Download?ReleaseId="]
attribute: href
details:
selector: a[href^="/Torrent/Details?ReleaseId="]
attribute: href
size:
selector: td:nth-child(6)
filters:
- name: re_replace
args: [ ",", "." ]
- name: replace
args: [ "o", "B" ]
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
downloadvolumefactor:
case:
img[title="Freeleech"]: 0
"*": 1
uploadvolumefactor:
case:
"*": 1