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

70 lines
1.5 KiB
YAML

---
id: classix
name: Classix
description: "Classic movie tracker"
language: en-US
type: private
encoding: UTF-8
links:
- http://classix-unlimited.co.uk/ # site does not support https ERR_CONNECTION_CLOSED
caps:
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
modes:
search: [q]
movie-search: [q]
login:
path: account-login.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: div.myContent:contains("Access Denied")
test:
path: index.php
download:
selectors:
- selector: a[href^="download.php?id="]
attribute: href
search:
paths:
- path: torrents-search.php
inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
search: "{{ if .Keywords }}\"{{ .Keywords }}\"{{ else }}{{ end }}"
rows:
selector: table > tbody > tr:has(a[href^="torrents.php?cat="])
fields:
category:
text: 1
title:
selector: td:nth-child(3)
download:
selector: a[href^="torrents-details.php?id="]
attribute: href
filters:
- name: replace
args: ["torrents-details.php?id=", "download.php?id="]
details:
selector: a[href^="torrents-details.php?id="]
attribute: href
size:
selector: td:nth-child(7)
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
downloadvolumefactor:
text: 1
uploadvolumefactor:
text: 1
# engine tbd