INTERACT FORUM
Windows => Plug-in Development => Topic started by: wilson2517 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
-
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.
-
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
?
-
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/
-
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>
.....
-
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>
-
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. ;)
-
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.
-
I use Explorer, Chrome, Firefox etc for display commands, I use CommandFusion for Automation this software capture xml.
-
Can you tell CommandFusion that a mpl is actually just xml in another wrapper.
-
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.
-
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.