Hi everyone, longtime developer but new to Plex and new to Python. Been fumbling my way through the docs, forums and github trying to piece something together.
I’ve developed a channel for nbcsports.com/video but have a few questions. If you’re interested you can see the code here: https://github.com/datvance/NBCSports.bundle
The channel works for me on Roku and Plex/web but not PHT on OSX. Even though it works, the videos (especially longer ones) buffer quite a bit and not sure if that’s something I’m doing/not doing. I grab a SMIL file, but not the one with all the different bitrates, etc. Depending on the query string parameters you pass to the SMIL URL you can get different files. Right now I just use a basic one and grab the direct .mp4 link to the video.
So it doesn’t use a URL Service, and instead uses the method described here:
There’s a Services branch in the repo with my attempt at a service. Not sure why it’s not working though.
I guess my questions are these:
1. Why shouldn’t it work on PHT? It’s just a direct link to an .mp4.
2. Are the docs up to date? For instance, on the URL Service page it says all you have to do to define a service is add a block to the Info.plist, but all the examples in the Services.bundle on github and the forums use a ServiceInfo.plist file.
http://dev.plexapp.com/docs/channels/services/url.html
https://forums.plexapp.com/index.php/topic/62610-channel-development-templates/
3. Because of the way nbcsports.com is structured, I don’t see how I can implement a URL Service that would work with e.g. PlexIt. The video is loaded in an iframe through ajax, so just doing a request on the page URL wouldn’t return any useful data about the current video being played e.g. http://nbcsports.com/video could be showing any video (loaded in the iframe though ajax). Any ideas? The iframe player URL is the useful URL, but I can’t expect the user to find that and plexit.
4. It can be quite slow (and time out) when parsing the html. Any tips for speed-up?
Thanks.