INTERACT FORUM

More => Old Versions => JRiver Media Center 23 for Windows => Topic started by: akhunaton on June 21, 2017, 12:07:09 pm

Title: playlist sub-folder path for unified remote
Post by: akhunaton on June 21, 2017, 12:07:09 pm
I am trying to target a playlist subfolder in my custom "unified remote" script. https://github.com/unifiedremote/Docs

the following works great to play a playlist from root:

actions.radio1 = function ()
os.start("MC23.exe","/MCWS/v1/Playlist/Files?Zone=Player&ZoneType=Name&PlaylistType=Path&Playlist=radio1&Action=Play");
end

but when i try to target a playlist in a group it does not work. Any ideas?:

actions.radio1 = function ()
os.start("MC23.exe","/MCWS/v1/Playlist/Files?Zone=Player&ZoneType=Name&PlaylistType=Path&Playlist=radio\radio1&Action=Play");
end

thanks for your help, Cameron
Title: Re: playlist sub-folder path for unified remote
Post by: blgentry on June 21, 2017, 12:41:13 pm
It's probably the backslash in the path.  Backslashes are only used by Windows file systems.  I don't think a web application would understand them.

Brian.
Title: Re: playlist sub-folder path for unified remote
Post by: akhunaton on June 22, 2017, 12:16:42 pm
I've tried it both with / or \ with no success.  ?
Title: Re: playlist sub-folder path for unified remote
Post by: leezer3 on June 22, 2017, 02:03:01 pm
Try escaping the backslash; IIRC MC's escape character s the backslash, but it shouldn't take more than a couple of mins to try both.

If not, I'm sure Matt or someone will be along in a minute :)
Title: Re: playlist sub-folder path for unified remote
Post by: Matt on June 22, 2017, 02:04:33 pm
Try escaping the backslash; IIRC MC's escape character s the backslash, but it shouldn't take more than a couple of mins to try both.

If not, I'm sure Matt or someone will be along in a minute :)

Well I tried playing a playlist group with a slash in it from the command line and it just worked fine.  So there must be something eating the slash in the method you're using.
Title: Re: playlist sub-folder path for unified remote
Post by: blgentry on June 22, 2017, 02:29:17 pm
So that's rather weird.  I just tried it using a URL in a web browser and it works WITH A BACKSLASH as the separator.  It does *not* work with a forward slash.  That seems backwards to me, but OK.

For the OP, maybe your scripting language uses backslash as an escape character and is "eating" it?

Good luck,

Brian.
Title: Re: playlist sub-folder path for unified remote (SOLVED)
Post by: akhunaton on June 22, 2017, 02:35:34 pm
yes, you are right. I tested and can see that it works properly when used in the browser. So I tried \\ and it worked!  ;D
Thanks for the help guys!