AddPrefixHandler

Anybody got info on how to provide a variable with this from an URL?

 

 

In essence, I created a channel, with  a prefix handler, and when I call http://:32400// I can get it to respond, just can't figure out howto pass some parameters

 

 

/T

Anybody got info on how to provide a variable with this from an URL?

In essence, I created a channel, with  a prefix handler, and when I call http://:32400// I can get it to respond, just can't figure out howto pass some parameters

/T

Nobody?

/T

I'm not sure what you are trying to do, but the easiest way is to use the route decorator on your function in your channel code, like so:

@route('/video/blah/getvideos')
def GetVideos(title, url):
  ...
  ...

You can then get the XML output from PMS with:

http://localhost:32400/video/blah/getvideos?title=My%20Videos&url=http%3a%2f%2fwww.mysite.com

(Note: any changes to a @route require a restart of PMS)

I'm not sure what you are trying to do, but the easiest way is to use the route decorator on your function in your channel code

Then you're not the only one....I too have no idea about what I'm doing  :lol:

But thanks, I'll give it a spin

/T

And FUI, used here:

https://forums.plex.tv/topic/113976-parental-control-channel-for-pms/?p=692862

/T

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.