aboutsummaryrefslogtreecommitdiff
path: root/system/scrapers/video/common/tmdb.xml
blob: 147807d25f4a938a54f2d71bd7409d64c41382c3 (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
<scraperfunctions>
        <GetTMDBFanartByIMDBId dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;GetTMDBFanart&quot; cache=&quot;tmdb-\1.xml&quot;&gt;http://api.themoviedb.org/2.0/Movie.getInfo?id=\1&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
			</RegExp>
                        <RegExp input="$$1" output="&lt;url function=&quot;GetTMDBFanartByIMDBId&quot; cache=&quot;tmdb-trans-\1.xml&quot; &gt;http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=\1&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression>/title/([t0-9]*)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetTMDBFanartByIMDBId>
        <GetTMDBFanart dest="5">
                <RegExp input="$$2" output="&lt;details&gt;&lt;fanart url=&quot;http://themoviedb.org/image/backdrops&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;thumb preview=&quot;/\1/\2_poster.\3&quot;&gt;/\1/\2.\3&lt;/thumb&gt;" dest="2">
				<expression repeat="yes">&lt;backdrop size=&quot;original&quot;&gt;.*?/([0-9]+)/([^\.]+)\.([^&lt;]*)&lt;/backdrop&gt;</expression>
			</RegExp>
                        <expression noclean="1">(.+)</expression>
                </RegExp>
        </GetTMDBFanart>
	<GetTMDBThumbsByIMDBId dest="4">>
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;GetTMDBThumbs&quot; cache=&quot;tmdb-\1.xml&quot;&gt;http://api.themoviedb.org/2.0/Movie.getInfo?id=\1&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression>&lt;id&gt;([0-9]*)&lt;/id&gt;</expression>
			</RegExp>
                        <RegExp input="$$1" output="&lt;url function=&quot;GetTMDBThumbsByIMDBId&quot; cache=&quot;tmdb-trans-\1.xml&quot;&gt;http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=\1&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5">
				<expression>/title/([t0-9]*)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetTMDBThumbsByIMDBId>
	<GetTMDBThumbs dest="5">
		<RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="$$1" output="&lt;thumb preview=&quot;\1_mid.\2&quot;&gt;\1.\2&lt;/thumb&gt;" dest="4">
				<expression repeat="yes">&lt;poster size=&quot;original&quot;&gt;([^\.]*)\.([^&lt;]*)&lt;/poster&gt;</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetTMDBThumbs>
</scraperfunctions>