forked from cardigann/cardigann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
transmithenet.yml
98 lines (92 loc) · 2.35 KB
/
transmithenet.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
site: transmithenet
name: Transmithe.net
description: "A TV tracker"
language: en-us
links:
- https://transmithe.net
caps:
categories:
1: TV
2: TV/HD
3: TV/SD
modes:
search: [q]
tv-search: [q, season, ep]
login:
path: /login.php
method: post
form: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
keeplogged: "1"
login: "Login"
error:
- selector: span.warning
test:
path: /torrents.php
ratio:
text: "-1"
search:
path: /torrents.php
inputs:
searchtext: "{{ .Query.Keywords }}"
order_by: "time"
order_way: "desc"
action: "advanced"
rows:
selector: table#torrent_table > tbody > tr.torrent
fields:
title:
selector: a[data-src]
attribute: data-src
filters:
- name: regexp
args: "(.+?)(\\.[\\d\\w]{3,4})?$"
description:
selector: div.tags
category:
selector: div.tags
case:
a[href="torrents.php?action=basic&taglist=hd"]: "2"
a[href="torrents.php?action=basic&taglist=sd"]: "3"
a:contains("4320p"): "2"
a:contains("2160p"): "2"
a:contains("1440p"): "2"
a:contains("1080p"): "2"
a:contains("720p"): "2"
a:contains("480p"): "3"
a:contains("360p"): "3"
a:contains("240p"): "3"
# "*": "1" # sometimes ovverrides an already matched category
comments:
selector: a[data-src]
attribute: href
download:
selector: a[href^="torrents.php?action=download&id="]
attribute: href
files:
selector: td > div:contains("Files:")
filters:
- name: regexp
args: "(\\d+)"
size:
selector: a[data-filesize]
attribute: data-filesize
seeders:
selector: td:nth-last-child(2)
leechers:
selector: td:nth-last-child(1)
date:
selector: span.time
attribute: title
grabs:
selector: td:nth-last-child(3)
downloadvolumefactor:
case:
img[alt="Freeleech"]: "0"
"*": "1"
uploadvolumefactor:
case:
"*": "1"