1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-26 03:18:24 +01:00
Files
Indexers/definitions/v3/animeclipse.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

91 lines
2.2 KiB
YAML

---
id: animeclipse
name: AnimeClipse
description: "AnimeClipse is a Public site for Hellenic Fansubs Anime."
language: en-US
type: public
encoding: UTF-8
links:
- http://www.animeclipse.com/ # does not support https ERR_CONNECTION_REFUSED
settings:
- name: sort
type: select
label: Sort requested from site
default: added
options:
added: created
seeders: seeders
size: size
- name: type
type: select
label: Order requested from site
default: DESC
options:
DESC: desc
ASC: asc
caps:
categorymappings:
- {id: 1, cat: TV/Anime, desc: "Anime"}
modes:
search: [q]
tv-search: [q, season, ep]
search:
paths:
# http://www.animeclipse.com/index.php?ind=btitracker&search=sword&category=0&active=0&tor_page=10
- path: index.php
inputs:
ind: btitracker
# replace spaces with wildcard (percent symbol) as site's default search is exact string.
search: "{{ re_replace .Keywords \"[\\s]+\" \"%\" }}"
# does not support multi cats searching so defaulting to all.
category: 0
# 0 all, 1 active, 2 dead
active: 0
tor_page: 50
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"
rows:
selector: tr.torrentRow
fields:
category:
text: 1
title:
selector: a[href*="/download/"]
filters:
# move group to the end
- name: re_replace
args: ["^(\\[.+?\\])(.+?)$", "$2 $1"]
- name: re_replace
args: ["(_|\\[|\\])", " "]
details:
text: "{{ .Config.sitelink }}"
download:
selector: a[href*="/download/"]
attribute: href
size:
selector: td:contains("[size:") > span.torrentInfoData
date:
selector: td:contains("[Added:") > span.torrentInfoData
filters:
- name: append
args: " +02:00" # EET
- name: dateparse
args: "02/01/2006 15:04:05 -07:00"
grabs:
selector: td:contains("[Completed:") > span.torrentInfoData
seeders:
selector: td:contains("Seeders") > span.torrentInfoData
leechers:
selector: td:contains("Leechers") > span.torrentInfoData
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# btitracker