From 5ea2ed41420736b3089bcb533eb827cf8fcf4129 Mon Sep 17 00:00:00 2001 From: stephendenham Date: Tue, 21 Dec 2010 13:49:50 +0000 Subject: [PATCH] Fix progress bar for songs retrieval. git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@21 2dec19e3-eb1d-4749-8193-008c8bba0994 --- addon.xml | 2 +- changelog.txt | 4 ++++ default.py | 4 ++-- description.xml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/addon.xml b/addon.xml index f6d67f2..9b9ba5d 100644 --- a/addon.xml +++ b/addon.xml @@ -1,6 +1,6 @@ + version="0.1.3" provider-name="Stephen Denham"> diff --git a/changelog.txt b/changelog.txt index d42f75e..abc7f66 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +0.1.3: + +Fix progress bar for songs retrieval. + 0.1.2: Playlist bug fixes. diff --git a/default.py b/default.py index 9fd4167..c31303b 100644 --- a/default.py +++ b/default.py @@ -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 diff --git a/description.xml b/description.xml index 48aa51f..1724e3b 100644 --- a/description.xml +++ b/description.xml @@ -18,7 +18,7 @@ Grooveshark XBMC. - 0.1.2 + 0.1.3