INTERACT FORUM

Windows => Plug-in Development => Topic started by: JonL on October 06, 2010, 09:52:36 am

Title: Artist list and Album list through MCWS
Post by: JonL on October 06, 2010, 09:52:36 am
Hi,

any chance that MC15's MCWS will expose methods to retrieve Artist lists and Album lists?

Thanks
Title: Re: Artist list and Album list through MCWS
Post by: Matt on October 06, 2010, 10:25:47 am
Good idea.

Coming in build 128 and later:
SDK: Added web service function Library/Values to get a list of artists, albums, etc.

The MCWS index page will have documentation and examples, but example calls would look like:
http://localhost:52199/MCWS/v1/Library/Values?Field=Artist
http://localhost:52199/MCWS/v1/Library/Values?Field=Artist&Files=[Genre]=[Hard%20Rock]

A sample response looks like this:
Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Response Status="OK">
<Value>'Mission 2000</Value>
<Value>AC DC</Value>
<Value>Alice In Chains</Value>
<Value>Apartment 26</Value>
<Value>Bon Jovi</Value>
<Value>Buckcherry</Value>
<Value>Butthole Surfers</Value>
<Value>Diffuser</Value>
<Value>Firehouse</Value>
<Value>Foo Fighters &amp; Brian May</Value>
<Value>Fuel</Value>
<Value>Godsmack</Value>
<Value>Guns N' Roses</Value>
<Value>Hans Zimmer (Feat. Heitor Pereira)</Value>
<Value>Limp Bizkit</Value>
<Value>Megadeth</Value>
<Value>Metallica</Value>
<Value>Ozzy Osbourne</Value>
<Value>Pantera</Value>
<Value>Powderfinger</Value>
<Value>Rob Zombie</Value>
<Value>The Pimps</Value>
<Value>Tinfed</Value>
<Value>Tori Amos</Value>
<Value>U2</Value>
<Value>Uncle Kracker (Produced By Kid Rock)</Value>
</Response>
Title: Re: Artist list and Album list through MCWS
Post by: JonL on October 06, 2010, 10:30:39 am
Great!  ;D

Can't wait for 128 to be available.  ;)

Title: Re: Artist list and Album list through MCWS
Post by: JonL on October 07, 2010, 02:20:19 pm
Oh, will this be also available for Videos, Pictures and Playlists?
Title: Re: Artist list and Album list through MCWS
Post by: Tolga on November 08, 2010, 09:52:12 am
Is it possible to have more complex queries, or does the selection has to be done with a single tag at a time?
Title: Re: Artist list and Album list through MCWS
Post by: rgouyet on September 18, 2011, 03:58:54 pm
What is the simplest way to get the list of all artists or all albums via MCWS webservices ?

For me http://localhost:52199/MCWS/v1/Library/Values?Field=Artist with no other parameters must give all artists

I don't need to have all informations about the library and then extract only albums or artists. I just need an XML answer with list of albums and Artists.
How does Webremote do this ?
Thanks
Title: Re: Artist list and Album list through MCWS
Post by: GrantDG on November 09, 2011, 07:27:22 pm

Coming in build 128 and later:
SDK: Added web service function Library/Values to get a list of artists, albums, etc.

When calling this method via MCWS (build 181)

http://[server ip]:[port]/MCWS/v1/Library/Values?Field=Artist

all I get is the following:

Code: [Select]
<Response Status="OK"/>

Is this broken or am I doing something wrong?
Title: Re: Artist list and Album list through MCWS
Post by: Tolga on November 28, 2011, 09:10:17 pm
I thought I read somewhere that MC17 fixes this but I have not tried this. I am sure that it was working fine for MC16 at some point in the past.
Title: Re: Artist list and Album list through MCWS
Post by: MrC on November 28, 2011, 09:17:14 pm
I thought I read somewhere that MC17 fixes this but I have not tried this. I am sure that it was working fine for MC16 at some point in the past.

Last post here?
http://yabb.jriver.com/interact/index.php?topic=66214.0 (http://yabb.jriver.com/interact/index.php?topic=66214.0)

http://localhost:52198/MCWS/v1/Library/Values?Field=Artist