All XBMC Music Library integration.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Wed, 26 Jan 2011 10:59:21 +0000 (10:59 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Wed, 26 Jan 2011 10:59:21 +0000 (10:59 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@40 2dec19e3-eb1d-4749-8193-008c8bba0994

changelog.txt
default.py

index c7d5e5b..32ace45 100644 (file)
@@ -7,6 +7,7 @@ Get other user's playlists.
 Sort playlists directory by name.
 Put track name first in the album and playlist directory item labels.
 Allow multiple pages in the songs directory (help prevent slow retrieval of very big lists).
+Allow integration with XBMC Music Libary. See http://sourceforge.net/apps/trac/xbmc-groove/wiki/WikiStart
 
 0.2.3:
 
index f515407..a4609db 100644 (file)
@@ -169,8 +169,11 @@ class Groveshark:
             self.categories()
 
     # Search for artists albums
-    def searchArtistsAlbums(self):
-        query = self._get_keyboard(default="", heading="Search for artist's albums")
+    def searchArtistsAlbums(self, artistName = ""):
+        if artistName == "":
+            query = self._get_keyboard(default="", heading="Search for artist's albums")
+        else:
+            query = artistName
         if (query != ''): 
             artists = groovesharkApi.getArtistSearchResults(query, limit = self.artistsearchlimit)
             if (len(artists) > 0):
@@ -547,7 +550,11 @@ elif mode==MODE_POPULAR_SONGS:
     grooveshark.popularSongs()
     
 elif mode==MODE_ARTIST_POPULAR:
-    grooveshark.artistPopularSongs()
+    try: name=urllib.unquote_plus(params["name"])
+    except: 
+        name = ""
+        pass
+    grooveshark.artistPopularSongs(name)
 
 elif mode==MODE_FAVORITES:
     grooveshark.favorites()