Merge pull request #25959 from neo1973/TagLib_deprecation_warnings
[xbmc.git] / addons / metadata.common.musicbrainz.org / musicbrainz.xml
blobf086f6af3515bfc68969212894c20ded3a46bf3f
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;$INFO[mbsite]/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;\5&lt;/year&gt;&lt;title&gt;\3&lt;/title&gt;&lt;musicbrainzreleasegroupid&gt;\1&lt;/musicbrainzreleasegroupid&gt;&lt;/album&gt;" dest="2">
14                                 <expression repeat="yes" clear="yes" noclean="1,2,3">(?:\stype-id=&quot;[^&quot;]*&quot;)?(?:\sid=&quot;([^&quot;]*)&quot;)?\stype=&quot;Album&quot;(?:\stype-id=&quot;[^&quot;]*&quot;)?(?:\sid=&quot;([^&quot;]*)&quot;)?&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>
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;$INFO[mbsite]/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\sid[^>]*type=&quot;Person&quot;.*?&lt;life-span&gt;\s*&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\sid[^>]*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\sid[^>]*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\sid[^>]*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>
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;$INFO[mbsite]/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>
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;$INFO[mbsite]/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                         <!--MBID - release group-->
98                         <RegExp input="$$1" output="&lt;musicbrainzreleasegroupid&gt;\1&lt;/musicbrainzreleasegroupid&gt;" dest="2+">
99                                 <expression noclean="1">&lt;release-group\stype=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
100                         </RegExp>
101                         <RegExp input="$$1" output="&lt;musicbrainzreleasegroupid&gt;\1&lt;/musicbrainzreleasegroupid&gt;" dest="2+">
102                                 <expression noclean="1">&lt;release-group\stype=&quot;[^&quot;]*&quot;\stype-id=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
103                         </RegExp>
104                         <RegExp input="$$1" output="&lt;musicbrainzreleasegroupid&gt;\1&lt;/musicbrainzreleasegroupid&gt;" dest="2+">
105                                 <expression noclean="1">&lt;release-group\sid=&quot;([^&quot;]*)&quot;\stype=&quot;[^&quot;]*&quot;</expression>
106                         </RegExp>
107                         <RegExp input="$$1" output="&lt;musicbrainzreleasegroupid&gt;\1&lt;/musicbrainzreleasegroupid&gt;" dest="2+">
108                                 <expression noclean="1">&lt;release-group\sid=&quot;([^&quot;]*)&quot;\stype-id=&quot;[^&quot;]*&quot;</expression>
109                         </RegExp>
110                         <RegExp input="$$1" output="&lt;musicbrainzreleasegroupid&gt;\1&lt;/musicbrainzreleasegroupid&gt;" dest="2+">
111                                 <expression noclean="1">&lt;release-group\stype-id=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
112                         </RegExp>
113                         <RegExp input="$$1" output="&lt;musicbrainzreleasegroupid&gt;\1&lt;/musicbrainzreleasegroupid&gt;" dest="2+">
114                                 <expression noclean="1">&lt;release-group\stype-id=&quot;[^&quot;]*&quot;\stype=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
115                         </RegExp>
116                         <RegExp input="$$1" output="&lt;scrapedmbid&gt;\1&lt;/scrapedmbid&gt;" dest="2+">
117                                 <expression noclean="1" />
118                         </RegExp>
119                         <expression noclean="1">(.+)</expression>
120                 </RegExp>
121         </ParseMBAlbumTitle>
123         <GetMBAlbumArtistsByMBID dest="5">
124                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumArtists&quot; cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
125                         <expression noclean="1" />
126                 </RegExp>
127         </GetMBAlbumArtistsByMBID>
128         <ParseMBAlbumArtists dest="5">
129                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
130                         <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">
131                                 <expression repeat="yes" noclean="1">(?:joinphrase=&quot;([^&quot;]*)&quot;&gt;)?&lt;artist\sid=&quot;([^&quot;]*)&quot;.*?&lt;name&gt;([^&lt;]*)&lt;</expression>
132                         </RegExp>
133                         <expression noclean="1">(.+)</expression>
134                 </RegExp>
135         </ParseMBAlbumArtists>
137         <GetMBAlbumArtistByMBID dest="5">
138                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumArtist&quot; cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
139                         <expression noclean="1" />
140                 </RegExp>
141         </GetMBAlbumArtistByMBID>
142         <ParseMBAlbumArtist dest="5">
143                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
144                         <RegExp input="$$1" output="&lt;artist&gt;\1&lt;/artist&gt;" dest="2">
145                                 <expression noclean="1">&lt;artist id=&quot;[^&quot;]*&quot;.*?&lt;name&gt;([^&lt;]*)&lt;</expression>
146                         </RegExp>
147                         <expression noclean="1">(.+)</expression>
148                 </RegExp>
149         </ParseMBAlbumArtist>
151         <GetMBAlbumRatingByMBID dest="5">
152                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumRating&quot; cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
153                         <expression noclean="1" />
154                 </RegExp>
155         </GetMBAlbumRatingByMBID>
156         <ParseMBAlbumRating dest="5">
157                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
158                         <RegExp input="$$1" output="&lt;rating max=&quot;5.0&quot;&gt;\1&lt;/rating&gt;" dest="2">
159                                 <expression noclean="1">&lt;/primary-type&gt;&lt;rating votes-count="[^"]*"&gt;(\d)</expression>
160                         </RegExp>
161                         <expression noclean="1">(.+)</expression>
162                 </RegExp>
163         </ParseMBAlbumRating>
165         <GetMBAlbumLabelByMBID dest="5">
166                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumLabel&quot; cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
167                         <expression noclean="1" />
168                 </RegExp>
169         </GetMBAlbumLabelByMBID>
170         <ParseMBAlbumLabel dest="5">
171                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
172                         <RegExp input="$$1" output="&lt;label&gt;\1&lt;/label&gt;" dest="2">
173                                 <expression noclean="1">&lt;label id=&quot;[^&quot;]*&quot;.*?&lt;name&gt;([^&lt;]*)</expression>
174                         </RegExp>
175                         <expression noclean="1">(.+)</expression>
176                 </RegExp>
177         </ParseMBAlbumLabel>
179         <GetMBAlbumDateByMBID dest="5">
180                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumDate&quot; cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
181                         <expression noclean="1" />
182                 </RegExp>
183         </GetMBAlbumDateByMBID>
184         <ParseMBAlbumDate dest="5">
185                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
186                         <RegExp input="$$1" output="&lt;releasedate&gt;\1&lt;/releasedate&gt;" dest="2">
187                                 <expression noclean="1">&lt;first-release-date&gt;([^&lt;]*)&lt;</expression>
188                         </RegExp>
189                         <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="2+">
190                                 <expression noclean="1">&lt;first-release-date&gt;(\d{4})</expression>
191                         </RegExp>
192                         <expression noclean="1" />
193                 </RegExp>
194         </ParseMBAlbumDate>
196         <GetMBAlbumTracksByMBID dest="5">
197                 <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;ParseMBAlbumTracks&quot; cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;&lt;/details&gt;" dest="5">
198                         <expression noclean="1" />
199                 </RegExp>
200         </GetMBAlbumTracksByMBID>
201         <ParseMBAlbumTracks dest="5">
202                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
203                         <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">
204                                 <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>
205                         </RegExp>
206                         <expression noclean="1">(.+)</expression>
207                 </RegExp>
208         </ParseMBAlbumTracks>
210 </scraperfunctions>