INTERACT FORUM

Please login or register.

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

Author Topic: playlist sub-folder path for unified remote  (Read 3201 times)

akhunaton

  • Regular Member
  • World Citizen
  • ***
  • Posts: 136
  • I Love Music
playlist sub-folder path for unified remote
« 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
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: playlist sub-folder path for unified remote
« Reply #1 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.
Logged

akhunaton

  • Regular Member
  • World Citizen
  • ***
  • Posts: 136
  • I Love Music
Re: playlist sub-folder path for unified remote
« Reply #2 on: June 22, 2017, 12:16:42 pm »

I've tried it both with / or \ with no success.  ?
Logged

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: playlist sub-folder path for unified remote
« Reply #3 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 :)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: playlist sub-folder path for unified remote
« Reply #4 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.
Logged
Matt Ashland, JRiver Media Center

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: playlist sub-folder path for unified remote
« Reply #5 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.
Logged

akhunaton

  • Regular Member
  • World Citizen
  • ***
  • Posts: 136
  • I Love Music
Re: playlist sub-folder path for unified remote (SOLVED)
« Reply #6 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!
Logged
Pages: [1]   Go Up