Merge pull request #26290 from garbear/peripheral-improvements
[xbmc.git] / addons / metadata.artists.universal / artistuniversal.xml
blob9f3164fb2b8b8b107f187d2ba829fba56f14b07b
1 <?xml version="1.0" encoding="UTF-8"?>
2 <scraper framework="1.1" date="2013-05-29">
3         <NfoUrl dest="3">
4                 <RegExp input="$$1" output="&lt;url&gt;$INFO[mbsite]/ws/2/artist/\1?inc=url-rels&lt;/url&gt;" dest="3">
5                         <expression>musicbrainz.org/artist/(.+)</expression>
6                 </RegExp>
7         </NfoUrl>
8         <ResolveIDToUrl dest="3">
9                 <RegExp input="$$1" output="&lt;url&gt;$INFO[mbsite]/ws/2/artist/\1?inc=url-rels&lt;/url&gt;" dest="3">
10                         <expression>(.+)</expression>
11                 </RegExp>
12         </ResolveIDToUrl>
14         <CreateArtistSearchUrl dest="3">
15                 <RegExp input="$$1" output="&lt;url&gt;$INFO[mbsite]/ws/2/artist/?fmt=xml&amp;query=artist:&quot;$$4&quot;&amp;limit=100&lt;/url&gt;" dest="3">
16                         <RegExp input="$$1" output="\1" dest="4">
17                                 <expression noclean="1">(.+)</expression>
18                         </RegExp>
19                         <RegExp input="$$1" output="\1" dest="6">
20                                 <expression noclean="1">(.+)(?:Ft%2e|Feat%2e|%20Ft\.|%20Feat\.|%20and%20)</expression>
21                         </RegExp>
22                         <RegExp input="$$6" output="\1" dest="4">
23                                 <expression>(.+)</expression>
24                         </RegExp>
25                         <expression/>
26                 </RegExp>
27         </CreateArtistSearchUrl>
28         <GetArtistSearchResults dest="8">
29                 <RegExp input="$$5" output="&lt;results sorted=&quot;yes&quot;&gt;\1&lt;/results&gt;" dest="8">
30                         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;disambiguation&gt;\4&lt;/disambiguation&gt;&lt;url cache=&quot;mb-\1-artist.xml&quot;&gt;$INFO[mbsite]/ws/2/artist/\1?inc=url-rels&lt;/url&gt;&lt;/entity&gt;" dest="9">
31                                 <expression repeat="yes" noclean="1">artist\sid=&quot;([^&quot;]*)&quot;(?:\stype=&quot;[^&quot;]*&quot;)*(?:\stype-id=&quot;[^&quot;]*&quot;)*?\s.*?score=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;/name&gt;(&lt;sort-name&gt;[^&lt;]*&lt;/sort-name&gt;)?(?:&lt;gender&gt;[^&lt;]*&lt;/gender&gt;)*(?:&lt;country&gt;[^&lt;]*&lt;/country&gt;)*(?:&lt;area.*?&lt;/area&gt;)*(?:&lt;begin-area.*?&lt;/begin-area&gt;)*(?:&lt;disambiguation&gt;(.*?)&lt;/disambiguation&gt;)*</expression>
32                         </RegExp>
33                         <RegExp input="$$9" output="\1" dest="5">
34                                 <expression noclean="1">(.+)</expression>
35                         </RegExp>
36                         <expression noclean="1"/>
37                 </RegExp>
38         </GetArtistSearchResults>
39         <GetArtistDetails dest="3" clearbuffers="no">
40                 <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
41                         <!--MBID - Artist-->
42                         <RegExp input="$$1" output="\1" dest="5">
43                                 <expression noclean="1">&lt;artist(.*?)&lt;name&gt;([^&lt;]*)</expression>
44                         </RegExp>
45                         <RegExp input="$$5" output="\1" dest="8">
46                                 <expression noclean="1">\sid=&quot;([^&quot;]*)&quot;</expression>
47                         </RegExp>
48                         <!--AMGID - Artist-->
49                         <RegExp input="$$1" output="\2" dest="9">
50                                 <expression noclean="1">&gt;http.?://(www.)?allmusic.com/artist/([^&lt;]*)</expression>
51                         </RegExp>
52                         <RegExp input="$$1" output="&lt;musicBrainzArtistID&gt;$$8&lt;/musicBrainzArtistID&gt;&lt;name&gt;\1&lt;/name&gt;" dest="5">
53                                 <expression noclean="1">&lt;artist.*?&lt;name&gt;([^&lt;]*)</expression>
54                         </RegExp>
55                         <RegExp input="$$1" output="&lt;sortname&gt;\1&lt;/sortname&gt;" dest="5+">
56                                 <expression noclean="1">&lt;artist.*?&lt;sort-name&gt;([^&lt;]*)</expression>
57                         </RegExp>
58                         <RegExp input="$$1" output="&lt;type&gt;\1&lt;/type&gt;" dest="5+">
59                                 <expression noclean="1">&lt;artist.*?\stype=&quot;(Person|Group|Orchestra|Choir|Character|Other)&quot;</expression>
60                         </RegExp>
61                         <RegExp input="$$1" output="&lt;gender&gt;\1&lt;/gender&gt;" dest="5+">
62                                 <expression noclean="1">&lt;gender.*?&gt;([^&lt;]*)</expression>
63                         </RegExp>
64                         <RegExp input="$$1" output="&lt;disambiguation&gt;\1&lt;/disambiguation&gt;" dest="5+">
65                                 <expression noclean="1">&lt;disambiguation&gt;([^&lt;]*)</expression>
66                         </RegExp>
67                         <RegExp input="$$8" conditional="fanarttvthumbs" output="&lt;chain function=&quot;GetFanartTvArtistThumbsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
68                                 <expression noclean="1">(.+)</expression>
69                         </RegExp>
70                         <RegExp input="$$8" conditional="fanarttvartistcl" output="&lt;chain function=&quot;GetFanartTvArtistClearlogoByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
71                                 <expression noclean="1">(.+)</expression>
72                         </RegExp>
73                         <RegExp input="$$8" conditional="fanarttvartistbanner" output="&lt;chain function=&quot;GetFanartTvArtistBannerByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
74                                 <expression noclean="1">(.+)</expression>
75                         </RegExp>
76                         <RegExp input="$$8" conditional="tadbthumbs" output="&lt;chain function=&quot;GetTADBArtistThumbsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
77                                 <expression noclean="1">(.+)</expression>
78                         </RegExp>
79                         <RegExp input="$$8" conditional="tadbartistclearlogo" output="&lt;chain function=&quot;GetTADBArtistClearlogoByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
80                                 <expression noclean="1">(.+)</expression>
81                         </RegExp>
82                         <RegExp input="$$8" conditional="tadbartistclearart" output="&lt;chain function=&quot;GetTADBArtistClearartByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
83                                 <expression noclean="1">(.+)</expression>
84                         </RegExp>
85                         <RegExp input="$$8" conditional="tadbartistlandscape" output="&lt;chain function=&quot;GetTADBArtistLandscapeByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
86                                 <expression noclean="1">(.+)</expression>
87                         </RegExp>
88                         <RegExp input="$$8" conditional="tadbartistbanner" output="&lt;chain function=&quot;GetTADBArtistBannerByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
89                                 <expression noclean="1">(.+)</expression>
90                         </RegExp>
91                         <RegExp input="$$8" conditional="fanarttvfanart" output="&lt;chain function=&quot;GetFanartTvArtistFanartsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
92                                 <expression noclean="1">(.+)</expression>
93                         </RegExp>
94                         <RegExp input="$$8" conditional="tadbfanart" output="&lt;chain function=&quot;GetTADBArtistFanartsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
95                                 <expression noclean="1">(.+)</expression>
96                         </RegExp>
97                         <RegExp input="$$9" output="&lt;chain function=&quot;GetAMGData&quot;&gt;\1&lt;/chain&gt;" dest="5+">
98                                 <expression noclean="1">(.+)</expression>
99                         </RegExp>
100                         <RegExp input="$$9" output="&lt;chain function=&quot;AMGFallback&quot;&gt;\1&lt;/chain&gt;" dest="5+">
101                                 <expression noclean="1">^$</expression>
102                         </RegExp>
103                         <RegExp input="$INFO[discogsource]" output="&lt;chain function=&quot;GetMBDiscographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
104                                 <expression>MusicBrainz</expression>
105                         </RegExp>
106                         <RegExp input="$INFO[lifespansource]" output="&lt;chain function=&quot;GetMBLafeSpanByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
107                                 <expression>MusicBrainz</expression>
108                         </RegExp>
109                         <RegExp input="$INFO[biogsource]" output="&lt;chain function=&quot;GetTADBBiographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
110                                 <expression>TheAudioDb.com</expression>
111                         </RegExp>
112                         <RegExp input="$INFO[genressource]" output="&lt;chain function=&quot;GetTADBArtistGenresByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
113                                 <expression>TheAudioDb.com</expression>
114                         </RegExp>
115                         <RegExp input="$INFO[stylessource]" output="&lt;chain function=&quot;GetTADBArtistStylesByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
116                                 <expression>TheAudioDb.com</expression>
117                         </RegExp>
118                         <RegExp input="$INFO[moodssource]" output="&lt;chain function=&quot;GetTADBArtistMoodsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
119                                 <expression>TheAudioDb.com</expression>
120                         </RegExp>
121                         <RegExp input="$INFO[discogsource]" output="&lt;chain function=&quot;GetTADBDiscographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
122                                 <expression>TheAudioDb.com</expression>
123                         </RegExp>
124                         <RegExp input="$INFO[lifespansource]" output="&lt;chain function=&quot;GetTADBLifeSpanByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
125                                 <expression>TheAudioDb.com</expression>
126                         </RegExp>
127                         <expression noclean="1"/>
128                 </RegExp>
129         </GetArtistDetails>
131         <GetAMGData dest="5" clearbuffers="no">
132                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
133                         <RegExp input="$$1" output="\1" dest="9">
134                                 <expression/>
135                         </RegExp>
136                         <RegExp input="" output="" dest="2">
137                                 <expression />
138                         </RegExp>
139                         <RegExp input="$INFO[discogsource]" output="&lt;chain function=&quot;GetAMGDiscographyByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2">
140                                 <expression>allmusic.com</expression>
141                         </RegExp>
142                         <RegExp input="$INFO[lifespansource]" output="&lt;chain function=&quot;GetAMGArtistLifeSpanByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
143                                 <expression>allmusic.com</expression>
144                         </RegExp>
145                         <RegExp input="$INFO[biogsource]" output="&lt;chain function=&quot;GetAMGBiographyByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
146                                 <expression>allmusic.com</expression>
147                         </RegExp>
148                         <RegExp input="$INFO[genressource]" output="&lt;chain function=&quot;GetAMGArtistGenresByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
149                                 <expression>allmusic.com</expression>
150                         </RegExp>
151                         <RegExp input="$INFO[stylessource]" output="&lt;chain function=&quot;GetAMGArtistStylesByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
152                                 <expression>allmusic.com</expression>
153                         </RegExp>
154                         <RegExp input="$INFO[moodssource]" output="&lt;chain function=&quot;GetAMGArtistMoodsByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
155                                 <expression>allmusic.com</expression>
156                         </RegExp>
157                         <RegExp input="$INFO[yearsasource]" output="&lt;chain function=&quot;GetAMGArtistYearsActiveByAMGID&quot;&gt;$$9&lt;/chain&gt;" dest="2+">
158                                 <expression>allmusic.com</expression>
159                         </RegExp>
160                         <expression noclean="1" />
161                 </RegExp>
162         </GetAMGData>
164         <AMGFallback dest="5" clearbuffers="no">
165                 <RegExp input="$$11" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
166                         <RegExp input="$INFO[discogfbsource]" output="&lt;chain function=&quot;GetMBDiscographyByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="11+">
167                                 <expression>MusicBrainz</expression>
168                         </RegExp>
169                         <RegExp input="$INFO[lifespanfbsource]" output="&lt;chain function=&quot;GetMBLafeSpanByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="11+">
170                                 <expression>MusicBrainz</expression>
171                         </RegExp>
172                         <RegExp input="$INFO[stylesfbsource]" output="&lt;chain function=&quot;GetTADBArtistStylesByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
173                                 <expression>TheAudioDb.com</expression>
174                         </RegExp>
175                         <RegExp input="$INFO[moodsfbsource]" output="&lt;chain function=&quot;GetTADBArtistMoodsByMBID&quot;&gt;$$8&lt;/chain&gt;" dest="5+">
176                                 <expression>TheAudioDb.com</expression>
177                         </RegExp>
178                         <expression noclean="1" />
179                 </RegExp>
180         </AMGFallback>
182 </scraper>