This repository has been archived by the owner on Mar 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserialzone.cz.xml
216 lines (216 loc) · 13.4 KB
/
serialzone.cz.xml
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?xml version="1.0" encoding="utf-8"?><scraper framework="1,1" date="2011-01-16">
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="<url>http://www.serialzone.cz/hledani/\1/</url>" dest="3">
<expression encode="1" />
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="2">
<RegExp input="$$3" output="<results>\1</results>" dest="2">
<!--get results from result page-->
<RegExp input="$$4" output="\1" dest="3">
<RegExp input="$$1" output="\1" dest="6">
<expression noclean="1"><h2>Výsledky v názvech</h2>[^<]*<table class="obsazeni">(.*?)</table></expression>
</RegExp>
<RegExp input="$$3" output="\1\4" dest="4">
<RegExp input="$$6" output="<entity><id>\2</id><url>\1</url><title>\4 (\6)</title><originaltitle>\6</originaltitle><year>\5</year><thumb>\3</thumb></entity> \n" dest="3">
<expression repeat="yes">a href="(http://www.serialzone.cz/serial/([^"]*)/)".*?src="(http://www.serialzone.cz/obrazky/serialy/[^"]*)".*?alt="([^"]*)".*?nepodstatne">[(]?([0-9]{4})[^<]*.*?mensi">([^<]+)</span></expression>
</RegExp>
<expression repeat="yes" trim="1,2" noclean="1,2,3,4">(<entity>.*?<title>\s*([^(]*)\s*)([(]\2[)])|(.*?</entity>)</expression>
</RegExp>
<expression repeat="yes" noclean="1" />
</RegExp>
<!--get result list with one element if exact match found and tvshow page was displayed-->
<RegExp input="$$2" output="\1\4" dest="3+">
<RegExp input="$$1" output="<entity><id>\3</id><title>\1 (\5)</title><url>\2</url><originaltitle>\5</originaltitle><thumb>\4</thumb><year>\6</year></entity>" dest="2">
<expression>hlavni-nadpis"><h1>(.*) - informace</h1>.*a href="(http://www.serialzone.cz/serial/([^"]*)/)">Informace.*<img src="(http://www.serialzone.cz/obrazky/serialy/[^"]*)" class="obr-right ramecek".*Původní název: <i>(.*?)</i>.*Roky natáčení:[^0-9]*([0-9]{4})</expression>
</RegExp>
<expression repeat="yes" trim="1,2" noclean="1,2,3,4">(<entity>.*?<title>\s*([^(]*)\s*)([(]\2[)])|(.*?</entity>)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetSearchResults>
<!-- TVSHOW details -->
<GetDetails dest="3">
<RegExp input="$$4" output="<details>\1</details>" dest="3">
<!--get title-->
<RegExp input="$$1" output="<title>\1</title><originaltitle>\2</originaltitle>" dest="4">
<expression trim="1,2">Český název: <i>([^<]+)</i><br />Původní název: <i>([^<]+)</i></expression>
</RegExp>
<!--thumb-->
<RegExp input="$$1" output="<thumb>\1</thumb><thumb type="season" season="0">\1</thumb><thumb type="season" season="1">\1</thumb><thumb type="season" season="2">\1</thumb><thumb type="season" season="3">\1</thumb><thumb type="season" season="4">\1</thumb> \n<thumb type="season" season="5">\1</thumb> \n<thumb type="season" season="6">\1</thumb> \n<thumb type="season" season="7">\1</thumb>" dest="4+">
<expression><img src="(http://www.serialzone.cz/obrazky/[^"]+)" class="obr-right ramecek" </expression>
</RegExp>
<!--remove -->
<RegExp input="$$5" output="\1 " dest="4+">
<!--plot-->
<RegExp input="$$1" output="<plot>\2</plot>" dest="5">
<expression trim="2"><h2>Popis seriálu</h2>\s*(<[^>]*>)*\s*<p[^>]*>(.+?)</p></expression>
</RegExp>
<expression repeat="yes" noclean="1">(.*?)(&nbsp;|$)</expression>
</RegExp>
<!--runtime-->
<RegExp input="$$1" output="<runtime>\1</runtime>" dest="4+">
<expression>Průměrná délka jednoho dílu: <i>([0-9]+)</expression>
</RegExp>
<!--years aired-->
<RegExp input="$$1" output="<aired>\1\2</aired><year>\1</year><premiered>\1</premiered>" dest="4+">
<expression trim="2">Roky natáčení: <i>([0-9]+)\s*([^<]*)\s*</i></expression>
</RegExp>
<!--genre-->
<RegExp input="$$1" output="<genre>\1</genre>" dest="4+">
<expression repeat="yes"><a href="http://www.serialzone.cz/serialy/zanr/[^"]*">(.+?)</a></expression>
</RegExp>
<!--rating-->
<RegExp input="$$1" output="<rating max="100">\2</rating><votes>\1</votes>" dest="4+">
<expression><span id="procenta" title="([0-9]*)[^"]*">\s*([.0-9]+)\s*[%]?\s*</span></expression>
</RegExp>
<!--fanart-->
<RegExp input="$$1" output="<fanart url="http://www.serialzone.cz/grafika/serialy"><thumb>\1</thumb></fanart>" dest="4+">
<expression>http://www.serialzone.cz/grafika/serialy/([^)]+)</expression>
</RegExp>
<!--episode guide-->
<RegExp input="$$1" output="<episodeguide><url>\1</url></episodeguide>" dest="4+">
<expression><a href="(http://www.serialzone.cz/serial/[^/]+/epizody/)">Epizody</a></expression>
</RegExp>
<!--id on serial zone-->
<RegExp input="$$3" output="<id>\1</id>" dest="4+">
<expression>http://www.serialzone.cz/serial/([^/]+)</expression>
</RegExp>
<!--ID - imdb-->
<RegExp input="$$1" output="<id>\1</id>" dest="4+">
<expression trim="1"><a href="http://www.imdb.com/title/tt([0-9]+)/"[^>]*>IMDb</a></expression>
</RegExp>
<!--get actors/directors/writers/credits from separate page-->
<RegExp input="$$1" output="<url function=GetSerialZoneActors>\1</url>" dest="4+">
<expression><a href="(http://www.serialzone.cz/serial/[^/]+/obsazeni/)"></expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetDetails>
<GetEpisodeList clearbuffers="no" dest="6">
<RegExp input="$$3" output="<episodeguide>\1</episodeguide>" dest="6">
<!--series 1-9-->
<RegExp input="$$1" output="\2\1" dest="4">
<expression repeat="yes" trim="7" noclean="1,2">(?<=(<h3>[0-9]. série</h3>))(.+?)(?=(<h3>|<div))</expression>
</RegExp>
<!--series 10-99-->
<RegExp input="$$1" output="\2\1" dest="4+">
<expression repeat="yes" trim="5" noclean="1,2">(?<=(<h3>[0-9][0-9]. série</h3>))(.*?)(?=(<h3>|<div))</expression>
</RegExp>
<!--episodes with its own episode page-->
<RegExp input="$$4" output="<episode><title>\5</title><url>\3</url><id>\4</id><epnum>\1</epnum><season>\6</season></episode>" dest="3">
<expression repeat="yes">([0-9]+)[.] (<img\b[^>]*>)?.*?<a href="(http://www.serialzone.cz/serial/[^/]*/epizody/([^/]*)/)">([^<]*).*?<br />(?=.*?([0-9]+). série)</expression>
</RegExp>
<!--episodes without own page-->
<RegExp input="$$4" output="<episode><title>\4</title><url>$$2</url><id>\2</id><epnum>\3</epnum><season>\5</season></episode>" dest="3+">
<expression repeat="yes" trim="4">(^|</h3>|<br />)(([0-9]+)[.] ([^<]+)).*?(?=<br />)(?=.*?([0-9]+). série)</expression>
</RegExp>
<expression clear="yes" noclean="1" />
</RegExp>
</GetEpisodeList>
<!-- EPISODE details -->
<GetEpisodeDetails dest="4">
<!--episode details-->
<RegExp input="$$5" output="<details>\1</details>" dest="4">
<!--get title-->
<RegExp input="$$1" output="<title>\1</title><originaltitle>\2</originaltitle>" dest="5">
<expression trim="1,2">Český název: <i>([^<]+)</i><br />Původní název: <i>([^<]+)</i></expression>
</RegExp>
<!--season - episode-->
<RegExp input="$$1" output="<season>\1</season><episode>\2</episode>" dest="5+">
<expression trim="1,2">České číslování: <i>\s*([0-9]+)[.]\s*řada[^<]*/\s*([0-9]+)[.]\s*díl[^<]*</i></expression>
</RegExp>
<!--remove -->
<RegExp input="$$4" output="\1 " dest="5+">
<!--plot-->
<RegExp input="$$1" output="<plot>\2</plot>" dest="4">
<expression clear="yes" trim="2"><h2>Obsah dílu</h2>\s*(<[^>]*>)*\s*<p[^>]*>(.+?)</p></expression>
</RegExp>
<expression repeat="yes" noclean="1">(.*?)(&nbsp;|$)</expression>
</RegExp>
<!--year-->
<RegExp input="$$1" output="<year>\1</year><premiered>\1</premiered>" dest="5+">
<expression>Rok natočení: <i>([0-9]{1,4})</i></expression>
</RegExp>
<!--runtime-->
<RegExp input="$$1" output="<runtime>\1</runtime>" dest="5+">
<expression>Délka: <i>([0-9]+)[.,0-9 ]*\s*min[^<]*</i></expression>
</RegExp>
<!--aired-->
<RegExp input="$$1" output="<aired>\1</aired>" dest="5+">
<expression>První vysílání: <i>([^<]+)</i></expression>
</RegExp>
<!--rating-->
<RegExp input="$$1" output="<rating max="100">\2</rating><votes>\1</votes>" dest="5+">
<expression><span id="procenta" title="([0-9]*)[^"]*">([0-9.]+)</expression>
</RegExp>
<!--serialzone id-->
<RegExp input="$$3" output="<id>\1</id>" dest="5+">
<expression>http://www.serialzone.cz/serial/[^/]+/epizody/([^/]+)/</expression>
</RegExp>
<!--get actors/directors/writers/credits from separate page-->
<RegExp input="$$3" output="<url function=GetSerialZoneActors>\1</url>" dest="5+">
<expression>(http://www.serialzone.cz/serial/arabela/epizody/[^/]+)</expression>
</RegExp>
<!--only basic episode info from episodes page-->
<RegExp input="$$2$$1" output="<title>\3</title><originaltitle>\5</originaltitle><aired>\7</aired><season>\4</season><episode>\2</episode>" dest="5">
<expression>(([0-9]+)[.]\s*([^<]+)).*[^0-9]([0-9]+). série.*?\1\s*<span[^>]*>[(](.*?)[)]</span>(\s*<span[^>]*>([0-9.]+)</span>)?</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetEpisodeDetails>
<SerialZoneActor dest="3">
<!--actor information-->
<RegExp input="$$4" output="<details><actor>\1</actor></details>" dest="3">
<!--actor name-->
<RegExp input="$$1" output="<name>\1</name>" dest="4">
<expression trim="1"><h1>(.*) - informace</h1></expression>
</RegExp>
<!--actor thumb-->
<RegExp input="$$1" output="<thumb>\1</thumb>" dest="4+">
<expression><img src="(http://www.serialzone.cz/obrazky/osobnosti/[^"]+)"[^>]*></expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</SerialZoneActor>
<GetSerialZoneActors dest="4">
<RegExp input="$$3" output="<details>\1</details>" dest="4">
<!--director-->
<RegExp input="$$2" output="<director>\2</director>" dest="3">
<RegExp input="$$1" output="\1" dest="2">
<expression clear="yes" noclean="1"><h3>Režie</h3>(.*?)(</table>|<h3>)</expression>
</RegExp>
<expression repeat="yes"><a href="(http://www.serialzone.cz/osobnost/[^"]+)">([^<]+)</a></expression>
</RegExp>
<!--credits-->
<RegExp input="$$2" output="<credits>\2</credits>" dest="3+">
<RegExp input="$$1" output="\1" dest="2">
<expression clear="yes" noclean="1"><h3>Tvůrci</h3>(.*?)(</table>|<h3>)</expression>
</RegExp>
<expression repeat="yes"><a href="(http://www.serialzone.cz/osobnost/[^"]*)">([^<]*)</a></expression>
</RegExp>
<!--writer-->
<RegExp input="$$2" output="<writer>\2</writer>" dest="3+">
<RegExp input="$$1" output="\1" dest="2">
<expression clear="yes" noclean="1"><h3>Scén[aá]ř</h3>(.*?)(</table>|<h3>)</expression>
</RegExp>
<expression repeat="yes"><a href="(http://www.serialzone.cz/osobnost/[^"]*)">([^<]*)</a></expression>
</RegExp>
<!--hlavni herci, jmena a role-->
<RegExp input="$$2" output="<actor><name>\2</name><role>\4</role></actor>" dest="3+">
<RegExp input="$$1" output="\1" dest="2">
<expression clear="yes" noclean="1"><h3>Hlavní postavy</h3>(.*?)(<h3>|</table>)</expression>
</RegExp>
<expression repeat="yes" trim="2,3"><td>(<a[^>]*>)?([^<]*)(</a>)?</td><td>...</td><td>([^<]*)</expression>
</RegExp>
<!--hlavni herci, fotky-->
<RegExp input="$$2" output="<url function=SerialZoneActor>\1</url>" dest="3+">
<RegExp input="$$1" output="\1" dest="2">
<expression clear="yes" noclean="1"><h3>Hlavní postavy</h3>(.*?)(<h3>|</table>)</expression>
</RegExp>
<expression repeat="yes"><td><a href="(http://www.serialzone.cz/osobnost/[^"]*)">[^<]*</a></td></expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetSerialZoneActors>
</scraper>