INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Is it possible to set a tag to a specific value via a MCC or MCWS command?  (Read 206 times)

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2248

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!

Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2812
Re: Is it possible to set a tag to a specific value via a MCC or MCWS command?
« Reply #1 on: February 17, 2025, 03:35:07 am »

MCWS has /File/SetInfo to do that.
Logged

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2248
Re: Is it possible to set a tag to a specific value via a MCC or MCWS command?
« Reply #2 on: February 17, 2025, 10:50:00 am »

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!
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2812
Re: Is it possible to set a tag to a specific value via a MCC or MCWS command?
« Reply #3 on: February 17, 2025, 12:53:04 pm »

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
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2054
Re: Is it possible to set a tag to a specific value via a MCC or MCWS command?
« Reply #4 on: February 17, 2025, 01:29:12 pm »

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"
Logged

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2248
Re: Is it possible to set a tag to a specific value via a MCC or MCWS command?
« Reply #5 on: February 17, 2025, 01:58:44 pm »

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.
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball
Pages: [1]   Go Up