2020-02-10 06:14:12 +00:00
|
|
|
---
|
2020-05-11 19:59:28 +00:00
|
|
|
id: snowpt
|
2020-05-10 20:05:19 +00:00
|
|
|
name: SnowPT
|
|
|
|
description: "SnowPT (SSPT) is a CHINESE Private Torrent Tracker for ANIME"
|
2021-09-07 23:09:51 +00:00
|
|
|
language: zh-CN
|
2020-05-10 20:05:19 +00:00
|
|
|
type: private
|
|
|
|
encoding: UTF-8
|
|
|
|
links:
|
|
|
|
- https://skyeysnow.com/
|
2020-02-10 06:14:12 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
caps:
|
|
|
|
categorymappings:
|
|
|
|
- {id: 1, cat: TV/Anime, desc: "Anime"}
|
2020-02-10 06:14:12 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
modes:
|
|
|
|
search: [q]
|
|
|
|
tv-search: [q, season, ep]
|
2020-02-10 06:14:12 +00:00
|
|
|
|
2023-03-29 05:31:33 +00:00
|
|
|
settings:
|
|
|
|
- name: username
|
|
|
|
type: text
|
|
|
|
label: Username
|
|
|
|
- name: password
|
|
|
|
type: password
|
|
|
|
label: Password
|
|
|
|
- name: freeleech
|
|
|
|
type: checkbox
|
|
|
|
label: Filter freeleech only
|
|
|
|
default: false
|
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
login:
|
|
|
|
path: login.php
|
|
|
|
method: form
|
|
|
|
form: form[id^="loginform_"]
|
|
|
|
inputs:
|
2020-11-16 20:41:45 +00:00
|
|
|
referer: /
|
2020-05-10 20:05:19 +00:00
|
|
|
loginfield: username
|
|
|
|
username: "{{ .Config.username }}"
|
|
|
|
password: "{{ .Config.password }}"
|
2020-11-16 20:41:45 +00:00
|
|
|
cookietime: 2592000
|
2020-05-10 20:05:19 +00:00
|
|
|
error:
|
|
|
|
- selector: div#messagetext:contains("登录失败") p
|
|
|
|
test:
|
|
|
|
path: /
|
|
|
|
selector: a[href*="action=logout&formhash="]
|
2020-02-10 06:14:12 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
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 }}"
|
2020-02-10 06:14:12 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
rows:
|
2023-03-29 05:31:33 +00:00
|
|
|
selector: "table.torrents > tbody > tr:has(a[href^=\"/download.php?id=\"]){{ if .Config.freeleech }}:has(img.sp_4){{ else }}{{ end }}"
|
2020-02-10 06:14:12 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
fields:
|
|
|
|
category:
|
|
|
|
text: 1
|
2021-10-23 23:54:45 +00:00
|
|
|
title_default:
|
2020-05-10 20:05:19 +00:00
|
|
|
selector: a[href^="/forum.php?mod=viewthread&tid="]
|
2023-03-20 17:58:33 +00:00
|
|
|
title:
|
2020-05-10 20:05:19 +00:00
|
|
|
selector: a[title][href^="/forum.php?mod=viewthread&tid="]
|
|
|
|
attribute: title
|
2023-03-20 17:58:33 +00:00
|
|
|
optional: true
|
|
|
|
default: "{{ .Result.title_default }}"
|
2020-05-10 20:05:19 +00:00
|
|
|
details:
|
|
|
|
selector: a[href^="/forum.php?mod=viewthread&tid="]
|
2020-05-10 21:19:20 +00:00
|
|
|
attribute: href
|
2020-05-10 20:05:19 +00:00
|
|
|
download:
|
|
|
|
selector: a[href^="/download.php?id="]
|
|
|
|
attribute: href
|
2021-10-23 23:54:45 +00:00
|
|
|
date_elapsed:
|
2020-05-10 20:05:19 +00:00
|
|
|
# time type: time elapsed (default)
|
|
|
|
selector: td:nth-child(3) > span[title]
|
|
|
|
attribute: title
|
|
|
|
optional: true
|
|
|
|
filters:
|
|
|
|
- name: append
|
2020-11-16 20:41:45 +00:00
|
|
|
args: " +08:00" # CST
|
2020-05-10 20:05:19 +00:00
|
|
|
- name: dateparse
|
2023-02-24 07:02:57 +00:00
|
|
|
args: "yyyy-MM-dd HH:mm:ss zzz"
|
2021-10-23 23:54:45 +00:00
|
|
|
date_added:
|
2020-05-10 20:05:19 +00:00
|
|
|
# time added
|
|
|
|
selector: td:nth-child(3):not(:has(span))
|
|
|
|
optional: true
|
|
|
|
filters:
|
|
|
|
- name: append
|
2020-11-16 20:41:45 +00:00
|
|
|
args: " +08:00" # CST
|
2020-05-10 20:05:19 +00:00
|
|
|
- name: dateparse
|
2023-02-24 07:12:04 +00:00
|
|
|
args: "yyyy-MM-ddHH:mm:ss zzz"
|
2021-10-23 23:54:45 +00:00
|
|
|
date:
|
|
|
|
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
|
2020-05-10 20:05:19 +00:00
|
|
|
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:
|
2020-11-16 20:41:45 +00:00
|
|
|
# img.sp_0: 2 # do not know what a flag of 2xSFC means, but I dont think this is a 2xupload
|
2020-05-10 20:05:19 +00:00
|
|
|
"*": 1
|
2020-02-10 06:14:12 +00:00
|
|
|
# Discuz! X3.4
|