aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.common.fanart.tv/fanarttv.xml
blob: ecf02d7e86307c14ddec67ab6e4464c1bee2ab82 (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
<?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;https://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;https://\1/preview/\2&quot;&gt;https://\1/fanart/\2&lt;/thumb&gt;" dest="13">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;https://([^/]*)/fanart/([^&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;https://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;https://\1/preview/\2&quot;&gt;https://\1/fanart/\2&lt;/thumb&gt;" dest="14">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;https://([^/]*)/fanart/([^&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;https://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;https://\1/preview/\2&quot;&gt;https://\1/fanart/\2&lt;/thumb&gt;" dest="13">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;https://([^/]*)/fanart/([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFanartTvAlbumThumbs>

	<GetFanartTvFanartByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseFanartTvFanart&quot; cache=&quot;fanarttv-\1.json&quot;&gt;https://webservice.fanart.tv/v3/movies/\1?api_key=ed4b784f97227358b31ca4dd966a04f1&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetFanartTvFanartByIdChain>
	<ParseFanartTvFanart dest="5">
		<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;moviebackground&quot;:\s\[(.*?)\}\s*\]</expression>
			</RegExp>
			<RegExp input="$$16" output="&lt;thumb preview=&quot;https://\1/preview/\2&quot;&gt;https://\1/fanart/\2&lt;/thumb&gt;" dest="14">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;https://([^/]*)/fanart/([^&quot;]*)</expression>
			</RegExp>
			<RegExp input="$$14" output="\1" dest="13">
				<expression noclean="1">(.+)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFanartTvFanart>

	<GetFanartTvThumbsByIdChain dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;ParseFanartTvThumbs&quot; cache=&quot;fanarttv-\1.json&quot;&gt;https://webservice.fanart.tv/v3/movies/\1?api_key=ed4b784f97227358b31ca4dd966a04f1&lt;/url&gt;" dest="5">
				<expression />
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetFanartTvThumbsByIdChain>
	<ParseFanartTvThumbs dest="5">
		<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;movieposter&quot;:\s\[(.*?)\}\s*\]</expression>
			</RegExp>
			<RegExp input="$$16" output="&lt;thumb preview=&quot;https://\1/preview/\2&quot;&gt;https://\1/fanart/\2&lt;/thumb&gt;" dest="13">
				<expression repeat="yes" noclean="1">&quot;id&quot;:\s&quot;\d*&quot;,\s*&quot;url&quot;:\s&quot;https://([^/]*)/fanart/([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</ParseFanartTvThumbs>
	
</scraperfunctions>