Merge pull request #4875 from koying/fixdroidremotekeyboard
[vuplus_xbmc] / addons / metadata.common.musicbrainz.org / musicbrainz.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <scraperfunctions>
3         <GetMBDiscographyByMBID dest="5" clearbuffers="no">
4                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBDiscography&quot; cache=&quot;mb-\1-discog.xml&quot;&gt;http://musicbrainz.org/ws/2/release-group?artist=\1&amp;amp;limit=100&amp;amp;type=album&lt;/url&gt;&lt;/details&gt;" dest="5">
5                         <expression noclean="1" />
6                 </RegExp>
7         </GetMBDiscographyByMBID>
8         <ParseMBDiscography dest="5" clearbuffers="no">
9                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
10                         <RegExp input="" output="" dest="2">
11                                 <expression />
12                         </RegExp>
13                         <RegExp input="$$1" output="&lt;album&gt;&lt;year&gt;\4&lt;/year&gt;&lt;title&gt;\2&lt;/title&gt;&lt;label&gt;\1&lt;/label&gt;&lt;/album&gt;" dest="2">
14                                 <expression repeat="yes" clear="yes" fixchars="1,2,3" noclean="1,2,3"> type="Album" id="([^"]*)"&gt;&lt;title&gt;([^&lt;]*)&lt;/title&gt;&lt;first-release-date(\s/)?&gt;(\d{4})?</expression>
15                         </RegExp>
16                         <expression noclean="1" />
17                 </RegExp>
18         </ParseMBDiscography>
19
20         <GetMBLafeSpanByMBID dest="5" clearbuffers="no">
21                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBLifeSpan&quot; cache=&quot;mb-\1-artist.xml&quot;&gt;http://musicbrainz.org/ws/2/artist/\1?inc=url-rels&lt;/url&gt;&lt;/details&gt;" dest="5">
22                         <expression noclean="1" />
23                 </RegExp>
24         </GetMBLafeSpanByMBID>
25         <ParseMBLifeSpan dest="5" clearbuffers="no">
26                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
27                         <RegExp input="" output="" dest="2">
28                                 <expression />
29                         </RegExp>
30                         <RegExp input="" output="" dest="11">
31                                 <expression />
32                         </RegExp>
33                         <RegExp input="$$1" output="&lt;born&gt;\1&lt;/born&gt;" dest="11">
34                         <expression>&lt;artist type=&quot;Person&quot;.*?&lt;life-span&gt;&lt;begin&gt;([^&lt;]*)</expression>
35                         </RegExp>
36                         <RegExp input="$$1" output="&lt;died&gt;\1&lt;/died&gt;" dest="11+">
37                         <expression>&lt;artist type=&quot;Person&quot;.*?&lt;life-span&gt;&lt;begin&gt;[^&lt;]*&lt;/begin&gt;&lt;end&gt;([^&lt;]*)</expression>
38                         </RegExp>
39                         <RegExp input="$$1" output="&lt;formed&gt;\1&lt;/formed&gt;" dest="11">
40                         <expression>&lt;artist type=&quot;Group&quot;.*?&lt;life-span&gt;&lt;begin&gt;([^&lt;]*)</expression>
41                         </RegExp>
42                         <RegExp input="$$1" output="&lt;disbanded&gt;\1&lt;/disbanded&gt;" dest="11+">
43                         <expression>&lt;artist type=&quot;Group&quot;.*?&lt;life-span&gt;&lt;begin&gt;[^&lt;]*&lt;/begin&gt;&lt;end&gt;([^&lt;]*)</expression>
44                         </RegExp>
45                         <RegExp input="$$11" output="$$12" dest="2">
46                                 <RegExp input="$INFO[lifespanfbsource]" output="&lt;chain function=&quot;GetAMGFallbackArtistLifeSpanByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="12">
47                                         <expression>allmusic.com</expression>
48                                 </RegExp>
49                                 <RegExp input="$INFO[lifespanfbsource]" output="&lt;chain function=&quot;GetTADBFallbackLifeSpanByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="12">
50                                         <expression>TheAudioDb.com</expression>
51                                 </RegExp>
52                         <expression>^$</expression>
53                         </RegExp>
54                         <RegExp input="$$11" output="$$11" dest="2">
55                         <expression noclean="1">&lt;(?:born|formed)*&gt;(.+)&lt;/(?:born|formed)*&gt;</expression>
56                         </RegExp>
57                         <expression noclean="1"/>
58                 </RegExp>
59         </ParseMBLifeSpan>
60
61         <GetMBFallbackLafeSpanByMBID dest="5" clearbuffers="no">
62                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseFallbackMBLifeSpan&quot; cache=&quot;mb-\1-artist.xml&quot;&gt;http://musicbrainz.org/ws/2/artist/\1?inc=url-rels&lt;/url&gt;&lt;/details&gt;" dest="5">
63                         <expression noclean="1" />
64                 </RegExp>
65         </GetMBFallbackLafeSpanByMBID>
66         <ParseFallbackMBLifeSpan dest="5" clearbuffers="no">
67                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
68                         <RegExp input="" output="" dest="2">
69                                 <expression />
70                         </RegExp>
71                         <RegExp input="$$1" output="&lt;born&gt;\1&lt;/born&gt;" dest="2">
72                         <expression>&lt;artist type=&quot;Person&quot;.*?&lt;life-span&gt;&lt;begin&gt;([^&lt;]*)</expression>
73                         </RegExp>
74                         <RegExp input="$$1" output="&lt;died&gt;\1&lt;/died&gt;" dest="2+">
75                         <expression>&lt;artist type=&quot;Person&quot;.*?&lt;life-span&gt;&lt;begin&gt;[^&lt;]*&lt;/begin&gt;&lt;end&gt;([^&lt;]*)</expression>
76                         </RegExp>
77                         <RegExp input="$$1" output="&lt;formed&gt;\1&lt;/formed&gt;" dest="2">
78                         <expression>&lt;artist type=&quot;Group&quot;.*?&lt;life-span&gt;&lt;begin&gt;([^&lt;]*)</expression>
79                         </RegExp>
80                         <RegExp input="$$1" output="&lt;disbanded&gt;\1&lt;/disbanded&gt;" dest="2+">
81                         <expression>&lt;artist type=&quot;Group&quot;.*?&lt;life-span&gt;&lt;begin&gt;[^&lt;]*&lt;/begin&gt;&lt;end&gt;([^&lt;]*)</expression>
82                         </RegExp>
83                         <expression noclean="1"/>
84                 </RegExp>
85         </ParseFallbackMBLifeSpan>
86
87         <GetMBAlbumTitleByMBID dest="5">
88                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumTitle&quot; cache=&quot;mb-\1-album.xml&quot;&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
89                         <expression noclean="1" />
90                 </RegExp>
91         </GetMBAlbumTitleByMBID>
92         <ParseMBAlbumTitle dest="5">
93                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
94                         <RegExp input="$$1" output="&lt;musicBrainzAlbumID&gt;\1&lt;/musicBrainzAlbumID&gt;&lt;title&gt;\2&lt;/title&gt;" dest="2">
95                                 <expression noclean="1">&lt;release id=&quot;([^&quot;]*)&quot;&gt;&lt;title&gt;([^&lt;]*)&lt;</expression>
96                         </RegExp>
97                         <expression noclean="1">(.+)</expression>
98                 </RegExp>
99         </ParseMBAlbumTitle>
100
101         <GetMBAlbumArtistsByMBID dest="5">
102                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumArtists&quot; cache=&quot;mb-\1-album.xml&quot;&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
103                         <expression noclean="1" />
104                 </RegExp>
105         </GetMBAlbumArtistsByMBID>
106         <ParseMBAlbumArtists dest="5">
107                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
108                         <RegExp input="$$1" output="&lt;albumArtistCredits&gt;&lt;joinphrase&gt;\1&lt;/joinphrase&gt;&lt;musicBrainzArtistID&gt;\2&lt;/musicBrainzArtistID&gt;&lt;artist&gt;\3&lt;/artist&gt;&lt;/albumArtistCredits&gt;" dest="2">
109                                 <expression repeat="yes" noclean="1">(?:joinphrase=&quot;([^&quot;]*)&quot;&gt;)?&lt;artist\sid=&quot;([^&quot;]*)&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;</expression>
110                         </RegExp>
111                         <expression noclean="1">(.+)</expression>
112                 </RegExp>
113         </ParseMBAlbumArtists>
114
115         <GetMBAlbumArtistByMBID dest="5">
116                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumArtist&quot; cache=&quot;mb-\1-album.xml&quot;&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
117                         <expression noclean="1" />
118                 </RegExp>
119         </GetMBAlbumArtistByMBID>
120         <ParseMBAlbumArtist dest="5">
121                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
122                         <RegExp input="$$1" output="&lt;artist&gt;\1&lt;/artist&gt;" dest="2">
123                                 <expression noclean="1">&lt;artist id=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;</expression>
124                         </RegExp>
125                         <expression noclean="1">(.+)</expression>
126                 </RegExp>
127         </ParseMBAlbumArtist>
128
129         <GetMBAlbumRatingByMBID dest="5">
130                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumRating&quot; cache=&quot;mb-\1-album.xml&quot;&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
131                         <expression noclean="1" />
132                 </RegExp>
133         </GetMBAlbumRatingByMBID>
134         <ParseMBAlbumRating dest="5">
135                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
136                         <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="2">
137                                 <expression noclean="1">&lt;/primary-type&gt;&lt;rating votes-count="[^"]*"&gt;(\d)</expression>
138                         </RegExp>
139                         <expression noclean="1">(.+)</expression>
140                 </RegExp>
141         </ParseMBAlbumRating>
142
143         <GetMBAlbumLabelByMBID dest="5">
144                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumLabel&quot; cache=&quot;mb-\1-album.xml&quot;&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
145                         <expression noclean="1" />
146                 </RegExp>
147         </GetMBAlbumLabelByMBID>
148         <ParseMBAlbumLabel dest="5">
149                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
150                         <RegExp input="$$1" output="&lt;label&gt;\1&lt;/label&gt;" dest="2">
151                                 <expression noclean="1">&lt;label id=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)</expression>
152                         </RegExp>
153                         <expression noclean="1">(.+)</expression>
154                 </RegExp>
155         </ParseMBAlbumLabel>
156
157         <GetMBAlbumDateByMBID dest="5">
158                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumDate&quot; cache=&quot;mb-\1-album.xml&quot;&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
159                         <expression noclean="1" />
160                 </RegExp>
161         </GetMBAlbumDateByMBID>
162         <ParseMBAlbumDate dest="5">
163                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
164                         <RegExp input="$$1" output="&lt;releasedate&gt;\1&lt;/releasedate&gt;" dest="2">
165                                 <expression noclean="1">&lt;first-release-date&gt;([^&lt;]*)&lt;</expression>
166                         </RegExp>
167                         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="2+">
168                                 <expression noclean="1">&lt;first-release-date&gt;(\d{4})</expression>
169                         </RegExp>
170                         <expression noclean="1" />
171                 </RegExp>
172         </ParseMBAlbumDate>
173
174         <GetMBAlbumTracksByMBID dest="5">
175                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumTracks&quot; cache=&quot;mb-\1-album.xml&quot;&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
176                         <expression noclean="1" />
177                 </RegExp>
178         </GetMBAlbumTracksByMBID>
179         <ParseMBAlbumTracks dest="5">
180                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
181                         <RegExp input="$$1" output="&lt;track&gt;&lt;position&gt;\1&lt;/position&gt;&lt;title&gt;\4&lt;/title&gt;&lt;duration&gt;\2&lt;/duration&gt;&lt;/track&gt;" dest="2">
182                                 <expression repeat="yes">&lt;track[^&gt;]+&gt;&lt;position&gt;(\d+)&lt;/position&gt;&lt;number&gt;\d*&lt;/number&gt;(?:&lt;length&gt;(\d*?)\d{3}&lt;/length&gt;)*(?:&lt;recording id=&quot;([^&quot;]*)&quot;&gt;)*&lt;title&gt;([^&lt;]*)&lt;</expression>
183                         </RegExp>
184                         <expression noclean="1">(.+)</expression>
185                 </RegExp>
186         </ParseMBAlbumTracks>
187
188 </scraperfunctions>