Commits

Troy Ponthieux  committed 4b5837a

Fixes a key error when playing a song in the playlist

  • Participants
  • Parent commits b9aede7

Comments (0)

Files changed (1)

File lib/groove.py

     gzipfile = gzip.GzipFile(fileobj = (StringIO.StringIO(resp)))
     j = json.JSONDecoder().decode(gzipfile.read())
     
-    if len(j["result"][_id]) == 0:
+    if len(j["result"][str(_id)]) == 0:
         raise Exception("The song streaming key is empty")
     
     return j