Fix bug in album song name.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Mon, 9 Jan 2012 20:26:47 +0000 (20:26 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Mon, 9 Jan 2012 20:26:47 +0000 (20:26 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@73 2dec19e3-eb1d-4749-8193-008c8bba0994

addon.xml
changelog.txt
description.xml
resources/lib/GroovesharkAPI.py

index 5e57411..dca6d04 100644 (file)
--- a/addon.xml
+++ b/addon.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.audio.groove" name="Grooveshark XBMC"
-       version="1.0.2" provider-name="Stephen Denham">
+       version="1.0.3" provider-name="Stephen Denham">
        <requires>
                <import addon="xbmc.python" version="2.0" />
                <import addon="script.module.simplejson"/>
index 2fc73e7..deea963 100644 (file)
@@ -1,3 +1,7 @@
+1.0.3
+
+Fix bug in album song name.
+
 1.0.2
 
 New icon for dark backgrounds. Socket timeout for Linux.
index 342a8a7..7c25d17 100644 (file)
@@ -18,7 +18,7 @@
        <title>Grooveshark XBMC</title>
 
        <!-- (required) Major.minor.build -->
-       <version>1.0.2</version>
+       <version>1.0.3</version>
 
        <!--
                (required) author name & email. at least one author name is required
index d524ad2..9c05ea2 100644 (file)
@@ -484,7 +484,11 @@ class GrooveAPI:
                                        coverart = THUMB_URL+s['CoverArtFilename'].encode('ascii', 'ignore')
                                else:
                                        coverart = 'None'
-                               list.append([s['SongName'].encode('ascii', 'ignore'),\
+                               if 'Name' in s:
+                                       name = s['Name']
+                               else:
+                                       name = s['SongName']
+                               list.append([name.encode('ascii', 'ignore'),\
                                s['SongID'],\
                                s['AlbumName'].encode('ascii', 'ignore'),\
                                s['AlbumID'],\