aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.common.fanart.tv/fanarttv.xml
blob: a59030327099347488b28ca331ecf9d4b2f3adf4 (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
<?xml version="1.0" encoding="UTF-8"?>
<scraperfunctions>
	<GetFanartTvArtistThumbsByMBID dest="5" clearbuffers="no">
		<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseFanartTvArtistThumbs&quot; cache=&quot;fanarttv-artistimages-\1.json&quot;&gt;http://webservice.fanart.tv/v3/music/\1?api_key=ed4b784f97227358b31ca4dd966a04f1/&lt;/url&gt;&lt;/details&gt;" dest="5">
			<expression noclean="1" />
		</RegExp>
	</GetFanartTvArtistThumbsByMBID>
	<ParseFanartTvArtistThumbs dest="5" clearbuffers="no">
		<RegExp input="$$13" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="" output="" dest="13">
				<expression />
			</RegExp>
			<RegExp input="" output="" dest="16">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="\1" dest="16">
				<expression noclean="1">&quot;artistthumb&quot;:\s\[(.*?)\}\s*\],</expression>
			</RegExp>
			<RegExp input="$$16" output="&lt;thumb preview=&quot;\1/preview&quot;&gt;\1&lt;/thumb&gt;" dest="13">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFanartTvArtistThumbs>

	<GetFanartTvArtistFanartsByMBID dest="5" clearbuffers="no">
		<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseFanartTvArtistFanarts&quot; cache=&quot;fanarttv-artistimages-\1.json&quot;&gt;http://webservice.fanart.tv/v3/music/\1?api_key=ed4b784f97227358b31ca4dd966a04f1/&lt;/url&gt;&lt;/details&gt;" dest="5">
			<expression noclean="1" />
		</RegExp>
	</GetFanartTvArtistFanartsByMBID>
	<ParseFanartTvArtistFanarts dest="5" clearbuffers="no">
		<RegExp input="$$13" output="&lt;details&gt;&lt;fanart&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
			<RegExp input="" output="" dest="13">
				<expression />
			</RegExp>
			<RegExp input="" output="" dest="14">
				<expression />
			</RegExp>
			<RegExp input="" output="" dest="16">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="\1" dest="16">
				<expression noclean="1">&quot;artistbackground&quot;:\s\[(.*?)\}\s*\],</expression>
			</RegExp>
			<RegExp input="$$16" output="&lt;thumb preview=&quot;\1/preview&quot;&gt;\1&lt;/thumb&gt;" dest="14">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$14" output="\1" dest="13">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFanartTvArtistFanarts>

	<GetFanartTvAlbumThumbsByMBID dest="5" clearbuffers="no">
		<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseFanartTvAlbumThumbs&quot; cache=&quot;fanarttv-albumimages-\1.json&quot;&gt;http://webservice.fanart.tv/v3/music/albums/\1?api_key=ed4b784f97227358b31ca4dd966a04f1/&lt;/url&gt;&lt;/details&gt;" dest="5">
			<expression noclean="1" />
		</RegExp>
	</GetFanartTvAlbumThumbsByMBID>
	<ParseFanartTvAlbumThumbs dest="5" clearbuffers="no">
		<RegExp input="$$13" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<RegExp input="" output="" dest="13">
				<expression />
			</RegExp>
			<RegExp input="" output="" dest="16">
				<expression />
			</RegExp>
			<RegExp input="$$1" output="\1" dest="16">
				<expression noclean="1">&quot;albumcover&quot;:\s\[(.*?)\}\s*\],</expression>
			</RegExp>
			<RegExp input="$$16" output="&lt;thumb preview=&quot;\1/preview&quot;&gt;\1&lt;/thumb&gt;" dest="13">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFanartTvAlbumThumbs>
</scraperfunctions>