INTERACT FORUM

Windows => Plug-in Development => Topic started by: bdgarcia on October 02, 2011, 11:09:38 pm

Title: MCWS Browse questions
Post by: bdgarcia on October 02, 2011, 11:09:38 pm
When I send the following command:

http://localhost:52199/MCWS/v1/Browse/Children

I get:

<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<Response Status="OK">
<Item Name="Audio">1</Item>
<Item Name="Images">2</Item>
<Item Name="Video">3</Item>
<Item Name="Playlists">4</Item>
</Response>

Can I assume these values will remain constant, or do I need to get the values each time I start to browse?

When I send the command:

http://localhost:52199/MCWS/v1/Browse/Children?id=1

I get the following:

<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<Response Status="OK">
<Item Name="Artists">1000</Item>
<Item Name="Albums">1001</Item>
<Item Name="Recent Albums">1002</Item>
<Item Name="Genres">1003</Item>
<Item Name="Ratings">1004</Item>
<Item Name="All Files">1005</Item>
</Response>

Can I assume these values will remain constant, or do I need to get the values each time I start to browse?

When I send the following command to get a list of albums:

http://localhost:52199/MCWS/v1/Browse/Children?id=1001

How long are the IDs valid for?   It appears they do change, I was doing some testing last night and between last night and tonight the values changed (1st Album ID went from 1070 last nightto 1007 now.)   I have not loaded any new albums.   I did update J River Media Center to build 16.0.179 between the last night and now.


When issuing a Browse\Children?ID=1001
 - Is there any way to page through the result set instead of getting one large result set?

When doing a Browse\Children based on Genre, Artist\Album
Is there any way to filter results based on some type of filter criteria?  For example all albums that have an artist of Beetles.   Or album names that contain Disney?   I see you can search files, but I am trying to search albums.

Thx
Bryan

Title: Re: MCWS Browse questions
Post by: bob on October 03, 2011, 03:21:49 pm
When I send the following command:

http://localhost:52199/MCWS/v1/Browse/Children

I get:

<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<Response Status="OK">
<Item Name="Audio">1</Item>
<Item Name="Images">2</Item>
<Item Name="Video">3</Item>
<Item Name="Playlists">4</Item>
</Response>

Can I assume these values will remain constant, or do I need to get the values each time I start to browse?
They will remain constant. They are DLNA 1st level categories.
Quote
When I send the command:

http://localhost:52199/MCWS/v1/Browse/Children?id=1

I get the following:

<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<Response Status="OK">
<Item Name="Artists">1000</Item>
<Item Name="Albums">1001</Item>
<Item Name="Recent Albums">1002</Item>
<Item Name="Genres">1003</Item>
<Item Name="Ratings">1004</Item>
<Item Name="All Files">1005</Item>
</Response>

Can I assume these values will remain constant, or do I need to get the values each time I start to browse?
You can't assume any container ID's past the first level will remain constant
Quote
When I send the following command to get a list of albums:

http://localhost:52199/MCWS/Children?id=1001/v1/Browse

How long are the IDs valid for?   It appears they do change, I was doing some testing last night and between last night and tonight the values changed (1st Album ID went from 1070 last nightto 1007 now.)   I have not loaded any new albums.   I did update J River Media Center to build 16.0.179 between the last night and now.
When MC restarts, and you re-browse, the containers ID's are used starting at 1000 and increments from there. So, as long as you don't restart MC the ID's will be the same otherwise they'll be different.
Quote

When issuing a Browse\Children?ID=1001
 - Is there any way to page through the result set instead of getting one large result set?
no
Quote
When doing a Browse\Children based on Genre, Artist\Album
Is there any way to filter results based on some type of filter criteria?  For example all albums that have an artist of Beetles.   Or album names that contain Disney?   I see you can search files, but I am trying to search albums.
You could try something like this:
http://localhost:52199/MCWS/v1/Library/Values?Field=Album,Artist&Filter=beatles (http://localhost:52199/MCWS/v1/Library/Values?Field=Album,Artist&Filter=beatles)
Title: Re: MCWS Browse questions
Post by: bdgarcia on October 03, 2011, 06:33:45 pm
Bob,

Thank you for the reqly.    How would I go about requesting an enhancement to provide some type of paging mechanism for browse results?

Thx
Bryan
Title: Re: MCWS Browse questions
Post by: JimH on October 03, 2011, 06:55:08 pm
Just propose it.  Please understand that we have a long list of what we're doing already.