INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Mac => Topic started by: MrBiff on December 21, 2018, 12:20:46 pm

Title: Control/CommandLine with file names and tree paths
Post by: MrBiff 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?
Title: Re: Control/CommandLine with file names and tree paths
Post by: MrBiff on December 21, 2018, 01:01:18 pm
Oof - this doesn't even work on Windows:

mc24.exe  /ShowTreePath  "TREEPATH=Audio"
Title: Re: Control/CommandLine with file names and tree paths
Post by: Matt 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"
Title: Re: Control/CommandLine with file names and tree paths
Post by: MrBiff 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?
Title: Re: Control/CommandLine with file names and tree paths
Post by: MrBiff 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
Title: Re: Control/CommandLine with file names and tree paths
Post by: blgentry 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.
Title: Re: Control/CommandLine with file names and tree paths
Post by: MrBiff 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