Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

How search artist and construct an item object? #14

Open
fatoldsun00 opened this issue Jan 4, 2017 · 0 comments
Open

How search artist and construct an item object? #14

fatoldsun00 opened this issue Jan 4, 2017 · 0 comments

Comments

@fatoldsun00
Copy link

fatoldsun00 commented Jan 4, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant