forked from cardigann/cardigann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
freshon.yml
64 lines (59 loc) · 1.32 KB
/
freshon.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
---
site: freshon
name: FreshOnTV
description: "TV Series anyone?"
language: en-us
links:
- https://freshon.tv/
caps:
categories:
1: TV
modes:
tv-search: [q, season, ep]
login:
path: /login.php
form: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: h1:contains("Error:")
message:
selector: "#login p"
remove: style, b
test:
path: /profile.php
ratio:
path: /home.php
selector: "#stats p:nth-child(3) span:nth-child(1)"
search:
path: /browse.php
inputs:
search: "{{ .Query.Keywords }}"
rows:
selector: table#highlight > tbody > tr:not(.colhead)
fields:
category:
text: 1
title:
selector: a.torrent_name_link
attribute: title
details:
selector: a.torrent_name_link
attribute: href
comments:
selector: a.torrent_name_link
attribute: href
download:
selector: td.table_links a:nth-child(1)
attribute: href
size:
selector: td.table_size
remove: br
date:
selector: td.table_added
remove: br
seeders:
selector: td.table_seeders a span
leechers:
selector: td.table_leechers a