forked from cardigann/cardigann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abnormal.yml
105 lines (101 loc) · 2.81 KB
/
abnormal.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
99
100
101
102
103
104
105
---
site: abnormal
name: Abnormal
language: fr-fr
links:
- https://abnormal.ws
caps:
categories:
"MOVIE|DVDR": Movies/DVD
"MOVIE|DVDRIP": Movies/SD
"MOVIE|BDRIP": Movies/SD
"MOVIE|VOSTFR": Movies
"MOVIE|HD|720p": Movies/HD
"MOVIE|HD|1080p": Movies/HD
"MOVIE|REMUXBR": Movies/BluRay
"MOVIE|FULLBR": Movies/BluRay
"TV|SD|VOSTFR": TV/SD
"TV|HD|VOSTFR": TV/HD
"TV|SD|VF": TV/SD
"TV|HD|VF": TV/HD
"TV|PACK|FR": TV
"TV|PACK|VOSTFR": TV
"TV|EMISSIONS": TV/Other
"ANIME": TV/Anime
"DOCS": TV/Documentary
"MUSIC|FLAC": Audio/Lossless
"MUSIC|MP3": Audio/MP3
"MUSIC|CONCERT": Audio/Video
"PC|APP": PC
"PC|GAMES": PC/Games
"EBOOKS": Books/Ebook
modes:
search: [q]
tv-search: [q, season, ep]
login:
path: /login.php
form: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- path: /login.php
message:
selector: .warning
test:
path: /top10.php
search:
path: "/torrents.php" #?search={{if .Query.Keywords}}{{ .Query.Keywords }}{{else}}%{{end}}"
inputs:
$raw: "{{range .Categories}}cat[]={{.}}&{{end}}"
search: "{{if .Query.Keywords}}{{ .Query.Keywords }}{{else}}%{{end}}"
rows:
selector: .torrent_table > tbody > tr:not([class="colhead"])
fields:
category:
selector: td:nth-child(1) > a
attribute: href
filters:
- name: querystring
args: cat[]
title:
selector: td:nth-child(2) > a
download:
selector: td:nth-child(4) > a
attribute: href
size:
selector: td:nth-child(5)
filters:
- name: replace
args: ["Go", "gb"]
- name: replace
args: ["Mo", "mb"]
- name: replace
args: ["Ko", "kb"]
date:
selector: td:nth-child(3) > span
filters:
- name: replace
args: ["Il y a ", ""]
- name: replace
args: ["heures", "hours"]
- name: replace
args: ["heure", "hour"]
- name: replace
args: ["jours", "days"]
- name: replace
args: ["semaines", "weeks"]
- name: replace
args: ["semaine", "week"]
- name: replace
args: ["mois", "months"]
- name: replace
args: ["ans", "years"]
- name: replace
args: ["an", "year"]
- name: append
args: " ago"
seeders:
selector: td:nth-child(6)
leechers:
selector: td:nth-child(7)