sys.path.append (libDir)
from GrooveAPI import GrooveAPI
-groovesharkApi = GrooveAPI()
+try:
+ groovesharkApi = GrooveAPI()
+except:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark XBMC', 'Unable to connect with Grooveshark.', 'Please try again later')
+ sys.exit(-1)
+
class _Info:
def __init__( self, *args, **kwargs ):