Fix progress bar for songs retrieval.
[clinton/xbmc-groove.git] / default.py
index 9fd4167..c31303b 100644 (file)
@@ -482,7 +482,7 @@ class Groveshark:
         n = len(songs)
         xbmc.log("Found " + str(n) + " songs...")
         progressDialog = xbmcgui.DialogProgress()
-        progressDialog.create('Grooveshark XBMC', 'Fetching songs')
+        progressDialog.create('Grooveshark XBMC', 'Fetching...', '0 of ' + str(n))
         dirItems = []
         i = 0
         while i < n:
@@ -522,7 +522,7 @@ class Groveshark:
             dirItem = (u, item, False)
             dirItems.append(dirItem)
             i = i + 1
-            progressDialog.update(int((i*100)/n))
+            progressDialog.update(int((i*100)/n), 'Fetching...', str(i) + ' of ' + str(n))
             if progressDialog.iscanceled():
                 break