The branch, dharma has been updated
       via  bf540af935dc353bf560f1d09e6c1dc17743749d (commit)
      from  57af90e4828494c864e2e9a8fbe722e98c600d3e (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scrapers;a=commit;h=bf540af935dc353bf560f1d09e6c1dc17743749d

commit bf540af935dc353bf560f1d09e6c1dc17743749d
Author: olympia <[email protected]>
Date:   Wed Nov 9 22:23:48 2011 +0100

    [metadata.artists.allmusic.com] fix: address caching issue with special 
chars in artist name

diff --git a/metadata.artists.allmusic.com/addon.xml 
b/metadata.artists.allmusic.com/addon.xml
index 6b5ff2f..e0fd2c4 100644
--- a/metadata.artists.allmusic.com/addon.xml
+++ b/metadata.artists.allmusic.com/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="metadata.artists.allmusic.com"
        name="AllMusic"
-       version="2.0.5"
+       version="2.0.6"
        provider-name="Team XBMC">
   <requires>
     <import addon="xbmc.metadata" version="1.0"/>
diff --git a/metadata.artists.allmusic.com/allmusic.xml 
b/metadata.artists.allmusic.com/allmusic.xml
index cd1369a..3d99ff1 100644
--- a/metadata.artists.allmusic.com/allmusic.xml
+++ b/metadata.artists.allmusic.com/allmusic.xml
@@ -12,25 +12,25 @@
        </CreateArtistSearchUrl>
        <GetArtistSearchResults dest="8">
                <RegExp input="$$5" output="&lt;results&gt;\1&lt;/results&gt;" 
dest="8">
-                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;url 
cache=&quot;am-\1-artist.html&quot;&gt;http://www.allmusic.com/artist/\2&lt;/url&gt;&lt;/entity&gt;";
 dest="9">
+                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;url 
cache=&quot;am-\2-artist.html&quot;&gt;http://www.allmusic.com/artist/\2&lt;/url&gt;&lt;/entity&gt;";
 dest="9">
                                <expression noclean="1">&lt;meta 
name=&quot;title&quot; content=&quot;([^&quot;]*)&quot;.*?&lt;a 
href="http://www.allmusic.com/artist/([^/]*)/credits&quot;</expression>
                        </RegExp>
                        <RegExp input="$$9" output="\1" dest="5">
                                <expression noclean="1">(.+)</expression>
                        </RegExp>
-                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;url 
cache=&quot;am-\1-artist.html&quot;&gt;http://www.allmusic.com/artist/\2&lt;/url&gt;&lt;/entity&gt;";
 dest="9">
+                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;url 
cache=&quot;am-\2-artist.html&quot;&gt;http://www.allmusic.com/artist/\2&lt;/url&gt;&lt;/entity&gt;";
 dest="9">
                                <expression noclean="1">&lt;meta 
name=&quot;title&quot; content=&quot;([^&quot;]*)&quot;.*?&lt;a 
href="http://www.allmusic.com/artist/([^/]*)/biography&quot;</expression>
                        </RegExp>
                        <RegExp input="$$9" output="\1" dest="5">
                                <expression noclean="1">(.+)</expression>
                        </RegExp>
-                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;url 
cache=&quot;am-\1-artist.html&quot;&gt;http://www.allmusic.com/artist/\2&lt;/url&gt;&lt;/entity&gt;";
 dest="9">
+                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\1&lt;/title&gt;&lt;url 
cache=&quot;am-\2-artist.html&quot;&gt;http://www.allmusic.com/artist/\2&lt;/url&gt;&lt;/entity&gt;";
 dest="9">
                                <expression noclean="1">&lt;meta 
name=&quot;title&quot; content=&quot;([^&quot;]*)&quot;.*?&lt;a 
href="http://www.allmusic.com/artist/([^/]*)/discography&quot;</expression>
                        </RegExp>
                        <RegExp input="$$9" output="\1" dest="5">
                                <expression noclean="1">(.+)</expression>
                        </RegExp>
-                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;genre&gt;\3&lt;/genre&gt;&lt;year&gt;\4&lt;/year&gt;&lt;url
 
cache=&quot;am-\2-artist.html&quot;&gt;http://www.allmusic.com/artist/\1&lt;/url&gt;&lt;/entity&gt;";
 dest="5+">
+                       <RegExp input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;genre&gt;\3&lt;/genre&gt;&lt;year&gt;\4&lt;/year&gt;&lt;url
 
cache=&quot;am-\1-artist.html&quot;&gt;http://www.allmusic.com/artist/\1&lt;/url&gt;&lt;/entity&gt;";
 dest="5+">
                                <expression repeat="yes" 
noclean="1,2">&lt;td&gt;&lt;a 
href=&quot;http://www.allmusic.com/artist/([^&quot;]*)&quot;&gt;([^&lt;]*)&lt;/a&gt;&lt;/td&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/td&gt;[^&gt;]*&gt;([^&lt;]*)&lt;/td&gt;</expression>
                        </RegExp>
                        <expression noclean="1"/>
@@ -41,23 +41,26 @@
                        <RegExp input="$$1" output="\1" dest="7">
                                <expression noclean="1">&lt;meta 
name=&quot;title&quot; content=&quot;([^&quot;]*)</expression>
                        </RegExp>
+                       <RegExp input="$$1" output="\1" dest="8">
+                               
<expression>http://www.allmusic.com/artist/([^&amp;&quot;/]*)</expression>
+                       </RegExp>
                        <RegExp input="$$7" conditional="htbthumbs" 
output="&lt;chain function=&quot;GetHTBThumbs&quot;&gt;\1&lt;/chain&gt;" 
dest="5">
                                <expression/>
                        </RegExp>
                        <RegExp input="$$2" conditional="lastfmartistthumbs" 
output="&lt;chain 
function=&quot;GetLastFMArtistThumbsByName&quot;&gt;\1&lt;/chain&gt;" dest="5+">
                                <expression/>
                        </RegExp>
-                       <RegExp input="$$1" output="&lt;url 
cache=&quot;am-$$7-artist.html&quot; 
function=&quot;ParseAMGArtist&quot;&gt;http://www.allmusic.com/artist/\1&lt;/url&gt;";
 dest="5+">
-                               
<expression>http://www.allmusic.com/artist/([^&amp;&quot;/]*)</expression>
+                       <RegExp input="$$8" output="&lt;url 
cache=&quot;am-\1-artist.html&quot; 
function=&quot;ParseAMGArtist&quot;&gt;http://www.allmusic.com/artist/\1&lt;/url&gt;";
 dest="5+">
+                               <expression/>
                        </RegExp>
                        <RegExp input="$$7" conditional="htbfanart" 
output="&lt;chain function=&quot;GetHTBFanart&quot;&gt;\1&lt;/chain&gt;" 
dest="5+">
                                <expression/>
                        </RegExp>
-                       <RegExp input="$$1" output="&lt;url 
cache=&quot;am-$$7-biog.html&quot; 
function=&quot;GetAMGBiography&quot;&gt;http://www.allmusic.com/artist/\1/biography&lt;/url&gt;";
 dest="5+">
-                               <expression>&lt;a 
href=&quot;http://www.allmusic.com/artist/([^/]*)/biography"</expression>
+                       <RegExp input="$$8" output="&lt;url 
cache=&quot;am-\1-biog.html&quot; 
function=&quot;GetAMGBiography&quot;&gt;http://www.allmusic.com/artist/\1/biography&lt;/url&gt;";
 dest="5+">
+                               <expression/>
                        </RegExp>
-                       <RegExp input="$$1" output="&lt;url 
cache=&quot;am-$$7-discog.html&quot; 
function=&quot;GetAMGDiscography&quot;&gt;http://www.allmusic.com/artist/\1/discography&lt;/url&gt;";
 dest="5+">
-                               <expression>&lt;a 
href=&quot;http://www.allmusic.com/artist/([^/]*)/discography"</expression>
+                       <RegExp input="$$8" output="&lt;url 
cache=&quot;am-\1-discog.html&quot; 
function=&quot;GetAMGDiscography&quot;&gt;http://www.allmusic.com/artist/\1/discography&lt;/url&gt;";
 dest="5+">
+                               <expression/>
                        </RegExp>
                        <expression noclean="1"/>
                </RegExp>

-----------------------------------------------------------------------

Summary of changes:
 metadata.artists.allmusic.com/addon.xml    |    2 +-
 metadata.artists.allmusic.com/allmusic.xml |   23 +++++++++++++----------
 2 files changed, 14 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
Scrapers

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to