INTERACT FORUM

Please login or register.

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

Author Topic: Control/CommandLine with file names and tree paths  (Read 1187 times)

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Control/CommandLine with file names and tree paths
« on: December 21, 2018, 12:20:46 pm »

Do the MCWS Control/CommandLine functions that take file name or tree paths work on  macOS ?

Examples that do not seem to work:

Code: [Select]
http://192.168.0.10:52199/MCWS/v1/Control/CommandLine?Arguments=%2FAppend%20%2FUsers%2Fedm%2FMusic%2F01.mp3 ==> 200 OK
http://192.168.0.10:52199/MCWS/v1/Control/CommandLine?Arguments=%2FAppend%20TREEPATH%3DPlaylists%5CHoliday ==> 200 OK

If not, is there another method to add items in a tree path to Now Playing, like the second example?
Logged

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Re: Control/CommandLine with file names and tree paths
« Reply #1 on: December 21, 2018, 01:01:18 pm »

Oof - this doesn't even work on Windows:

mc24.exe  /ShowTreePath  "TREEPATH=Audio"
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Control/CommandLine with file names and tree paths
« Reply #2 on: December 21, 2018, 01:07:06 pm »

That's because the syntax does not have "TREEPATH=" in it.

For example, this works:
MC24.exe /ShowTreePath "Audio"
Logged
Matt Ashland, JRiver Media Center

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Re: Control/CommandLine with file names and tree paths
« Reply #3 on: December 21, 2018, 01:10:19 pm »

I see.  My mistake on the Windows example.

How about example 2 in the MCWS commands above?
Logged

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Re: Control/CommandLine with file names and tree paths
« Reply #4 on: December 21, 2018, 01:14:35 pm »

This works on Windows, but not macOS.

Code: [Select]
... /MCWS/v1/Control/CommandLine?Arguments=%2FShowTreePath%20Playlists\Testing1
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Control/CommandLine with file names and tree paths
« Reply #5 on: December 21, 2018, 03:55:31 pm »

It seems like you are trying to shoehorn in command line type commands into MCWS for functions that it already does natively.  For example, PlayPlayList is a native MCWS command.

Maybe you have a use case I'm not familiar with?

Brian.
Logged

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Re: Control/CommandLine with file names and tree paths
« Reply #6 on: December 21, 2018, 04:42:26 pm »

It seems like you are trying to shoehorn in command line type commands into MCWS for functions that it already does natively.  For example, PlayPlayList is a native MCWS command.

Maybe you have a use case I'm not familiar with?

No, because TREEPATH can be any part of the tree, like:

Code: [Select]
/MCWS/v1/Control/CommandLine?Arguments=%2FShowTreePath%20TREEPATH=Audio

so this does not work:

Code: [Select]
MCWS/v1/Playback/PlayPlaylist?PlaylistType=Path&Playlist=Audio
Logged
Pages: [1]   Go Up