Skip to content

Commit

Permalink
fix count for error
Browse files Browse the repository at this point in the history
  • Loading branch information
Giftie committed Aug 13, 2011
1 parent 18cc674 commit d26d97c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/lib/musicbrainz_utils.py
Expand Up @@ -9,6 +9,7 @@
__addon__ = sys.modules[ "__main__" ].__addon__
addon_db = sys.modules[ "__main__" ].addon_db
addon_work_folder = sys.modules[ "__main__" ].addon_work_folder
count=0

try:
from sqlite3 import dbapi2 as sqlite3
Expand Down Expand Up @@ -62,6 +63,7 @@ def get_musicbrainz_with_singles( album_title, artist ):
album["artist_id"] = ""
album["id"] = ""
album["title"] = ""
count = 0
xbmc.sleep( 1000 ) # sleep for allowing proper use of webserver
return album

Expand Down Expand Up @@ -103,6 +105,7 @@ def get_musicbrainz_album( album_title, artist ):
else:
xbmc.sleep( 1000 ) # sleep for allowing proper use of webserver
album = get_musicbrainz_with_singles( album_title, artist )
count = 0
xbmc.sleep( 1000 ) # sleep for allowing proper use of webserver
return album

Expand Down

0 comments on commit d26d97c

Please sign in to comment.