XBMC Supersport Addon

Tinuva

The Magician
Joined
Feb 10, 2005
Messages
12,474
DrJohnZoidberg said:
Some quick updates. After many hours of staring at the screen it would seem that the Plex plugin structure is actually a lot easier to learn than I originally thought.

I have already finished the easy part which is parsing the info from the sites and populating the menus, now comes the hard part to actually try and get the streams to work. :D Will put in a few more hours tonight, but here is some progress I made last night:
Ask if you need tips, but as long as you include the decryption library that the xbmc plugin use, there should be no problem to get it to work.

My apologies for how dirty the code looks, I just worked to get it fixed, not really a programmer, don't know python from left to right, so basically just hack it together every time it breaks. I am 100% certain, it can be done much better than it currently is.
 

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
Ask if you need tips, but as long as you include the decryption library that the xbmc plugin use, there should be no problem to get it to work.

My apologies for how dirty the code looks, I just worked to get it fixed, not really a programmer, don't know python from left to right, so basically just hack it together every time it breaks. I am 100% certain, it can be done much better than it currently is.

Hehe, I know less than you when it comes to Python :p

I was fighting with the rtmp highlight streams the whole night, was trying to get them to work but I have no idea why the Blitz highlights work and the others don't - for some reason the other highlights work fine from the website but when I try and access them via the rtmp stream they cannot be found :mad:

I don't think I'm going to be able to use this method to get the highlights, but Plex has another method using webkit - the bonus here is that you don't need to decrypt the urls but I'm struggling my ass off with the webkit stuff too. I've enlisted the help of some guys on the Plex forum will hopefully have some streams up by next week some time. Problem is that the APIs for Plex are not that well documented and the majority of the plugins out there are using deprecated code which makes it really tough to find examples.

Tinuva, if you could figure out what is going on with those highlight streams it would be awesome - I was using rtmpdump to try and see what the issue was but gave up. Will look at it again when I've had more sleep.
 

Tinuva

The Magician
Joined
Feb 10, 2005
Messages
12,474
Hehe, I know less than you when it comes to Python :p

I was fighting with the rtmp highlight streams the whole night, was trying to get them to work but I have no idea why the Blitz highlights work and the others don't - for some reason the other highlights work fine from the website but when I try and access them via the rtmp stream they cannot be found :mad:

I don't think I'm going to be able to use this method to get the highlights, but Plex has another method using webkit - the bonus here is that you don't need to decrypt the urls but I'm struggling my ass off with the webkit stuff too. I've enlisted the help of some guys on the Plex forum will hopefully have some streams up by next week some time. Problem is that the APIs for Plex are not that well documented and the majority of the plugins out there are using deprecated code which makes it really tough to find examples.

Tinuva, if you could figure out what is going on with those highlight streams it would be awesome - I was using rtmpdump to try and see what the issue was but gave up. Will look at it again when I've had more sleep.
Initially the problem was, that some urls were using .mp4 and others another extension, but when you call this stream from their server, you have to drop the extension which the xbmc plugin didn't do. That fixed some of the streams.

But basically, something on the url changes, and I am not 100% sure yet what, but once we can figure that out, working around the problem should be fine.

I think, now that you have the Blitz streams working, make sure the live streams work, then at least your plex plugin is on par with the xbmc plugin. The other highlight streams is a issue with how the supersport deal with those URLs, and just something we need to figure out.
 

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
Initially the problem was, that some urls were using .mp4 and others another extension, but when you call this stream from their server, you have to drop the extension which the xbmc plugin didn't do. That fixed some of the streams.

But basically, something on the url changes, and I am not 100% sure yet what, but once we can figure that out, working around the problem should be fine.

I think, now that you have the Blitz streams working, make sure the live streams work, then at least your plex plugin is on par with the xbmc plugin. The other highlight streams is a issue with how the supersport deal with those URLs, and just something we need to figure out.

I have those random Blitz streams working fine now but struggling a bit with live streams. Has something to do with how Plex transcodes the stream, it is receiving the data but doesn't want to push it to my devices, this may be bandwidth related though as everything is going through my PC at home so will have to check when I get home later.

Will update the code on Github a little later.
 

Tinuva

The Magician
Joined
Feb 10, 2005
Messages
12,474
The difference between the live streams and the blitz streams are, they push different settings through to the rtmp stream servers.

- Blitz streams are normal video file, ie. it has a play time, of lets say 45 seconds, or 1 minute 33 seconds, and this data is passed through to the player. The player can also buffer the whole stream before starting to play it, since it knows how much data +- to expect.
- Live streams have no play time, ie. the time could technically be unlimited, so you shouldn't pass through a time limit, or a setting that it is a stream and not a file that is being played. Technically the blitz stuff are just regular files that are being played back.

This is something you should find in the plex api. I still think you can get the live streams to work before you worry about the other highlights.
 

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
The difference between the live streams and the blitz streams are, they push different settings through to the rtmp stream servers.

- Blitz streams are normal video file, ie. it has a play time, of lets say 45 seconds, or 1 minute 33 seconds, and this data is passed through to the player. The player can also buffer the whole stream before starting to play it, since it knows how much data +- to expect.
- Live streams have no play time, ie. the time could technically be unlimited, so you shouldn't pass through a time limit, or a setting that it is a stream and not a file that is being played. Technically the blitz stuff are just regular files that are being played back.

This is something you should find in the plex api. I still think you can get the live streams to work before you worry about the other highlights.

Thanks. I believe I have set the correct parameters as it's receiving the stream on the Plex Server end but it's not getting transcoded properly. Think this has something to do with how Plex handles live rtmp streams, which is not that great.
 

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
Initially the problem was, that some urls were using .mp4 and others another extension, but when you call this stream from their server, you have to drop the extension which the xbmc plugin didn't do. That fixed some of the streams.

But basically, something on the url changes, and I am not 100% sure yet what, but once we can figure that out, working around the problem should be fine.

I think, now that you have the Blitz streams working, make sure the live streams work, then at least your plex plugin is on par with the xbmc plugin. The other highlight streams is a issue with how the supersport deal with those URLs, and just something we need to figure out.

Haha, figured out the highlights :D

All highlight packages working in my plugin now. PM'd you with the fix so you can fix the XBMC plugin if you have time (although it seems there are more problems with the highlights in the XBMC plugin than just the ability to play them).
 

Tinuva

The Magician
Joined
Feb 10, 2005
Messages
12,474
Thanks to DrJohnZoidberg I added a fix for the highlights to the plugin and pushed it through to the repository.

Tested a bunch of random highlights, and they all seem to work.

I may have to later on update the parsing, the menus seem a little out of sync, but the streams listed at least plays now. Could watch the sonny bill williams vs francios botha boxing video in the highlights section.

Current version is now 1.1.0 for DSTV Supersport plugin.
 
Last edited:

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
Thanks to DrJohnZoidberg I added a fix for the highlights to the plugin and pushed it through to the repository.

Tested a bunch of random highlights, and they all seem to work.

I may have to later on update the parsing, the menus seem a little out of sync, but the streams listed at least plays now. Could watch the sonny bill williams vs francios botha boxing video in the highlights section.

Glad we could get everything working.

I have also basically completed the Plex plugin, I just want to add a few speed optimizations and error checking then will commit everything to the Github repo.

There are just two bugs in the Plex plugin that won't be fixed anytime soon:

1. The live streams will only work on the desktop clients (the live streams don't like being transcoded for mobile devices - probably will get fixed sometime in the future though by the Plex devs).
2. The plugin can't currently play any streams on the Plex\Web application - this too seems to be a Plex bug and should be resolved in the future sometime.

Damn, now hopefully I can get some sleep. I can't go to bed when code isn't working :twisted:
 

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
Hey all,

I have finished to first beta version of the plug in for Plex. I haven't yet tested the live streams but they should work as long as it isn't getting transcoded. This basically means that live streams will only work on desktop clients (Windows, Mac and Linux Plex for Home Theatre).

If you want to try out this plug-in it would be great if you could send me feedback on what is and isn't working.

Highlight streams should work on all devices (I have tested it with iOS, Android and the desktop player on Linux).

To install:

1. Head over to https://github.com/drzoidberg33/SuperSport.bundle.
2. Click on the little Cloud with the down arrow that says ZIP and download the zip file.
3. Extract and rename the contents of the ZIP file from SuperSport.bundle-master to SuperSport.bundle.
4. Follow the rest of the instructions from the Readme file.

If you have any issues please give me a shout.
 
Last edited:

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
Just tested it on my iPad and it works flawlessly.Great work!

The Plex one or xbmc? If you have the plex one can you test the streams on a Windows client? I have confirmed that both highlights and live streams work on the Linux client already. Thanks!
 

Speedster

Honorary Master
Joined
May 2, 2006
Messages
21,675
Great work everyone! I am getting a little confused as to which posts relate to Plex and which to XBMC though. Perhaps start a new thread dedicated to the Plex add-on?
 

DJ...

Banned
Joined
Jan 24, 2007
Messages
70,287
Tried 1.1.0 on Eden and I either get no files in the highlights sub-sections or a script failed error. Blitz for example gives a script failed error since the update and I can't find highlights for anything. Live streaming still working fine...
 

ajules

Expert Member
Joined
Mar 23, 2010
Messages
1,991
The Plex one or xbmc? If you have the plex one can you test the streams on a Windows client? I have confirmed that both highlights and live streams work on the Linux client already. Thanks!
The Plex one for Windows works perfectly - both Live and highlight streams.
 

DrJohnZoidberg

Honorary Master
Joined
Jul 24, 2006
Messages
23,995
Great work everyone! I am getting a little confused as to which posts relate to Plex and which to XBMC though. Perhaps start a new thread dedicated to the Plex add-on?

New thread here: http://mybroadband.co.za/vb/showthread.php/504170-Plex-Supersport-Addon

Tried 1.1.0 on Eden and I either get no files in the highlights sub-sections or a script failed error. Blitz for example gives a script failed error since the update and I can't find highlights for anything. Live streaming still working fine...

Yep, I noticed that too. There is something going wrong with the parsing from the website, I'll take a look at it but I think Tinuva knows that code better than me.

The Plex one for Windows works perfectly - both Live and highlight streams.

Thanks, that's great news!
 
Top