INTERACT FORUM
More => Old Versions => JRiver Media Center 23 for Windows => Topic started 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
-
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.
-
I've tried it both with / or \ with no success. ?
-
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 :)
-
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.
-
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.
-
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!