More > JRiver Media Center 33 for Windows
MCWS/v1/Files/Current?ActiveFileOnly=1 returns too much
masterjoe:
Hi there,
love MCWS and use it for automation.
There seems to be a bug when calling /MCWS/v1/Files/Current?ActiveFileOnly=1 in Theater View on the Search page!
This command returns ALL files instead of only the one where the cursor box is at!!
This way my automation becomes VERY slow as a lot of data needs to be processed!!
However the doc says the list would be reduced to only one file with ActiveFileOnly=1 - this is not the case!!
Please correct the behavior so that ANY command with ActiveFileOnly=1 ONLY returns one single file at any time!
In Theater View this shall be where the cursor box is at and nothing else.
Thanks 8)
Matt:
You also need to set ActiveFile for it to trim to only that file.
masterjoe:
Err, well, but I do not have any key when I want to find out what the currently selected file IS?
It would be nice if ActiveFileOnly=1 *without* any provided Key will return the file that has the selection rectangle around it.
In Theater View I have otherwise no other option to find out where the selection rectangle is...
Or is there any other option to get the file under the selection rectangle?
zybex:
Have you tried just "http://localhost:52199/MCWS/v1/Files/Current?action=JSON" ? Works for me.
masterjoe:
Just to clarify things:
http://localhost:52199/MCWS/v1/Files/Current?action=JSON does work UNTIL you go to something like the search page with a search result with more than one file. Then the MCWS call delivers ALL files in the search result. This is not the desired result in my use case! Also the huge amount of returned data (from the search result) stalls my automation and everything becomes sluggish, slow and unresponsive.
Therefore I used the additional parameter ActiveFileOnly=1 with the intent to reduce the data to ONLY the selected item under the selection box. This SHOULD return only one file. I thought this would return only the selected file with the selection box around it. It did not. It STILL returns all files on the search page. So I considered this a bug as the result is not limited to one file only.
I am looking for an option that ONLY and really ONLY delivers the file that is below the selection box in Theater View.
In search view when you are over the the virtual keyboard (selection box is around a letter) NO file should be returned unless you go to the right and select a file from the result. And then ONLY ONE file (the one where the selection box is around) shall be returned.
I hope that clarified the issue.
So I want to get the selection box file ONLY on every page and in any case in Theater View. If the selection box is above NO file (e.g. over the virtual keyboard letters) then no file shall be returned.
THX
Navigation
[0] Message Index
[#] Next page
Go to full version