aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.musicvideos.theaudiodb.com/tadb.xml
blob: 2305e2d09b07565ffce134f4318d1b15ad64863e (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
<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.1" date="2012-06-10">
	<CreateSearchUrl dest="3">
		<RegExp input="$$1" output="&lt;url&gt;http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/searchtrack.php?s=\1&t=\2&lt;/url&gt;" dest="3">
			<expression trim="1,2">(.+)%20%20%20(.+)</expression>
		</RegExp>
	</CreateSearchUrl>
	<GetSearchResults dest="3">
		<RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" dest="3">
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\5 - \3 [\4]&lt;/title&gt;&lt;url cache=&quot;tadb-\1.json&quot;&gt;http://www.theaudiodb.com/api/v1/json/58424d43204d6564696120/track.php?h=\1&lt;/url&gt;&lt;/entity&gt;" dest="5">
				<expression repeat="yes" clear="yes" fixchars="1" noclean="1">idTrack&quot;:&quot;([^&quot;]*)&quot;,&quot;idAlbum&quot;:&quot;([^&quot;]*).*?&quot;strTrack&quot;:&quot;([^&quot;]*)&quot;,&quot;strAlbum&quot;:&quot;([^&quot;]*)&quot;,&quot;strArtist&quot;:&quot;([^&quot;]*)</expression>
			</RegExp>
			<expression noclean="1" />
		</RegExp>
	</GetSearchResults>
	<GetDetails dest="3">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5">
				<expression fixchars="1" noclean="1">strTrack&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;artist&gt;\1&lt;/artist&gt;" dest="5+">
				<expression fixchars="1" noclean="1">strArtist&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;album&gt;\1&lt;/album&gt;" dest="5+">
				<expression fixchars="1" noclean="1">strAlbum&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
				<expression fixchars="1" noclean="1">strDescription&quot;:&quot;(.*?)&quot;,&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression fixchars="1" noclean="1">strGenre&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;\1&lt;/thumb&gt;" dest="5+">
				<expression fixchars="1" noclean="1">strTrackThumb&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<RegExp conditional="fanarttvalbumthumbs" input="$$1" output="&lt;chain function=&quot;GetFanartTvAlbumThumbsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
				<expression fixchars="1" noclean="1">strMusicBrainzAlbumID&quot;:&quot;([^&quot;]*)&quot;</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetDetails>
</scraper>