Fix progress bar for songs retrieval.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Tue, 21 Dec 2010 13:49:50 +0000 (13:49 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Tue, 21 Dec 2010 13:49:50 +0000 (13:49 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@21 2dec19e3-eb1d-4749-8193-008c8bba0994

addon.xml
changelog.txt
default.py
description.xml

index f6d67f2..9b9ba5d 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"
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.audio.groove" name="Grooveshark XBMC"
-       version="0.1.2" provider-name="Stephen Denham">
+       version="0.1.3" provider-name="Stephen Denham">
        <requires>
                <import addon="xbmc.python" version="1.0" />
        </requires>
        <requires>
                <import addon="xbmc.python" version="1.0" />
        </requires>
index d42f75e..abc7f66 100644 (file)
@@ -1,3 +1,7 @@
+0.1.3:
+
+Fix progress bar for songs retrieval.
+
 0.1.2:
 
 Playlist bug fixes.
 0.1.2:
 
 Playlist bug fixes.
index 9fd4167..c31303b 100644 (file)
@@ -482,7 +482,7 @@ class Groveshark:
         n = len(songs)
         xbmc.log("Found " + str(n) + " songs...")
         progressDialog = xbmcgui.DialogProgress()
         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:
         dirItems = []
         i = 0
         while i < n:
@@ -522,7 +522,7 @@ class Groveshark:
             dirItem = (u, item, False)
             dirItems.append(dirItem)
             i = i + 1
             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
 
             if progressDialog.iscanceled():
                 break
 
index 48aa51f..1724e3b 100644 (file)
@@ -18,7 +18,7 @@
        <title>Grooveshark XBMC.</title>
 
        <!-- (required) Major.minor.build -->
        <title>Grooveshark XBMC.</title>
 
        <!-- (required) Major.minor.build -->
-       <version>0.1.2</version>
+       <version>0.1.3</version>
 
        <!--
                (required) author name & email. at least one author name is required
 
        <!--
                (required) author name & email. at least one author name is required