INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Artist list and Album list through MCWS  (Read 3903 times)

JonL

  • Member
  • *
  • Posts: 4
  • MC 15 user
Artist list and Album list through MCWS
« 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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Artist list and Album list through MCWS
« Reply #1 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>
Logged
Matt Ashland, JRiver Media Center

JonL

  • Member
  • *
  • Posts: 4
  • MC 15 user
Re: Artist list and Album list through MCWS
« Reply #2 on: October 06, 2010, 10:30:39 am »

Great!  ;D

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

Logged

JonL

  • Member
  • *
  • Posts: 4
  • MC 15 user
Re: Artist list and Album list through MCWS
« Reply #3 on: October 07, 2010, 02:20:19 pm »

Oh, will this be also available for Videos, Pictures and Playlists?
Logged

Tolga

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 438
Re: Artist list and Album list through MCWS
« Reply #4 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?
Logged

rgouyet

  • Member
  • *
  • Posts: 3
Re: Artist list and Album list through MCWS
« Reply #5 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
Logged

GrantDG

  • World Citizen
  • ***
  • Posts: 199
Re: Artist list and Album list through MCWS
« Reply #6 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?
Logged
Looking to control J River Media Center from your Windows Phone?: Look for nMedium & nMedium Play in the WP store

Tolga

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 438
Re: Artist list and Album list through MCWS
« Reply #7 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.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Artist list and Album list through MCWS
« Reply #8 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://localhost:52198/MCWS/v1/Library/Values?Field=Artist
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up