9a90ff04c5f06ddd3f77cdd8429a3d64b79cff16
[vuplus_xbmc] / addons / metadata.album.universal / albumuniversal.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <scraper framework="1.1" date="2012-06-09">
3         <NfoUrl dest="3">
4                 <RegExp input="$$1" output="&lt;url&gt;http://musicbrainz.org/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;" dest="3">
5                         <expression>release/(.+)</expression>
6                 </RegExp>
7         </NfoUrl>
8         <CreateAlbumSearchUrl dest="3">
9                 <RegExp input="$$1" output="&lt;url&gt;http://search.musicbrainz.org/ws/2/release/?fmt=xml&amp;query=release:&quot;\1&quot;%20AND%20artist:&quot;$$2&quot;&lt;/url&gt;" dest="3">
10                         <RegExp input="$$2" output="\1" dest="4">
11                                 <expression noclean="1">(.+)</expression>
12                         </RegExp>
13                         <RegExp input="$$2" output="\1" dest="6">
14                                 <expression noclean="1">(.+)(?:Ft%2e|Feat%2e|Ft.|Feat.|%20and%20)</expression>
15                         </RegExp>
16                         <RegExp input="$$6" output="\1" dest="4">
17                                 <expression>(.+)</expression>
18                         </RegExp>
19                         <expression/>
20                 </RegExp>
21         </CreateAlbumSearchUrl>
22         <GetAlbumSearchResults dest="8">
23                 <RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
24                         <RegExp input="$$1" output="&lt;entity&gt;&lt;year&gt;\5-\4-T#\6&lt;/year&gt;&lt;artist&gt;\3&lt;/artist&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url 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;/entity&gt;" dest="5">
25                                 <expression repeat="yes">id=&quot;([^&quot;]*)&quot;&gt;&lt;title&gt;([^&lt;]*)&lt;/title&gt;&lt;status&gt;Official&lt;/status&gt;&lt;text-representation&gt;&lt;language&gt;[^&lt;]*&lt;/language&gt;&lt;script&gt;[^&lt;]*&lt;/script&gt;&lt;/text-representation&gt;&lt;artist-credit&gt;&lt;name-credit(?:&gt;)*(?:\sjoinphrase=&quot;[^&quot;]*&quot;&gt;)*(?:&lt;name&gt;[^&lt;]*&lt;/name)*(?:&gt;)*&lt;artist\sid=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;/name&gt;(?:&lt;sort-name&gt;[^&lt;]*&lt;/sort-name&gt;)*(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;alias-list&gt;.*?&lt;/alias-list&gt;)*&lt;/artist&gt;&lt;/name-credit&gt;(?:&lt;name-credit(?:&gt;)*(?:\sjoinphrase=&quot;[^&quot;]*&quot;&gt;)*(?:&lt;name&gt;[^&lt;]*&lt;/name)*(?:&gt;)*&lt;artist\sid=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;[^&lt;]*&lt;/name&gt;(?:&lt;sort-name&gt;[^&lt;]*&lt;/sort-name&gt;)*(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;alias-list&gt;.*?&lt;/alias-list&gt;)*&lt;/artist&gt;&lt;/name-credit&gt;)*&lt;/artist-credit&gt;&lt;release-group\stype=&quot;Album&quot;\sid=&quot;[^&quot;]*&quot;&gt;(?:&lt;primary-type&gt;[^&lt;]*&lt;/primary-type&gt;)*(?:&lt;secondary-type-list&gt;&lt;secondary-type&gt;[^&lt;]*&lt;/secondary-type&gt;&lt;/secondary-type-list&gt;)*&lt;/release-group&gt;&lt;date&gt;(\d{4})[^&lt;]*&lt;/date&gt;(?:&lt;country&gt;)*([^&lt;]*)?.*?&lt;track-list\scount=&quot;(\d+)</expression>
26                         </RegExp>
27                         <RegExp input="$$1" output="&lt;entity&gt;&lt;year&gt;\5-\4-T#\6&lt;/year&gt;&lt;artist&gt;\3&lt;/artist&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url 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;/entity&gt;" dest="5+">
28                                 <expression repeat="yes">id=&quot;([^&quot;]*)&quot;&gt;&lt;title&gt;([^&lt;]*)&lt;/title&gt;&lt;status&gt;Official&lt;/status&gt;&lt;text-representation&gt;&lt;language&gt;[^&lt;]*&lt;/language&gt;&lt;script&gt;[^&lt;]*&lt;/script&gt;&lt;/text-representation&gt;&lt;artist-credit&gt;&lt;name-credit(?:&gt;)*(?:\sjoinphrase=&quot;[^&quot;]*&quot;&gt;)*(?:&lt;name&gt;[^&lt;]*&lt;/name)*(?:&gt;)*&lt;artist\sid=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;/name&gt;(?:&lt;sort-name&gt;[^&lt;]*&lt;/sort-name&gt;)*(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;alias-list&gt;.*?&lt;/alias-list&gt;)*&lt;/artist&gt;&lt;/name-credit&gt;(?:&lt;name-credit(?:&gt;)*(?:\sjoinphrase=&quot;[^&quot;]*&quot;&gt;)*(?:&lt;name&gt;[^&lt;]*&lt;/name)*(?:&gt;)*&lt;artist\sid=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;[^&lt;]*&lt;/name&gt;(?:&lt;sort-name&gt;[^&lt;]*&lt;/sort-name&gt;)*(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;alias-list&gt;.*?&lt;/alias-list&gt;)*&lt;/artist&gt;&lt;/name-credit&gt;)*&lt;/artist-credit&gt;&lt;release-group(?:\stype=&quot;[^&quot;]*&quot;)*\sid=&quot;[^&quot;]*&quot;&gt;(?:&lt;primary-type&gt;[^&lt;]*&lt;/primary-type&gt;)*(?:&lt;secondary-type-list&gt;&lt;secondary-type&gt;[^&lt;]*&lt;/secondary-type&gt;&lt;/secondary-type-list&gt;)*&lt;/release-group&gt;&lt;date&gt;(\d{4})[^&lt;]*&lt;/date&gt;(?:&lt;country&gt;)*([^&lt;]*)?.*?&lt;track-list\scount=&quot;(\d+)</expression>
29                         </RegExp>
30                         <expression noclean="1" />
31                 </RegExp>
32         </GetAlbumSearchResults>
33         <GetAlbumDetails dest="3">
34                 <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
35                         <!--MBID - release-->
36                         <RegExp input="$$1" output="\1" dest="3">
37                                 <expression>id=&quot;([^&quot;]*)</expression>
38                         </RegExp>
39                         <!--MBID - release group-->
40                         <RegExp input="$$1" output="\1" dest="4">
41                                 <expression>&lt;release-group type=&quot;[^&quot;]*&quot; id=&quot;([^&quot;]*)&quot;</expression>
42                         </RegExp>
43                         <!--Album title-->
44                         <RegExp input="$$1" output="\1" dest="7">
45                                 <expression trim="1">&lt;release id=&quot;[^&quot;]*&quot;&gt;&lt;title&gt;([^&lt;]*)&lt;</expression>
46                         </RegExp>
47                         <!--Artist name-->
48                         <RegExp input="$$1" output="\1" dest="8">
49                                 <expression trim="1">&lt;release id=&quot;[^&quot;]*&quot;&gt;&lt;title&gt;[^&lt;]*&lt;.*?&lt;artist id=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;</expression>
50                         </RegExp>
51                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumTitleByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5">
52                                 <expression noclean="1">(.+)</expression>
53                         </RegExp>
54                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumArtistByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
55                                 <expression noclean="1">(.+)</expression>
56                         </RegExp>
57                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumLabelByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
58                                 <expression noclean="1">(.+)</expression>
59                         </RegExp>
60                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumDateByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
61                                 <expression noclean="1">(.+)</expression>
62                         </RegExp>
63                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumTracksByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
64                                 <expression noclean="1">(.+)</expression>
65                         </RegExp>
66                         <RegExp input="$INFO[albumreviewsource]" output="&lt;url function=&quot;GetAMGAlbumReview&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;http://musicbrainz.org/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
67                                 <expression>allmusic.com</expression>
68                         </RegExp>
69                         <RegExp input="$INFO[albumreviewsource]" output="&lt;chain function=&quot;GetLastFMAlbumReviewByAlbumAndArtist&quot;&gt;$$7::$$8::$$7::$$8&lt;/chain&gt;" dest="5+">
70                                 <expression>last.fm</expression>
71                         </RegExp>
72                         <RegExp input="$INFO[albumreviewsource]" output="&lt;url function=&quot;GetAmazonDEAlbumReview&quot;&gt;http://musicbrainz.org/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
73                                 <expression>amazon.de</expression>
74                         </RegExp>
75                         <RegExp input="$INFO[albumratingsource]" output="&lt;chain function=&quot;GetMBAlbumRatingByMBID&quot;&gt;$$3&lt;/chain&gt;" dest="5+">
76                                 <expression>MusicBrainz</expression>
77                         </RegExp>
78                         <RegExp input="$INFO[albumratingsource]" output="&lt;url function=&quot;GetAMGAlbumRating&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;http://musicbrainz.org/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
79                                 <expression>allmusic.com</expression>
80                         </RegExp>
81                         <RegExp input="$INFO[albumstylessource]" output="&lt;url function=&quot;GetAMGAlbumStyles&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;http://musicbrainz.org/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
82                                 <expression>allmusic.com</expression>
83                         </RegExp>
84                         <RegExp input="$INFO[albummoodssource]" output="&lt;url function=&quot;GetAMGAlbumMoods&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;http://musicbrainz.org/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
85                                 <expression>allmusic.com</expression>
86                         </RegExp>
87                         <RegExp input="$INFO[albumthemessource]" output="&lt;url function=&quot;GetAMGAlbumThemes&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;http://musicbrainz.org/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
88                                 <expression>allmusic.com</expression>
89                         </RegExp>
90                         <RegExp conditional="fanarttvalbumthumbs" input="$$1" output="&lt;chain function=&quot;GetFanartTvAlbumThumbsByMBID&quot;&gt;$$4&lt;/chain&gt;" dest="5+">
91                                 <expression noclean="1" />
92                         </RegExp>
93                         <RegExp conditional="allmusicalbumthumbs" input="$$1" output="&lt;url function=&quot;GetAMGAlbumThumbs&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;http://musicbrainz.org/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
94                                 <expression noclean="1" />
95                         </RegExp>
96                         <RegExp conditional="lastfmalbumthumbs" input="$$1" output="&lt;chain function=&quot;GetLastFMAlbumThumbs&quot;&gt;$$7::$$8::$$7::$$8&lt;/chain&gt;" dest="5+">
97                                 <expression noclean="1" />
98                         </RegExp>
99                         <expression noclean="1" />
100                 </RegExp>
101         </GetAlbumDetails>
102
103         <GetAMGAlbumReview dest="5">
104                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
105                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumReviewByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
106                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
107                         </RegExp>
108                         <expression noclean="1" />
109                 </RegExp>
110         </GetAMGAlbumReview>
111
112         <GetAMGAlbumRating dest="5">
113                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
114                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumRatingByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
115                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
116                         </RegExp>
117                         <expression noclean="1" />
118                 </RegExp>
119         </GetAMGAlbumRating>
120
121         <GetAMGAlbumStyles dest="5">
122                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
123                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumStylesByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
124                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
125                         </RegExp>
126                         <expression noclean="1" />
127                 </RegExp>
128         </GetAMGAlbumStyles>
129
130         <GetAMGAlbumMoods dest="5">
131                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
132                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumMoodsByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
133                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
134                         </RegExp>
135                         <expression noclean="1" />
136                 </RegExp>
137         </GetAMGAlbumMoods>
138
139         <GetAMGAlbumThemes dest="5">
140                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
141                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumThemesByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
142                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
143                         </RegExp>
144                         <expression noclean="1" />
145                 </RegExp>
146         </GetAMGAlbumThemes>
147
148         <GetAMGAlbumThumbs dest="5">
149                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
150                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumThumbsByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
151                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
152                         </RegExp>
153                         <expression noclean="1" />
154                 </RegExp>
155         </GetAMGAlbumThumbs>
156
157         <GetAmazonDEAlbumReview dest="5">
158                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
159                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAmazonDEAlbumReviewByASIN&quot;&gt;\1&lt;/chain&gt;" dest="2">
160                                 <expression noclean="1">http://www.amazon.de/gp/product/([^&lt;]*)</expression>
161                         </RegExp>
162                         <expression noclean="1" />
163                 </RegExp>
164         </GetAmazonDEAlbumReview>
165
166 </scraper>