client.play() problems.

Having some problems with a script I found online so I do not take credit for the code under. Still, I’m trying to get it to work again, and I’m hoping you guys know something :slight_smile:

def play(client, plist):
try:
client.stop()
client.clear()
client.add(plist)
if re.search(‘playlist’,plist):
client.shuffle()
client.play()
except:
print ‘Could not play playlist %s’ % plist

It connects to the client fine, but im always getting ‘Could not play playlist #spotifyURI#’
The URI ect are transfered correctly. here, the ‘plist’ is a spotify playlist URI. Do I have to direct it to spotify or something? I have only used python for half a year, but if you give me an idea I might be able to do it myself! :slight_smile: