Kodi Community Forum
[Discontinued] NHL Gamecenter Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [Discontinued] NHL Gamecenter Addon (/showthread.php?tid=118853)



RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2014-10-12

(2014-10-12, 03:11)juggie Wrote: Carb0, so what is new then that causes the stream to stop playing after a few minutes?

How would custom m3u8 files help this?

I think the cookie changes and XBMC always uses the initial cookie even when the response from the server contains a new cookie.

The idea is to create a server in python that acts as a middlemen between XBMC and the NHL servers. When XBMC requests the m3u8 file from the local server, the local server downloads the real m3u8 file and the keys and creates a new m3u8 file with URLs to the locally saved keys and URLs to the video files on the NHL server. XBMC can then download the video files directly from the NHL servers (these files are not protected) and decrypt them with the locally saved keys.


(2014-10-12, 03:23)Simonizer Wrote: So Rogers logins won't work (we have a free preview until Dec. 31, 2014 if you are an Internet / phone customer of theirs, which I am). I did get that to work on the PS3 app, but not on an Android box running XBMC connected to another TV.

Rogers logins should work in the next update.


RE: [RELEASE] NHL Gamecenter Addon - juggie - 2014-10-12

(2014-10-12, 03:33)Carb0 Wrote:
(2014-10-12, 03:11)juggie Wrote: Carb0, so what is new then that causes the stream to stop playing after a few minutes?

How would custom m3u8 files help this?

I think the cookie changes and XBMC always uses the initial cookie even when the response from the server contains a new cookie.

The idea is to create a server in python that acts as a middlemen between XBMC and the NHL servers. When XBMC requests the m3u8 file from the local server, the local server downloads the real m3u8 file and the keys and creates a new m3u8 file with URLs to the locally saved keys and URLs to the video files on the NHL server. XBMC can then download the video files directly from the NHL servers (these files are not protected) and decrypt them with the locally saved keys.

So when xbmc tried to get the key again, it got a 403?


RE: [RELEASE] NHL Gamecenter Addon - juggie - 2014-10-12

Carb0,

It may be possible to execute something like you describe as a xbmc service.

http://wiki.xbmc.org/index.php?title=How-to:Automatically_start_addons_using_services


RE: [RELEASE] NHL Gamecenter Addon - canucks - 2014-10-12

(2014-10-12, 03:33)Carb0 Wrote:
(2014-10-12, 03:11)juggie Wrote: Carb0, so what is new then that causes the stream to stop playing after a few minutes?

How would custom m3u8 files help this?

I think the cookie changes and XBMC always uses the initial cookie even when the response from the server contains a new cookie.

The idea is to create a server in python that acts as a middlemen between XBMC and the NHL servers. When XBMC requests the m3u8 file from the local server, the local server downloads the real m3u8 file and the keys and creates a new m3u8 file with URLs to the locally saved keys and URLs to the video files on the NHL server. XBMC can then download the video files directly from the NHL servers (these files are not protected) and decrypt them with the locally saved keys.


(2014-10-12, 03:23)Simonizer Wrote: So Rogers logins won't work (we have a free preview until Dec. 31, 2014 if you are an Internet / phone customer of theirs, which I am). I did get that to work on the PS3 app, but not on an Android box running XBMC connected to another TV.

Rogers logins should work in the next update.

Strange that I don't see any freezing in XBMC, it seems to work fine for me, mind you I've only tested for about 5-10mins on a live game. I will try to watch a full game and see what happens. as for plex, my plugin works well IF i am using a ROKU, every other client sh*t the bed...strange. my addon looks like http://imgur.com/a/KCEsl, still need some UI clean up.

Does your URL look similar to this after you call publishpoint?
http://nlds225.cdnak.neulion.com/nlds/nhl/islanders/as/live/islanders_hd_5000.m3u8?nltid=nhlgc&nltdt=137&nltnt=1&rogers=true&hdnea=expires%3D1413076460%7Eaccess%3D%2Fnlds%2Fnhl%2Fislanders%2Fas%2Flive%2F*%7Emd5%FAKITYFAKEFAKEFOOBARONE

that's what I get back and work.


RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2014-10-12

(2014-10-12, 04:07)juggie Wrote: So when xbmc tried to get the key again, it got a 403?

Yes, it got a 403.

(2014-10-12, 08:01)canucks Wrote: Strange that I don't see any freezing in XBMC, it seems to work fine for me, mind you I've only tested for about 5-10mins on a live game. I will try to watch a full game and see what happens. as for plex, my plugin works well IF i am using a ROKU, every other client sh*t the bed...strange. my addon looks like http://imgur.com/a/KCEsl, still need some UI clean up.

Does your URL look similar to this after you call publishpoint?


that's what I get back and work.

Yes, it does look similar. You probably stopped playback before XBMC tried to access a new key.


RE: [RELEASE] NHL Gamecenter Addon - rbrohman - 2014-10-12

The NFL Game Pass add on recently struggled with this issue as well, getting 403 errors when the cookies changed. NFL also uses an HLS implementation for the video. Perhaps their solution will work here?

https://github.com/Alexqw/xbmc-gamepass/issues/128


RE: [RELEASE] NHL Gamecenter Addon - juggie - 2014-10-12

(2014-10-12, 08:01)canucks Wrote:
(2014-10-12, 03:33)Carb0 Wrote:
(2014-10-12, 03:11)juggie Wrote: Carb0, so what is new then that causes the stream to stop playing after a few minutes?

How would custom m3u8 files help this?

I think the cookie changes and XBMC always uses the initial cookie even when the response from the server contains a new cookie.

The idea is to create a server in python that acts as a middlemen between XBMC and the NHL servers. When XBMC requests the m3u8 file from the local server, the local server downloads the real m3u8 file and the keys and creates a new m3u8 file with URLs to the locally saved keys and URLs to the video files on the NHL server. XBMC can then download the video files directly from the NHL servers (these files are not protected) and decrypt them with the locally saved keys.


(2014-10-12, 03:23)Simonizer Wrote: So Rogers logins won't work (we have a free preview until Dec. 31, 2014 if you are an Internet / phone customer of theirs, which I am). I did get that to work on the PS3 app, but not on an Android box running XBMC connected to another TV.

Rogers logins should work in the next update.

Strange that I don't see any freezing in XBMC, it seems to work fine for me, mind you I've only tested for about 5-10mins on a live game. I will try to watch a full game and see what happens. as for plex, my plugin works well IF i am using a ROKU, every other client sh*t the bed...strange. my addon looks like http://imgur.com/a/KCEsl, still need some UI clean up.

Does your URL look similar to this after you call publishpoint?
http://nlds225.cdnak.neulion.com/nlds/nhl/islanders/as/live/islanders_hd_5000.m3u8?nltid=nhlgc&nltdt=137&nltnt=1&rogers=true&hdnea=expires%3D1413076460%7Eaccess%3D%2Fnlds%2Fnhl%2Fislanders%2Fas%2Flive%2F*%7Emd5%FAKITYFAKEFAKEFOOBARONE

that's what I get back and work.

I'm all for 'choice' but in this case is it possible two heads are better then one and it would be worth collaborating on the one addon? Just a thought.

Edit: Would be nice to move this to github and collaborate there.


RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2014-10-13

(2014-10-12, 15:23)rbrohman Wrote: The NFL Game Pass add on recently struggled with this issue as well, getting 403 errors when the cookies changed. NFL also uses an HLS implementation for the video. Perhaps their solution will work here?

https://github.com/Alexqw/xbmc-gamepass/issues/128

I did exactly the same thing and it didn't work. Luckily, I was able to fix it. The Rangers stream has been running for 20 minutes now without issues. I had to request the first key before I started to play the stream. This gave me additional cookies which seem to be necessary. I'm going to update the add-on tomorrow with a quick fix for live games.

(2014-10-12, 19:39)juggie Wrote: I'm all for 'choice' but in this case is it possible two heads are better then one and it would be worth collaborating on the one addon? Just a thought.

Edit: Would be nice to move this to github and collaborate there.

It would probably be a good idea to move this to github.


RE: [RELEASE] NHL Gamecenter Addon - rbrohman - 2014-10-13

That's excellent news! Very glad to hear. Thanks for your ongoing effort.


RE: [RELEASE] NHL Gamecenter Addon - brainjfk - 2014-10-13

Thanks for all the hard work Carb0 and others.


RE: [RELEASE] NHL Gamecenter Addon - juggie - 2014-10-13

(2014-10-13, 02:38)Carb0 Wrote:
(2014-10-12, 19:39)juggie Wrote: I'm all for 'choice' but in this case is it possible two heads are better then one and it would be worth collaborating on the one addon? Just a thought.

Edit: Would be nice to move this to github and collaborate there.

It would probably be a good idea to move this to github.

Canucks,

What makes your addon different?


RE: [RELEASE] NHL Gamecenter Addon - jayace - 2014-10-13

Thanks Carb0, appreciate your work on this.


RE: [RELEASE] NHL Gamecenter Addon - canucks - 2014-10-13

(2014-10-13, 03:46)juggie Wrote:
(2014-10-13, 02:38)Carb0 Wrote:
(2014-10-12, 19:39)juggie Wrote: I'm all for 'choice' but in this case is it possible two heads are better then one and it would be worth collaborating on the one addon? Just a thought.

Edit: Would be nice to move this to github and collaborate there.

It would probably be a good idea to move this to github.

Canucks,

What makes your addon different?

mine has a custom ui and live score update for the current day's game.


RE: [RELEASE] NHL Gamecenter Addon - juggie - 2014-10-13

(2014-10-13, 08:47)canucks Wrote:
(2014-10-13, 03:46)juggie Wrote:
(2014-10-13, 02:38)Carb0 Wrote: It would probably be a good idea to move this to github.

Canucks,

What makes your addon different?

mine has a custom ui and live score update for the current day's game.

Would be interested in collaborating on one addon, or at least on the core features and forking off for the things you would like to do custom to your own. No reason for you both to maintain login code, code to make sure live works, etc.


RE: [RELEASE] NHL Gamecenter Addon - SparkGFX - 2014-10-13

Very nice seeing people get together and put their ideas in to this already awesome add-on. Can't wait to see the finished product. Also if you are looking for some fanart or icons for the add-on, I would be more than happy to assist.