1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-26 11:28:13 +01:00
Files
Indexers/definitions/v3/anisource.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

92 lines
1.7 KiB
YAML

---
id: anisource
name: AniSource
description: "AniSource is a Public site for HD Anime raws."
language: en-US
type: public
encoding: UTF-8
links:
- https://asnet.pw/
settings: []
caps:
categorymappings:
- {id: 1, cat: TV/Anime, desc: "Raw Animes"}
modes:
search: [q]
tv-search: [q, season, ep]
search:
paths:
- path: /
- path: /
inputs:
tpage: 2
- path: /
inputs:
tpage: 3
- path: /
inputs:
tpage: 4
- path: /
inputs:
tpage: 5
inputs:
search: "{{ .Keywords }}"
rows:
selector: div[class^="item"]
fields:
category:
text: 1
title:
selector: a[href*="/showprofile/"]
filters:
# move group to the end
- name: re_replace
args: ["^(\\[.+?\\]) (.+?)$", "$2 $1"]
details:
selector: a[href*="/showprofile/"]
attribute: href
download:
selector: a[href*="/download/"]
attribute: href
magnet:
selector: a[href^="magnet:?xt="]
attribute: href
date:
selector: font[color="Black"]
filters:
- name: regexp
args: "Date: (.+?) Central"
- name: replace
args: [" at ", " "]
- name: append
args: " -09:00" # CUS
- name: dateparse
args: "2006-01-02 15:04 -07:00"
size:
selector: font[color="Black"]
filters:
- name: regexp
args: "Size: (.+?) \\|"
- name: replace
args: ["b", "B"]
files:
selector: font[color="Black"]
filters:
- name: regexp
args: (\d+)$
seeders:
text: 1
leechers:
text: 1
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a