INTERACT FORUM
Windows => JRiver Media Center 33 for Windows => Topic started by: datdude on February 15, 2025, 01:47:13 pm
-
I'd like to be able to set a simple tag via my remote when browsing a specific video file in Theater View that would either 'check' or 'uncheck' a custom library field I created called "Watched Later".
I did not see any documentation for setting a tag either via MCC or MCWS, but I may have missed it.
If this is not possible, can that type of command be added in the future?
Thanks!
-
MCWS has /File/SetInfo to do that.
-
Ah, thanks for that! I was looking for something related to 'tagging'. But this makes sense since its just related to the MC database file info, not necessarily the file tag.
So, if I know the currently selected file's key, I can get this to work. But how do I get that key on the fly and fill it in to the SetInfo command?
I realize this command can get the key I need: http://localhost:52199/MCWS/v1/Files/Current?Action=JSON&Fields=key
But, I'm not a coder, so I have no idea how to merge the two together into one set of executable code. I don't expect anyone to write the code for me, but is there an example on the Interact board of how you might be able to do this, even if it is for other commands?
Thanks!
-
You're going to need some batch file/script to patch the two calls together. It's simple, but some minor coding is needed.
This would be a nice feature - I've made a feature request:
https://yabb.jriver.com/interact/index.php/topic,140638.0.html
-
I'm using MCUtils for this kind little updates
e.g. pscriptor command to add value "1" to field "Watch List" for selected file(s)
pscriptor --mcexpression "1" -F "Watch List"
-
Thank you both. Hoping Matt could add in Zybex's suggestion, then no scripting is needed, just a single HTTP command.
Will definitely check out MCUtils in the interim.