-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtadb.xml
71 lines (71 loc) · 4.27 KB
/
tadb.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.1" date="2013-04-03">
<NfoUrl dest="3">
<RegExp input="$$1" output="<url>http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/track.php?h=\1</url>" dest="3">
<expression>http://www.theaudiodb.com/track/(.+)</expression>
</RegExp>
</NfoUrl>
<CreateSearchUrl dest="3">
<RegExp input="$$5" output="\1" dest="3">
<RegExp input="$$1" output="\1\\'\2" dest="1">
<expression repeat="yes">((?:[^%]*(?:%20))*[^%]*)(?:')((?:[^%]*(?:%20))*[^%]*)</expression>
</RegExp>
<RegExp input="$$1" output="<url>http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=\1&amp;t=\2</url>" dest="6">
<expression trim="1,2">(.+)%20(?:%20|-)%20(.+)</expression>
</RegExp>
<RegExp input="$$6" output="\1" dest="5">
<expression noclean="1" />
</RegExp>
<RegExp input="$$6" output="<url>http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/searchtrack.php?s=$$1&amp;t=</url>" dest="5">
<expression>^$</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="3">
<RegExp input="$$5" output="<results sorted="yes">\1</results>" dest="3">
<RegExp input="$$1" output="<entity><title>\5 - \3 [\4]</title><url cache="tadb-\1.json">http://www.theaudiodb.com/api/v1/json/18626d636d76696473706d/track.php?h=\1</url></entity>" dest="5">
<expression repeat="yes" clear="yes" fixchars="1" noclean="1">idTrack":"([^"]*)","idAlbum":"([^"]*).*?"strTrack":"([^"]*)","strAlbum":"([^"]*)","strArtist":"([^"]*)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetSearchResults>
<GetDetails dest="3">
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<RegExp input="$$1" output="<title>\1</title>" dest="5">
<expression fixchars="1" noclean="1">strTrack":"([^"]*)"</expression>
</RegExp>
<RegExp input="$$1" output="<artist>\1</artist>" dest="5+">
<expression fixchars="1" noclean="1">strArtist":"([^"]*)"</expression>
</RegExp>
<RegExp input="$$1" output="<album>\1</album>" dest="5+">
<expression fixchars="1" noclean="1">strAlbum":"([^"]*)"</expression>
</RegExp>
<RegExp input="$$1" output="<plot>\1</plot>" dest="5+">
<expression fixchars="1" noclean="1">strDescriptionEN":"(.*?)","</expression>
</RegExp>
<RegExp input="$$1" output="<director>\1</director>" dest="5+">
<expression fixchars="1" noclean="1">strMusicVidDirector":"(.*?)","</expression>
</RegExp>
<RegExp input="$$1" output="<studio>\1</studio>" dest="5+">
<expression fixchars="1" noclean="1">strMusicVidCompany":"(.*?)","</expression>
</RegExp>
<RegExp input="$$1" output="<thumb>\1</thumb>" dest="5+">
<expression repeat="yes">strMusicVidScreen1\d?":"([^"]*)</expression>
</RegExp>
<RegExp input="$$1" output="<chain function="GetTADBAlbumGenresByMBID">\1</chain>" dest="5+">
<expression fixchars="1" noclean="1">strMusicBrainzAlbumID":"([^"]*)"</expression>
</RegExp>
<RegExp input="$$1" output="<chain function="GetTADBAlbumDateByMBID">\1</chain>" dest="5+">
<expression fixchars="1" noclean="1">strMusicBrainzAlbumID":"([^"]*)"</expression>
</RegExp>
<RegExp conditional="tadbalbumthumbs" input="$$1" output="<chain function="GetTADBAlbumThumbsByMBID">\1</chain>" dest="5+">
<expression fixchars="1" noclean="1">strMusicBrainzAlbumID":"([^"]*)"</expression>
</RegExp>
<RegExp conditional="fanarttvalbumthumbs" input="$$1" output="<chain function="GetFanartTvAlbumThumbsByMBID">\1</chain>" dest="5+">
<expression fixchars="1" noclean="1">strMusicBrainzAlbumID":"([^"]*)"</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetDetails>
</scraper>