More > JRiver Media Center 33 for Windows
MCWS/v1/Files/Current?ActiveFileOnly=1 returns too much
zybex:
Thanks for clarifying.
I agree, it's a bug. It's not only in Search - in any Theater View where there's a list of files and none is selected, the /Current API call returns all files. It should return an empty array.
Matt:
If nothing is selected it might return all the files. I just searched, selected a file, and http://localhost:52199/MCWS/v1/Files/Current?action=JSON returned just that one file.
zybex:
Outside of Theater View the same call returns an empty array when nothing is select (which makes sense, as "current" is not defined). I think it should do the same in Theather?
Matt:
We can try it next build. Thanks.
Changed: Theater View returns no files instead of all the files when nothing is selected when querying with MCWS.
masterjoe:
--- Quote from: zybex on August 27, 2024, 06:29:29 am ---Thanks for clarifying.
I agree, it's a bug. It's not only in Search - in any Theater View where there's a list of files and none is selected, the /Current API call returns all files. It should return an empty array.
--- End quote ---
It should not be empty if the selection box is around a valid file key!
I want to know which file is currently selected by the selection box cursor in Theater View.
If the cursor is above a non-file item (menus, virtual keyboard etc.) then NO file shall be returned.
But when the selection box cursor is highlighting a valid file key then THIS key shall be returned when the parameter ActiveFileOnly=1 is provided.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version