1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-27 03:43:30 +01:00
Files
Indexers/definitions/v2/abnormal.yml
Thomas d4a3629bf6 Fix: (Indexers) (Abnormal) Fix indexer not returning download url #91
- Changing scrap of download url to avoid problems if ABN changes its tr again
2021-12-12 11:33:25 -06:00

130 lines
3.4 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
default:
login:
method: form
path: Home/Login
form: "#account"
headers:
Accept: [ "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" ]
Content-Type: "application/x-www-form-urlencoded"
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