INTERACT FORUM
Windows => Plug-in Development => Topic started 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
-
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:
<?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 & 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>
-
Great! ;D
Can't wait for 128 to be available. ;)
-
Oh, will this be also available for Videos, Pictures and Playlists?
-
Is it possible to have more complex queries, or does the selection has to be done with a single tag at a time?
-
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
-
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:
<Response Status="OK"/>
Is this broken or am I doing something wrong?
-
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.
-
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