1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-27 11:53:24 +01:00
Files
Indexers/definitions/v3/snowpt.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

103 lines
2.6 KiB
YAML

---
id: snowpt
name: SnowPT
description: "SnowPT (SSPT) is a CHINESE Private Torrent Tracker for ANIME"
language: zh-CN
type: private
encoding: UTF-8
links:
- https://skyeysnow.com/
caps:
categorymappings:
- {id: 1, cat: TV/Anime, desc: "Anime"}
modes:
search: [q]
tv-search: [q, season, ep]
login:
path: login.php
method: form
form: form[id^="loginform_"]
inputs:
referer: /
loginfield: username
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
cookietime: 2592000
error:
- selector: div#messagetext:contains("登录失败") p
test:
path: /
selector: a[href*="action=logout&formhash="]
search:
paths:
# https://skyeysnow.com/forum.php?mod=torrents&cat=1&search=sei+no+kakuritsu
- path: forum.php
inputs:
mod: torrents
cat: 1
search: "{{ .Keywords }}"
rows:
selector: table.torrents > tbody > tr:has(a[href^="/download.php?id="])
fields:
category:
text: 1
title_default:
selector: a[href^="/forum.php?mod=viewthread&tid="]
title_optional:
optional: true
selector: a[title][href^="/forum.php?mod=viewthread&tid="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
details:
selector: a[href^="/forum.php?mod=viewthread&tid="]
attribute: href
download:
selector: a[href^="/download.php?id="]
attribute: href
date_elapsed:
# time type: time elapsed (default)
selector: td:nth-child(3) > span[title]
attribute: title
optional: true
filters:
- name: append
args: " +08:00" # CST
- name: dateparse
args: "2006-01-02 15:04:05 -07:00"
date_added:
# time added
selector: td:nth-child(3):not(:has(span))
optional: true
filters:
- name: append
args: " +08:00" # CST
- name: dateparse
args: "2006-01-0215:04:05 -07:00"
date:
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
size:
selector: td:nth-child(4)
seeders:
selector: td:nth-child(5)
leechers:
selector: td:nth-child(6)
grabs:
selector: td:nth-child(7)
downloadvolumefactor:
case:
img.sp_4: 0 # FREE
img.sp_2: 0.5 # 50%
"*": 1
uploadvolumefactor:
case:
# img.sp_0: 2 # do not know what a flag of 2xSFC means, but I dont think this is a 2xupload
"*": 1
# Discuz! X3.4