FAQ  •  Register  •  Login

More questions around CDS API

<<

jdla

Serviio newbie

Posts: 9

Joined: Sat Jan 07, 2017 5:51 pm

Post Sun Jan 08, 2017 3:34 pm

More questions around CDS API

Dear all,

I have more questions with respect to the CDS API.
( is there maybe an open source project around from which I can learn more ? )

Particularly, how would you for instance do a search for all 'albums' or 'albumartists' ? Or all starting with 'A' ?
Does one use the search api for that anyway ? Or does it have to be built on the browse api ?

Thanks,

Jos
<<

jdla

Serviio newbie

Posts: 9

Joined: Sat Jan 07, 2017 5:51 pm

Post Sun Jan 08, 2017 3:58 pm

[Solved]Re: More questions around CDS API

I noted the ' browse' interface has respective containers for that.
Like 'A_ALB' for audio albums. ( and then with children further organised per letter ).

Would be good to have notes about that in the API documentation ?

Thanks,

Jos
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17216

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 09, 2017 1:48 pm

Re: More questions around CDS API

You should use the search API for that - just give it a text and it'll give you results across different groups.

To get all album artists - you could use Browse for it and use the IDs you get from /browse all the way from the root. The main one should keep the container ids constant, but I can't really say it'll be the case forever.
<<

jdla

Serviio newbie

Posts: 9

Joined: Sat Jan 07, 2017 5:51 pm

Post Tue Jan 10, 2017 10:03 pm

Re: More questions around CDS API

Well, my first idea was indeed that the search interface would be the one to use.
But that one has no option 'all' , does it ?
That means that if I want to search for all albums I have to do a browse from (audio case) A_ALB, not ?

Thanks,

Jos
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17216

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 12, 2017 9:17 am

Re: More questions around CDS API

yes. It's unlikely they will change, but just a warning :-)

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.