aboutsummaryrefslogtreecommitdiff
path: root/system/scrapers/video/rottentomatoes.xml
blob: c11931f92b90d758907835f294a165036b22e206 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<scraper framework="1.0" date="2010-02-16" name="Rotten Tomatoes" content="movies" thumb="rottentomatoes.png" language="en">
	<include>common/tmdb.xml</include>
	<include>common/movieposterdb.xml</include>
	<GetSettings dest="3">
		<RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
			<RegExp input="$$1" output="&lt;setting label=&quot;Location&quot; type=&quot;labelenum&quot; id=&quot;locality&quot; values=&quot;us|au|uk&quot; default=&quot;au&quot;&gt;&lt;/setting&gt;" dest="5">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Rating Type&quot; type=&quot;labelenum&quot; id=&quot;ratetype&quot; values=&quot;Overall|Top Critics|RT Community&quot; default=&quot;Overall&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Retrieve Classification Reason&quot; type=&quot;bool&quot; id=&quot;classreason&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Retrieve Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;setting label=&quot;Retrieve Thumbs&quot; type=&quot;bool&quot; id=&quot;thumbs&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetSettings>
	<NfoUrl dest="3">
		<RegExp input="$$1" output="\1" dest="3">
			<expression noclean="1">(http://$INFO[locality]\.rottentomatoes\.com/m/[A-Za-z0-9_]*)</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url&gt;http://$INFO[locality].rottentomatoes.com/alias?type=imdbid&amp;amp;s=\2&lt;/url&gt;" dest="3+">
			<expression>(imdb.com/)Title\?([0-9]+)</expression>
		</RegExp>
		<RegExp input="$$1" output="&lt;url&gt;http://$INFO[locality].rottentomatoes.com/alias?type=imdbid&amp;amp;s=\2&lt;/url&gt;" dest="3+">
			<expression>(imdb.com/title/tt)([0-9]*)</expression>
		</RegExp>
	</NfoUrl>
	<CreateSearchUrl dest="3">
		<RegExp input="$$1" output="http://$INFO[locality].rottentomatoes.com/search/full_search.php?search=\1" dest="3">
			<expression noclean="1"></expression>
		</RegExp>
	</CreateSearchUrl>
	<GetSearchResults dest="8">
		<RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 (\3)&lt;/title&gt;&lt;url&gt;http://$INFO[locality].rottentomatoes.com/m/\1&lt;/url&gt;&lt;/entity&gt;" dest="5">
				<expression repeat="yes">&lt;a href=&quot;/m/([^&quot;]*)&quot;&gt;([^&lt;]*).*?([0-9]{4})</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetSearchResults>
	<GetDetails dest="3">
		<RegExp input="$$8" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="6">
				<expression trim="1" noclean="1">&lt;span property=&quot;v:name&quot;&gt;([^&lt;]*)&lt;/span&gt; (\([0-9]{4})\)&lt;/h1&gt;</expression>
			</RegExp>
			<RegExp input="$$6" output="\1" dest="8">
				<expression noclean="1"></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="9">
				<expression noclean="1">&lt;h1.class=&quot;movie_title clearfix&quot;&gt;[\S\s]*\(([0-9]{4})\)&lt;/h1&gt;[\S\s]*dialog_content clearfix</expression>
			</RegExp>
			<RegExp input="$$9" output="\1" dest="8+">
				<expression noclean="1"></expression>
			</RegExp>
			<RegExp input="$$7" output="&lt;director&gt;\1&lt;/director&gt;" dest="8+">
				<RegExp input="$$1" output="\1" dest="7">
					<expression noclean="1">&lt;p class=&quot;movie_crew_shortened[\S\s]*Director:([\S\s]*)movie_crew_all</expression>
				</RegExp>
				<expression repeat="yes" noclean="1">&lt;a.href=&quot;[^&gt;]*&gt;([A-Za-z ]*)</expression>
			</RegExp>
			<!-- MPAA / Classification-->
			<RegExp conditional="!classreason" input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="8+">
				<expression>&lt;div id=&quot;movie_stats&quot;&gt;[\S\s]*&lt;span class=&quot;content&quot;&gt;([^&lt;]*)[\S\s]*\[See.Full.Rating\]</expression>
			</RegExp>
			<RegExp conditional="classreason" input="$$1" output="&lt;mpaa&gt;\1 \2&lt;/mpaa&gt;" dest="8+">
				<expression>&lt;div id=&quot;movie_stats&quot;&gt;[\S\s]*&lt;span class=&quot;content&quot;&gt;([^&lt;]*)[\S\s]*\[See.Full.Rating\][\S\s]*movie_rating_reason&quot;.style=&quot;display:.none&quot;&gt;([^&lt;]*)</expression>
			</RegExp>
			<!-- Runtime -->
			<RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="8+">
				<expression>property=&quot;v:runtime&quot; content=&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="8+">
				<expression>&lt;span class=&quot;label&quot;&gt;Studio:&lt;/span&gt;([^&lt;]*)</expression>
			</RegExp>
			<!-- Credits -->
			<RegExp input="$$7" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="8+">
				<RegExp input="$$1" output="\1" dest="7">
					<expression noclean="1">class=&quot;label&quot;&gt;Screenwriter:&lt;/span&gt;([^:]*)</expression>
				</RegExp>
				<expression noclean="1" repeat="yes">&lt;a.href=&quot;[^&gt;]*&gt;([^&lt;]*)</expression>
			</RegExp>
			<!-- Rating -->
			<RegExp input="$$1" output="$INFO[ratetype]\1" dest="10">
				<expression noclean="1">(&lt;h1 class=&quot;movie_title clearfix&quot;&gt;[\S\s]*&lt;div id="tomatometer_bar"&gt;)</expression>
			</RegExp>
			<RegExp input="$$10" output="&lt;rating max=&quot;100&quot;&gt;\1&lt;/rating&gt;" dest="8+">
				<expression>Overall[\S\s]*&lt;li class=&quot;ui-tabs-selected&quot;&gt;&lt;a title=&quot;([0-9]{2,3})</expression>
			</RegExp>
			<RegExp input="$$10" output="&lt;rating max=&quot;100&quot;&gt;\1&lt;/rating&gt;" dest="8+">
				<expression>Top Critics[\S\s]*&lt;a title=&quot;(\d{1,3})%&quot; href=&quot;/m/[^/]*/\?critic=creamcrop&quot;&gt;</expression>
			</RegExp>
			<RegExp input="$$10" output="&lt;rating max=&quot;100&quot;&gt;\1&lt;/rating&gt;" dest="8+">
				<expression>RT Community[\S\s]*&lt;a title=&quot;(\d{1,3})%&quot; href=&quot;reviews_users.php&quot;&gt;</expression>
			</RegExp>
			<!-- Votes -->
			<RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="8+">
				<expression>&lt;p&gt;Reviews Counted:&lt;span&gt;([^&lt;]*)</expression>
			</RegExp>
			<!-- Genre -->
			<RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="8+">
				<expression noclean="1">&lt;span.class=&quot;label&quot;&gt;Genre:&lt;/span&gt;.&lt;span class=&quot;content&quot;&gt;&lt;a.href=&quot;/movie/browser.php\?genre=[0-9]*&quot;&gt;([^&lt;]*)</expression>
			</RegExp>
			<!-- Actors-->
			<RegExp input="$$7" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;&lt;/role&gt;&lt;/actor&gt;" dest="8+">
				<RegExp input="$$1" output="\1" dest="7">
					<expression noclean="1">&lt;span class=&quot;label&quot;&gt;Starring:([\S\s]*)&lt;p class=&quot;movie_cast_all&quot;</expression>
				</RegExp>
				<expression repeat="yes" noclean="1">&lt;a.href=&quot;[^&gt;]*&gt;([A-Za-z ]*)</expression>
			</RegExp>
			<!-- Outline -->
			<RegExp input="$$1" output="&lt;outline&gt;\1&lt;/outline&gt;" dest="8+">
				<expression>&lt;p id=&quot;consensus&quot;&gt;&lt;span&gt;Consensus:[^&gt;]*&gt;([^\n\r\t]*)</expression>
			</RegExp>
			<!-- Plot -->
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="8+">
				<expression>&lt;span id=&quot;movie_synopsis_all&quot; style=&quot;display: none;&quot;&gt;([\S\s]*)&lt;a href=&quot;#&quot; id=&quot;movie_synopsis_link</expression>
			</RegExp>
			<RegExp input="$$6" output="+\1" dest="12+">
				<expression repeat="yes">([^ ,]+)</expression>
			</RegExp>
			<RegExp conditional="thumbs" input="$$12" output="&lt;url cache=&quot;rottentomatoes_temp.xml&quot; function=&quot;GetTMDBThumbsById&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;" dest="8+">
				<RegExp input="$$1" output="&quot;\1&quot;+\2" dest="4+">
					<expression>www\.imdb\.com/title/(tt[0-9]*)/\s</expression>
				</RegExp>
				<RegExp input="$$4" output="+\1" dest="12+">
					<expression repeat="yes">([^ ,]+)</expression>
				</RegExp>
				<expression></expression>
			</RegExp>
			<RegExp conditional="fanart" input="$$12" output="&lt;url cache=&quot;rottentomatoes_temp.xml&quot; function=&quot;GetTMDBFanartById&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;" dest="8+">
				<RegExp input="$$1" output="&quot;\1&quot;+\2" dest="4+">
					<expression>www\.imdb\.com/title/(tt[0-9]*)/\s</expression>
				</RegExp>
				<RegExp input="$$4" output="+\1" dest="12+">
					<expression repeat="yes">([^ ,]+)</expression>
				</RegExp>
				<expression></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetDetails>
</scraper>