forked from cardigann/cardigann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alpharatio.yml
84 lines (79 loc) · 1.92 KB
/
alpharatio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
site: alpharatio
name: AlphaRatio
language: en-us
links:
- https://alpharatio.cc/
caps:
categories:
1: TV/SD
2: TV/HD
3: TV/SD # TVDVDRip
4: TV/SD # TVPackSD
5: TV/HD # TVPackHD
6: Movies/SD
7: Movies/HD
8: Movies/SD # MoviePackSD
9: Movies/HD # MoviePackHD
10: XXX # MovieXXX
11: Audio/Video # MVid
12: PC/Games
13: Console/Xbox
14: Console/PS3
15: Console/Wii
16: PC
17: PC/Mac
19: PC/Phone-Other # AppsMobile
20: XXX
21: Books/Ebook
22: Audio/Audiobook
23: Audio
24: Other/Misc
modes:
search: [q]
tv-search: [q, season, ep]
ratio:
path: /index.php
selector: "#stats_ratio .stat"
login:
path: /login.php
form: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- path: /login.php
message:
selector: .warning:not(.hidden)
test:
path: /inbox.php
search:
path: /torrents.php
inputs:
$raw: "searchsubmit=1&{{range .Categories}}filter_cat[]={{.}}&{{end}}searchstr={{ .Query.Keywords }}"
rows:
selector: table#torrent_table tr.torrent
fields:
category:
selector: td.cats_col a
attribute: href
filters:
- name: regexp
args: "filter_cat\\[\\d+\\]=(\\d+)"
title:
selector: td.big_info .group_info > a:nth-child(2)
details:
selector: td.big_info .group_info > a:nth-child(2)
attribute: href
download:
selector: td.big_info span a:nth-child(1)
attribute: href
size:
selector: td:nth-child(5)
date:
selector: td:nth-child(4) .time
attribute: title
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)