INTERACT FORUM

Please login or register.

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

Author Topic: MCWS  (Read 21211 times)

wilson2517

  • Recent member
  • *
  • Posts: 6
MCWS
« on: May 18, 2012, 10:31:42 am »

Hi Im new on the forum.

I have a question.

I send this string to MC17

http://10.24.46.30:52199/MCWS/v1/Browse/Children?Id=3

the answer is:

<Response Status="OK">
<Item Name="Movies">1769</Item>
<Item Name="Shows">1770</Item>
<Item Name="Recent">1771</Item>
</Response>

But I need see movie info. http://10.24.46.30:52199/MCWS/v1/Browse/Children?Id=1769

the answer is:
<Response Status="OK"/>

I need show List with ID.
How can to do?

THX
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: MCWS
« Reply #1 on: May 18, 2012, 10:45:02 am »

Welcome.

Once you reach the end of the browse tree, you need to switch to files mode.

So if you get a response with no children, call MCWS/v1/Browse/Files.

Basically, your program will have to handle views of browse containers and views of files.  They're similar but not the same.
Logged
Matt Ashland, JRiver Media Center

wilson2517

  • Recent member
  • *
  • Posts: 6
Re: MCWS
« Reply #2 on: May 18, 2012, 12:06:53 pm »

Thanks Matt

I Receive this string <Response Status="Failure" Information="Error retrieving files."/>

I set the string http://10.24.46.30:52199/MCWS/v1/Browse/Files

?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: MCWS
« Reply #3 on: May 18, 2012, 12:13:17 pm »

I set the string http://10.24.46.30:52199/MCWS/v1/Browse/Files

You'll have to provide a browse ID.

You can look at the documentation by navigating to the base URL in a browser:
http://10.24.46.30:52199/MCWS/v1/
Logged
Matt Ashland, JRiver Media Center

wilson2517

  • Recent member
  • *
  • Posts: 6
Re: MCWS
« Reply #4 on: May 18, 2012, 12:36:29 pm »

I want to display a list for movies with ID.

Same list music and Image.

For example.

http://10.24.46.30:52199/MCWS/v1/Browse/Children?Id=1000

<Response Status="OK">
<Item Name="(Multiple Artists)">1004</Item>
<Item Name="? & The Mysterians">1005</Item>
<Item Name="3 Doors Down">1006</Item>
<Item Name="10.000 Maniacs">1007</Item>
<Item Name="38 Special">1008</Item>
<Item Name="A Flock Of Seagulls">1009</Item>
<Item Name="a-Ha">1010</Item>
<Item Name="A.B. Quintanilla III Presents Kumbia Kings">1011</Item>
<Item Name="Abba">1012</Item>
<Item Name="Abracadabra">1013</Item>
<Item Name="AC/DC">1014</Item>
<Item Name="Acoustic Alchemy">1015</Item>
<Item Name="Adam Ant">1016</Item>
<Item Name="ADELE">1017</Item>
<Item Name="Aerosmith">1018</Item>
<Item Name="Air Supply">1019</Item>
<Item Name="Al Stewart">1020</Item>
.....
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: MCWS
« Reply #5 on: May 18, 2012, 02:39:08 pm »

http://localhost:52199/MCWS/v1/Files/Search?Query=[Media Sub Type]=Movie&Action=MPL&Fields=Name
open the mpl file in a text editor

snippet

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="MCWS - Files - 3628">
<Item>
<Field Name="Key">73774</Field>
<Field Name="Name">Avatar</Field>
</Item>
<Item>
<Field Name="Key">73775</Field>
<Field Name="Name">Bangkok Dangerous</Field>
</Item>
<Item>
<Field Name="Key">73777</Field>
<Field Name="Name">Catch and Release</Field>
</Item>
<Item>
<Field Name="Key">73778</Field>
<Field Name="Name">Cellular</Field>
</Item>
<Item>
<Field Name="Key">73779</Field>
<Field Name="Name">Charlie St. Cloud</Field>
</Item>
Logged
Sean

wilson2517

  • Recent member
  • *
  • Posts: 6
Re: MCWS
« Reply #6 on: May 18, 2012, 03:38:19 pm »

Exelent Scolex but I need show on browser.

Same case of http://10.24.46.30:52199/MCWS/v1/Browse/Children?Id=1000

I capture the Info and I use with my software of Control. ;)
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: MCWS
« Reply #7 on: May 18, 2012, 03:52:03 pm »

What browser are you using? There may be a way to open the file in the browser window instead of having to save/open it with an external program.
Logged
Sean

wilson2517

  • Recent member
  • *
  • Posts: 6
Re: MCWS
« Reply #8 on: May 18, 2012, 04:20:36 pm »

I use Explorer, Chrome, Firefox etc for display commands, I use CommandFusion for Automation this software capture xml.
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: MCWS
« Reply #9 on: May 18, 2012, 04:27:34 pm »

Can you tell CommandFusion that a mpl is actually just xml in another wrapper.
Logged
Sean

wilson2517

  • Recent member
  • *
  • Posts: 6
Re: MCWS
« Reply #10 on: May 18, 2012, 05:09:24 pm »

There is a way to do it like this instruction?

http://10.24.46.30:52199/MCWS/v1/Browse/Children?Id=1000

matter where it shows me the info on the website.
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: MCWS
« Reply #11 on: May 18, 2012, 05:25:55 pm »

I think you are confused on how Children works when you used the example above where you are seeing
<Item Name="(Multiple Artists)">1004</Item> that is simply a folder not the album as I suspect you thought.
The children function is a function for showing subfolders not files.
If you would like to test this you can start with localhost:52199/MCWS/v1/Browse/Children?Id=0 this is the root directory
you can navigate all the way down until there are no more subfolders and then you get the somewhat blank response.
Logged
Sean
Pages: [1]   Go Up