jinglemansweep/PyLMS

How search artist and construct an item object?

Opened this issue · 0 comments

Hi,

I had two questions

  1. How retriver artist and albums

With http method no problem

requete = {"id":1,"method":"slim.request","params":["-",["artists",0,10000,"tags:lya" ]]} r = requests.post('http://'+LMSIP+':'+str(LMSPORTWEB)+'/jsonrpc.js',data=json.dumps(requete)) result = r.json()['result']['artists_loop']

But with pyLMS i try :

print sc.search('pink floyd', mode='artist')

but i get a 'None' in result

  1. How play a song

I must give an item object but how i construct them ?

sq.playlist_play(??)

Thank you, sorry for my ugly english