forked from autodl-community/autodl-trackers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Waffles.tracker
161 lines (145 loc) · 4.61 KB
/
Waffles.tracker
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is IRC Auto Downloader.
-
- The Initial Developer of the Original Code is
- David Nilsson.
- Portions created by the Initial Developer are Copyright (C) 2010, 2011
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- ***** END LICENSE BLOCK ***** -->
<trackerinfo
type="waffles"
shortName="Waffles"
longName="Waffles"
siteName="waffles.fm"
follow302links="true">
<settings>
<description text="Paste (Ctrl+V) any Waffles torrent download link into any one of the two text boxes below to automatically extract passkey and uid."/>
<passkey
pasteGroup="passkey,uid"
pasteRegex="[\?&]passkey=([\da-fA-F]{40})"
/>
<textbox
name="uid"
text="uid"
accesskey="i"
tooltiptext="The uid in any Waffles torrent download link."
pasteGroup="passkey,uid"
pasteRegex="[\?&]uid=(\d+)"
/>
</settings>
<servers>
<server
network="P2P-NET"
serverNames="irc.p2p-network.net,irc.p2p-irc.net"
channelNames="#waffles.fm-announce"
announcerNames="Waffles"
/>
</servers>
<parseinfo>
<linepatterns>
<extract>
<!--Eminem - Slim Shady LP [1999/CD/FLAC/Lossless] - https://www.waffles.fm/details.php?id=919362-->
<regex value="(.*)-\s*https?\:\/\/([^\/]+\/).*[&\?]id=(\d+)"/>
<vars>
<var name="torrentName"/>
<var name="$baseUrl"/>
<var name="$torrentId"/>
</vars>
</extract>
</linepatterns>
<linematched>
<var name="scene">
<string value="false"/>
</var>
<var name="log">
<string value="false"/>
</var>
<!--Extract release tags from torrent name-->
<extract srcvar="torrentName" optional="true">
<regex value="\[([^\]]*)\][^\]]*$"/>
<vars>
<var name="$releaseTags"/>
</vars>
</extract>
<!--Get year-->
<extract srcvar="$releaseTags" optional="true">
<regex value="(?:^|[\[\/])\s*((?:18|19|20)\d\d)\s*(?:$|[\]\/])"/>
<vars>
<var name="year"/>
</vars>
</extract>
<varreplace name="tags" srcvar="$releaseTags" regex="[\/]" replace=", "/>
<extractone>
<extract srcvar="torrentName">
<!--Thinkfreak - Better This Way EP [SONICULTURE] (Web) [2010-MP3-320] (Scene)-->
<regex value="^(.+?) - (.*)\[[^\]]*\][^\]]*$"/>
<vars>
<var name="name1"/>
<var name="name2"/>
</vars>
</extract>
<extract srcvar="torrentName">
<regex value="^(.+?) - (.*)"/>
<vars>
<var name="name1"/>
<var name="name2"/>
</vars>
</extract>
<extract srcvar="torrentName">
<regex value="(.*)"/>
<vars>
<var name="name1"/>
</vars>
</extract>
</extractone>
<!--If (Web) is found, set media to WEB-->
<setregex srcvar="torrentName" regex="\(web\)" varName="media" newValue="WEB"/>
<!--If (Scene) is found, set media to WEB-->
<setregex srcvar="torrentName" regex="\(scene\)" varName="scene" newValue="true"/>
<extracttags srcvar="$releaseTags" split="/">
<setvarif varName="format" regex="^(?:MP3|FLAC|Ogg|AAC|AC3|DTS)$"/>
<setvarif varName="bitrate" regex="Lossless$"/>
<setvarif varName="bitrate" regex="^(?:vbr|aps|apx|v\d|\d{2,3}|\d+\.\d+|q\d+\.[\dx]+)?(?:\s*kbps|\s*kbits?|\s*k)?(?:\s*\(?(?:vbr|cbr)\)?)?$"/>
<setvarif varName="media" regex="^(?:CD|DVD|Vinyl|Soundboard|SACD|DAT|Cassette|WEB|Other)$"/>
<setvarif varName="log" value="Log" newValue="true"/>
<!--Ignored-->
<regex value="^(?:18|19|20)\d\d$"/>
<regex value="^Multichannel$"/>
<regex value="^(?:PDF|EP|iTunes Plus|VO|Medical|avg|iso|UB|Serial|VO.*|Various|Intel|SN|JPG|volume SN|PC|MAC|KG)$"/>
</extracttags>
<var name="torrentUrl">
<string value="https://"/>
<var name="$baseUrl"/>
<string value="download.php/"/>
<var name="uid"/>
<string value="/"/>
<var name="$torrentId"/>
<string value="/"/>
<varenc name="torrentName"/>
<string value=".torrent?passkey="/>
<var name="passkey"/>
<string value="&uid="/>
<var name="uid"/>
<string value="&rss=1"/>
</var>
</linematched>
<ignore>
</ignore>
</parseinfo>
</trackerinfo>