[Video] Define more PCM AV_CODEC_ID for codec name formatting
[xbmc.git] / addons / metadata.album.universal / albumuniversal.xml
blobc16246d88f0dfc3744a45e73a5553a3c06af0821
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 cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/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         <ResolveIDToUrl dest="3">
9                 <RegExp input="$$1" output="&lt;url cache=&quot;mb-\1-album.xml&quot;&gt;$INFO[mbsite]/ws/2/release/\1?inc=recordings+release-groups+artists+labels+ratings&lt;/url&gt;" dest="3">
10                         <expression>(.+)</expression>
11                 </RegExp>
12         </ResolveIDToUrl>
13         <CreateAlbumSearchUrl dest="3">
14                 <RegExp input="$$1" output="&lt;url&gt;$INFO[mbsite]/ws/2/release/?fmt=xml&amp;query=release:%22\1%22%20AND%20(artistname:%22$$4%22%20OR%20artist:%22$$4%22)&lt;/url&gt;" dest="3">
15                         <RegExp input="$$2" output="\1" dest="4">
16                                 <expression noclean="1">(.+)</expression>
17                         </RegExp>
18                         <RegExp input="$$2" output="\1" dest="6">
19                                 <expression noclean="1">(.+)(?:Ft%2e|Feat%2e|%20Ft\.|%20Feat\.|%20and%20|%20\/)</expression>
20                         </RegExp>
21                         <RegExp input="$$6" output="\1" dest="4">
22                                 <expression>(.+)</expression>
23                         </RegExp>
24                         <expression/>
25                 </RegExp>
26         </CreateAlbumSearchUrl>
27         <GetAlbumSearchResults dest="8">
28                 <RegExp input="$$5" output="&lt;results sorted=&quot;yes&quot;&gt;\1&lt;/results&gt;" dest="8">
29                         <RegExp input="$$1" output="&lt;entity&gt;&lt;year&gt;\6-\5-T#\7&lt;/year&gt;&lt;artist&gt;\4&lt;/artist&gt;&lt;title&gt;\3&lt;/title&gt;&lt;relevance scale=&quot;100&quot;&gt;\2&lt;/relevance&gt;&lt;url 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;/entity&gt;" dest="5">
30                                 <expression repeat="yes">release\sid=&quot;([^&quot;]*)&quot;[^:]*:score=&quot;(\d*)&quot;&gt;&lt;title&gt;([^&lt;]*)&lt;/title&gt;&lt;status\sid[^&gt;]*&gt;Official&lt;/status&gt;(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;packaging[^&lt;]*&lt;/packaging&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[^&lt;]*&lt;/alias&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[^&lt;]*&lt;/alias&gt;)*&lt;/alias-list&gt;)*&lt;/artist&gt;&lt;/name-credit&gt;)*&lt;/artist-credit&gt;&lt;release-group\sid=&quot;[^&quot;]*&quot;\stype=&quot;Album&quot;\stype-id=&quot;[^&quot;]*&quot;&gt;&lt;title&gt;[^&lt;]*&lt;/title&gt;(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;primary-type\sid=&quot;[^&quot;]*&quot;&gt;[^&lt;]*&lt;/primary-type&gt;)*(?:&lt;secondary-type-list&gt;(?:&lt;secondary-type\sid=&quot;[^&quot;]*&quot;&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+).*?&lt;/release&gt;</expression>
31                         </RegExp>
32                         <RegExp input="$$1" output="&lt;entity&gt;&lt;year&gt;\6-\5-T#\7&lt;/year&gt;&lt;artist&gt;\4&lt;/artist&gt;&lt;title&gt;\3&lt;/title&gt;&lt;relevance scale=&quot;100&quot;&gt;\2&lt;/relevance&gt;&lt;url 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;/entity&gt;" dest="5+">
33                                 <expression repeat="yes">release\sid=&quot;([^&quot;]*)&quot;[^:]*:score=&quot;(\d*)&quot;&gt;&lt;title&gt;([^&lt;]*)&lt;/title&gt;&lt;status\sid[^&gt;]*&gt;Official&lt;/status&gt;(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;packaging[^&lt;]*&lt;/packaging&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[^&lt;]*&lt;/alias&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[^&lt;]*&lt;/alias&gt;)*&lt;/alias-list&gt;)*&lt;/artist&gt;&lt;/name-credit&gt;)*&lt;/artist-credit&gt;&lt;release-group\sid=&quot;[^&quot;]*&quot;\stype=&quot;[^&quot;]*&quot;\stype-id=&quot;[^&quot;]*&quot;&gt;&lt;title&gt;[^&lt;]*&lt;/title&gt;(?:&lt;disambiguation&gt;[^&lt;]*&lt;/disambiguation&gt;)*(?:&lt;primary-type\sid=&quot;[^&quot;]*&quot;&gt;[^&lt;]*&lt;/primary-type&gt;)*(?:&lt;secondary-type-list&gt;(?:&lt;secondary-type\sid=&quot;[^&quot;]*&quot;&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+).*?&lt;/release&gt;</expression>
34                         </RegExp>
35                         <expression noclean="1" />
36                 </RegExp>
37         </GetAlbumSearchResults>
38         <GetAlbumDetails dest="3">
39                 <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
40                         <!--MBID - release-->
41                         <RegExp input="$$1" output="\1" dest="3">
42                                 <expression>id=&quot;([^&quot;]*)</expression>
43                         </RegExp>
44                         <!--MBID - release group-->
45                         <RegExp input="$$1" output="\1" dest="4">
46                                 <expression>&lt;release-group\stype=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
47                         </RegExp>
48                         <RegExp input="$$1" output="\1" dest="4+">
49                                 <expression>&lt;release-group\stype=&quot;[^&quot;]*&quot;\stype-id=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
50                         </RegExp>
51                         <RegExp input="$$1" output="\1" dest="4+">
52                                 <expression>&lt;release-group\sid=&quot;([^&quot;]*)&quot;\stype=&quot;[^&quot;]*&quot;</expression>
53                         </RegExp>
54                         <RegExp input="$$1" output="\1" dest="4+">
55                                 <expression>&lt;release-group\sid=&quot;([^&quot;]*)&quot;\stype-id=&quot;[^&quot;]*&quot;</expression>
56                         </RegExp>
57                         <RegExp input="$$1" output="\1" dest="4+">
58                                 <expression>&lt;release-group\stype-id=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
59                         </RegExp>
60                         <RegExp input="$$1" output="\1" dest="4+">
61                                 <expression>&lt;release-group\stype-id=&quot;[^&quot;]*&quot;\stype=&quot;[^&quot;]*&quot;\sid=&quot;([^&quot;]*)&quot;</expression>
62                         </RegExp>
63                         <!--Album title-->
64                         <RegExp input="$$1" output="\1" dest="7">
65                                 <expression trim="1">&lt;release\sid=&quot;[^&quot;]*&quot;&gt;&lt;title&gt;([^&lt;]*)&lt;</expression>
66                         </RegExp>
67                         <!--Artist name-->
68                         <RegExp input="$$1" output="\1" dest="8">
69                                 <expression trim="1">&lt;release\sid=&quot;[^&quot;]*&quot;&gt;&lt;title&gt;[^&lt;]*&lt;.*?&lt;artist\sid=&quot;[^&quot;]*&quot;&gt;&lt;name&gt;([^&lt;]*)&lt;</expression>
70                         </RegExp>
71                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumTitleByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5">
72                                 <expression noclean="1">(.+)</expression>
73                         </RegExp>
74                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumArtistsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
75                                 <expression noclean="1">(.+)</expression>
76                         </RegExp>
77                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumArtistByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
78                                 <expression noclean="1">(.+)</expression>
79                         </RegExp>
80                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumLabelByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
81                                 <expression noclean="1">(.+)</expression>
82                         </RegExp>
83                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumDateByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
84                                 <expression noclean="1">(.+)</expression>
85                         </RegExp>
86                         <RegExp input="$$3" output="&lt;chain function=&quot;GetMBAlbumTracksByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
87                                 <expression noclean="1">(.+)</expression>
88                         </RegExp>
89                         <RegExp input="$INFO[albumreviewsource]" output="&lt;url function=&quot;GetAMGAlbumReview&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
90                                 <expression>allmusic.com</expression>
91                         </RegExp>
92                         <RegExp input="$INFO[albumreviewsource]" output="&lt;chain function=&quot;GetTADBAlbumReviewByMBID&quot;&gt;$$4&lt;/chain&gt;" dest="5+">
93                                 <expression>TheAudioDb.com</expression>
94                         </RegExp>
95                         <RegExp input="$INFO[albumratingsource]" output="&lt;chain function=&quot;GetMBAlbumRatingByMBID&quot;&gt;$$3&lt;/chain&gt;" dest="5+">
96                                 <expression>MusicBrainz</expression>
97                         </RegExp>
98                         <RegExp input="$INFO[albumratingsource]" output="&lt;url function=&quot;GetAMGAlbumRating&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
99                                 <expression>allmusic.com</expression>
100                         </RegExp>
101                         <RegExp input="$INFO[albumratingsource]" output="&lt;chain function=&quot;GetTADBAlbumRatingByMBID&quot;&gt;$$4&lt;/chain&gt;" dest="5+">
102                                 <expression>TheAudioDb.com</expression>
103                         </RegExp>
104                         <RegExp input="$INFO[albumstylessource]" output="&lt;url function=&quot;GetAMGAlbumStyles&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
105                                 <expression>allmusic.com</expression>
106                         </RegExp>
107                         <RegExp input="$INFO[albumstylessource]" output="&lt;chain function=&quot;GetTADBAlbumStylesByMBID&quot;&gt;$$4&lt;/chain&gt;" dest="5+">
108                                 <expression>TheAudioDb.com</expression>
109                         </RegExp>
110                         <RegExp input="$INFO[albummoodssource]" output="&lt;url function=&quot;GetAMGAlbumMoods&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
111                                 <expression>allmusic.com</expression>
112                         </RegExp>
113                         <RegExp input="$INFO[albummoodssource]" output="&lt;chain function=&quot;GetTADBAlbumMoodsByMBID&quot;&gt;$$4&lt;/chain&gt;" dest="5+">
114                                 <expression>TheAudioDb.com</expression>
115                         </RegExp>
116                         <RegExp input="$INFO[albumthemessource]" output="&lt;url function=&quot;GetAMGAlbumThemes&quot; cache=&quot;mb-$$4-rg.xml&quot;&gt;$INFO[mbsite]/ws/2/release-group/$$4?inc=url-rels&lt;/url&gt;" dest="5+">
117                                 <expression>allmusic.com</expression>
118                         </RegExp>
119                         <RegExp input="$INFO[albumthemessource]" output="&lt;chain function=&quot;GetTADBAlbumThemeByMBID&quot;&gt;$$4&lt;/chain&gt;" dest="5+">
120                                 <expression>TheAudioDb.com</expression>
121                         </RegExp>
122                         <RegExp conditional="fanarttvalbumthumbs" input="$$4" output="&lt;chain function=&quot;GetFanartTvAlbumThumbsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
123                                 <expression noclean="1">(.+)</expression>
124                         </RegExp>
125                         <RegExp conditional="fanarttvalbumdiscart" input="$$4" output="&lt;chain function=&quot;GetFanartTvAlbumDiscartByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
126                                 <expression noclean="1">(.+)</expression>
127                         </RegExp>
128                         <RegExp conditional="tadbalbumthumbs" input="$$4" output="&lt;chain function=&quot;GetTADBAlbumThumbsByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
129                                 <expression noclean="1">(.+)</expression>
130                         </RegExp>
131                         <RegExp conditional="tadbalbumdiscart" input="$$4" output="&lt;chain function=&quot;GetTADBAlbumDiscartByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
132                                 <expression noclean="1">(.+)</expression>
133                         </RegExp>
134                         <RegExp conditional="tadbalbumback" input="$$4" output="&lt;chain function=&quot;GetTADBAlbumBackByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
135                                 <expression noclean="1">(.+)</expression>
136                         </RegExp>
137                         <RegExp conditional="tadbalbumspine" input="$$4" output="&lt;chain function=&quot;GetTADBAlbumSpineByMBID&quot;&gt;\1&lt;/chain&gt;" dest="5+">
138                                 <expression noclean="1">(.+)</expression>
139                         </RegExp>
140                         <RegExp conditional="allmusicalbumthumbs" input="$$4" output="&lt;url function=&quot;GetAMGAlbumThumbs&quot; cache=&quot;mb-\1-rg.xml&quot;&gt;$INFO[mbsite]/ws/2/release-group/\1?inc=url-rels&lt;/url&gt;" dest="5+">
141                                 <expression noclean="1">(.+)</expression>
142                         </RegExp>
143                         <expression noclean="1" />
144                 </RegExp>
145         </GetAlbumDetails>
147         <GetAMGAlbumReview dest="5">
148                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
149                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumReviewByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
150                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
151                         </RegExp>
152                         <expression noclean="1" />
153                 </RegExp>
154         </GetAMGAlbumReview>
156         <GetAMGAlbumRating dest="5">
157                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
158                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumRatingByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
159                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
160                         </RegExp>
161                         <expression noclean="1" />
162                 </RegExp>
163         </GetAMGAlbumRating>
165         <GetAMGAlbumStyles dest="5">
166                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
167                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumStylesByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
168                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
169                         </RegExp>
170                         <expression noclean="1" />
171                 </RegExp>
172         </GetAMGAlbumStyles>
174         <GetAMGAlbumMoods dest="5">
175                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
176                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumMoodsByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
177                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
178                         </RegExp>
179                         <expression noclean="1" />
180                 </RegExp>
181         </GetAMGAlbumMoods>
183         <GetAMGAlbumThemes dest="5">
184                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
185                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumThemesByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
186                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
187                         </RegExp>
188                         <expression noclean="1" />
189                 </RegExp>
190         </GetAMGAlbumThemes>
192         <GetAMGAlbumThumbs dest="5">
193                 <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
194                         <RegExp input="$$1" output="&lt;chain function=&quot;GetAMGAlbumThumbsByAMGID&quot;&gt;\1&lt;/chain&gt;" dest="2">
195                                 <expression noclean="1">allmusic.com/album/([^&lt;]*)</expression>
196                         </RegExp>
197                         <expression noclean="1" />
198                 </RegExp>
199         </GetAMGAlbumThumbs>
201 </scraper>