Permalink
Browse files

remove unneeded progress dialogs

updated fanart.tv API
  • Loading branch information...
1 parent 82756a5 commit e6026396bbb1d9f000bca360253e6542b4137c94 @Giftie committed May 21, 2012
Showing with 22 additions and 20 deletions.
  1. +2 −0 changelog.txt
  2. +7 −7 resources/lib/database.py
  3. +11 −11 resources/lib/download.py
  4. +2 −2 resources/lib/gui.py
View
@@ -1,5 +1,7 @@
2.5.9
- fix MusicBrainz Album matching(due to change with MusicBrainz)
+- fix fanart.tv API due to change
+- remove unneeded progress dialogs
2.5.8
- removed import of BeautifulSoup
View
@@ -402,8 +402,8 @@ def get_local_albums_db( artist_name, background ):
c = conn_l.cursor()
try:
if artist_name == "all artists":
- if not background:
- pDialog.create( _(32102), _(20186) )
+ #if not background:
+ # pDialog.create( _(32102), _(20186) )
query="SELECT DISTINCT album_id, title, artist, path, cdart, cover, disc, musicbrainz_albumid, musicbrainz_artistid FROM alblist ORDER BY artist"
c.execute(query)
else:
@@ -432,12 +432,12 @@ def get_local_albums_db( artist_name, background ):
local_album_list.append(album)
except:
print_exc()
- if not background:
- pDialog.close()
+ #if not background:
+ # pDialog.close()
#xbmc.log( local_album_list, xbmc.LOGDEBUG )
- if artist_name == "all artists":
- if not background:
- pDialog.close()
+ #if artist_name == "all artists":
+ # if not background:
+ # pDialog.close()
xbmc.log( "[script.cdartmanager] - Finished Retrieving Local Albums from Database", xbmc.LOGDEBUG )
return local_album_list
View
@@ -98,11 +98,11 @@ def download_art( url_cdart, album, type, mode, size ):
xbmc.log( "[script.cdartmanager] - Downloading artwork... ", xbmc.LOGDEBUG )
download_success = False
percent = 1
- try:
- pDialog.update( percent )
- except:
- pDialog.create( _(32047) )
- #Onscreen Dialog - "Downloading...."
+ #try:
+ # pDialog.update( percent )
+ #except:
+ # pDialog.create( _(32047) )
+ # #Onscreen Dialog - "Downloading...."
file_name = get_filename( type, url_cdart, mode )
if file_name == "unknown":
xbmc.log( "[script.cdartmanager] - Unknown Type ", xbmc.LOGDEBUG )
@@ -127,13 +127,13 @@ def _report_hook( count, blocksize, totalsize ):
if percent < 0:
precent = 1
strProgressBar = str( percent )
- if type == "fanart" or type == "clearlogo":
- pDialog.update( percent, "%s%s" % ( _(32038) , get_unicode( album["artist"] ) ) )
- else:
- pDialog.update( percent, "%s%s" % ( _(32038) , get_unicode( album["artist"] ) ), "%s%s" % ( _(32039) , get_unicode( album["title"] ) ) )
+ # if type == "fanart" or type == "clearlogo":
+ # pDialog.update( percent, "%s%s" % ( _(32038) , get_unicode( album["artist"] ) ) )
+ # else:
+ # pDialog.update( percent, "%s%s" % ( _(32038) , get_unicode( album["artist"] ) ), "%s%s" % ( _(32039) , get_unicode( album["title"] ) ) )
#Onscreen Dialog - *DOWNLOADING CDART*
- if ( pDialog.iscanceled() ):
- pass
+ # if ( pDialog.iscanceled() ):
+ # pass
if exists( path ):
fp, h = urllib.urlretrieve(url_cdart, destination, _report_hook)
#message = ["Download Sucessful!"]
View
@@ -934,9 +934,9 @@ def onClick( self, controlId ):
xbmcgui.Window(10001).setProperty( "artwork", "cdart" )
self.populate_album_list( self.artist_menu, self.remote_cdart_url, selected_item, "cdart" )
elif self.menu_mode == 3:
- self.remote_cdart_url = remote_coverart_list( self.artist_menu, selected_item, "cover" )
+ self.remote_cdart_url = remote_coverart_list( self.artist_menu )
xbmcgui.Window(10001).setProperty( "artwork", "cover" )
- self.populate_coverarts( self.artist_menu, self.remote_cdart_url )
+ self.populate_album_list( self.artist_menu, self.remote_cdart_url, selected_item, "cover" )
if controlId == 132 : #Clean Music database selected from Advanced Menu
xbmc.log( "[script.cdartmanager] - # Executing Built-in - CleanLibrary(music)", xbmc.LOGNOTICE )
xbmc.executebuiltin( "CleanLibrary(music)")

0 comments on commit e602639

Please sign in to comment.