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 - Ronald Pagan - 2013-10-10

I am disappoint. Oh well, was good while it lasted. Thanks carb0


RE: [RELEASE] NHL Gamecenter Addon - icetech - 2013-10-10

only used the addon for a couple days, was awesome.. thanks carb for making itSmile I hope the HS addon can get the picture quality that yours had in xbmc... its still lacking a bit not sure why.. in a browser its way better than GCL was though..


RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2013-10-10

(2013-10-10, 00:21)Hyperium Wrote: Carb0 try changing the User Agent for the XBMC player that it sends whenever trying to play the file. I believe they recently blocked the XBMC UA and VLC UA. I only tend to think this because these .m3u8 files work in mobile browsers. So I would suggest trying a mobile UA first, that or a Mac Quicktime UA since these .m3u8 links work on a Mac through Quicktime.

Very good find. Unfortunately appending "|User-Agent=" to the URL doesn't work. Is there a better way of changing the useragent?


RE: [RELEASE] NHL Gamecenter Addon - Hyperium - 2013-10-10

(2013-10-10, 03:06)Carb0 Wrote:
(2013-10-10, 00:21)Hyperium Wrote: Carb0 try changing the User Agent for the XBMC player that it sends whenever trying to play the file. I believe they recently blocked the XBMC UA and VLC UA. I only tend to think this because these .m3u8 files work in mobile browsers. So I would suggest trying a mobile UA first, that or a Mac Quicktime UA since these .m3u8 links work on a Mac through Quicktime.

Very good find. Unfortunately appending "|User-Agent=" to the URL doesn't work. Is there a better way of changing the useragent?

I've got two things to help out.

Pretty sure this is an encrypted UA that would work. ( May be better to try it out with the RTMP stream )

|User-Agent=AppleCoreMedia%2f1.0.0.8F455%20(AppleTV%3b%20U%3b%20CPU%20OS%204_3%20like%?20Mac%20OS%20X%3b%20de_de

Also here is an Addon that uses encrypted streams through neulion, but they're using the NBA League Pass

Good luck, I'm going to try a few things tomorrow while the games are on and see if I can help out with getting this working for everyone. Also we may all have to use Gotham from now on, but I'm unsure of that as of yet.


RE: [RELEASE] NHL Gamecenter Addon - Hyperium - 2013-10-10

I just got working an encrypted stream from an archived game last night. On the NHL website they use /live/ to stream games from the archive and those are specifically encrypted now - I captured the URL with urlsnooper and converted it into an .m3u8 link from the standard mp4.

From that, I copied the link that harbors the .m3u8 and put the | UA afterwards. How I got it to load was to just replace the link builder section where the condensed game links are built and sent to the player - ( so every game would load the link I put in, of course just for testing )

example. [link].m3u8||User-Agent=AppleCoreMedia%2f1.0.0.8F455%20(AppleTV%3b%20U%3b%20CPU%20OS%204_3%20like%?20Mac%20OS%20X%3b%20de_de)"

All this, is to just show that the file will play if it see's that the UA is from the 'approved' list. If however, I try and play the file without the UA link, it won't play and it's 'rejected'.

Here is a picture to show that it works. The only problem is that it says the 'game has ended' rather than playing the archived game, but I have a feeling it may be able to play live games. ( Upon further review, the flash player see's the live link and plays an archive - it takes care of the rest - As far as the link is concerned it's live. ) I'll try to test more once a game goes live. I'm unsure of where to put the UA for the building of the live games links - but it we figure that part out, I'm sure you will have this addon working again.

Here is a way to get links working through VLC again.

Put this in the Network Protocol section under 'Show More Options' ( Edit options field ) http-user-agent=AppleCoreMedia%2f1.0.0.8F455%20(AppleTV%3b%20U%3b%20CPU%20OS%204_3%20like%??20Mac%20OS%20X%3b%20de_de


RE: [RELEASE] NHL Gamecenter Addon - amd7674 - 2013-10-10

@Hyperium great job. Did you have to run this on Gotham XBMC build? I will try to install it tonight and play with it.

Not 100% sure, but It seems the NFL gamepass (neulion guys) addon (runs on Gotham release) uses UA "android".

headers = {'User-Agent' : 'Android'}

https://github.com/Alexqw/xbmc-gamepass/blob/ee793a0b38df78cc4030bd5be9a8fd718e645179/resources/lib/game_common.py

@Carb0/Hyperium plz let me know if you need any help with testing or something :-)


RE: [RELEASE] NHL Gamecenter Addon - Hyperium - 2013-10-10

(2013-10-10, 14:03)amd7674 Wrote: @Hyperium great job. Did you have to run this on Gotham XBMC build? I will try to install it tonight and play with it.

Not 100% sure, but It seems the NFL gamepass (neulion guys) addon (runs on Gotham release) uses UA "android".

headers = {'User-Agent' : 'Android'}

https://github.com/Alexqw/xbmc-gamepass/blob/ee793a0b38df78cc4030bd5be9a8fd718e645179/resources/lib/game_common.py

@Carb0/Hyperium plz let me know if you need any help with testing or something :-)

During my testing, I used the Gotham build - I'll try XBMC Frodo later tonight and see if everything is still working. I'll also try out the messing with that header option, I'll PM carb0 what I did if it works. Thanks for that.

Edit: Upon further review, Frodo works with the 'Live' game archive also. It should work with both.


RE: [RELEASE] NHL Gamecenter Addon - amd7674 - 2013-10-10

Hyperium I think there is also AES-128 encryption to worry about it as mentioned in the previous post

http://forum.xbmc.org/showthread.php?tid=118853&pid=1524290#pid1524290

We might have to use Gotham build with latest ffmpeg libs to support new encryption stream. I believe both NBA/NFL addons work on gotham builds for live streams.


RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2013-10-10

XBMC uses the specified User-Agent only to get the m3u8 file but uses the normal XBMC UA to download the key an receives an 403 forbidden message (according to Wireshark). But how can we force XBMC to always use the specified User-Agent? I'll have a look how the NBA and NFL add-ons are doing this.


RE: [RELEASE] NHL Gamecenter Addon - Hyperium - 2013-10-10

(2013-10-10, 17:42)Carb0 Wrote: XBMC uses the specified User-Agent only to get the m3u8 file but uses the normal XBMC UA to download the key an receives an 403 forbidden message (according to Wireshark). But how can we force XBMC to always use the specified User-Agent? I'll have a look how the NBA and NFL add-ons are doing this.

I was having this same issue earlier, I'm still unsure about what the solution is yet.

Edit: This may be your solution carb0 http://stackoverflow.com/questions/802134/changing-user-agent-on-urllib2-urlopen


RE: [RELEASE] NHL Gamecenter Addon - Furner - 2013-10-10

Not sure if this makes any difference, but now today I added the add-on to a new system, and my login credentials are being rejected. Maybe NHL is doing some authentication based on the program trying to get into the content?


RE: [RELEASE] NHL Gamecenter Addon - Hyperium - 2013-10-10

(2013-10-10, 18:31)Furner Wrote: Not sure if this makes any difference, but now today I added the add-on to a new system, and my login credentials are being rejected. Maybe NHL is doing some authentication based on the program trying to get into the content?

I just changed the UserAgent that requests the XML from Mozilla to just 'ipad' and it works fine. I did get a authentication error before that, which didn't happen before.

#Header for XML Request
headers = { 'Host' : 'gamecenter.nhl.com',
'User-Agent' : 'ipad',


RE: [RELEASE] NHL Gamecenter Addon - Furner - 2013-10-10

(2013-10-10, 18:34)Hyperium Wrote:
(2013-10-10, 18:31)Furner Wrote: Not sure if this makes any difference, but now today I added the add-on to a new system, and my login credentials are being rejected. Maybe NHL is doing some authentication based on the program trying to get into the content?

I just changed the UserAgent that requests the XML from Mozilla to just 'ipad' and it works fine. I did get a authentication error before that, which didn't happen before.

#Header for XML Request
headers = { 'Host' : 'gamecenter.nhl.com',
'User-Agent' : 'ipad',
Weird, that is not working for me. Pretty sure my account is ok, I can use it online.


RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2013-10-10

It still works for me without changing the user agent. Make sure that you use your username and not your email address. If you're using your username, try clicking on the "default" button in the add-on settings and enter your username and password again. If that doesn't help, try changing your username on https://account.nhl.com/registeredfanlogin.htm. If it still doesn't work post a debug log.


RE: [RELEASE] NHL Gamecenter Addon - Furner - 2013-10-10

(2013-10-10, 19:21)Carb0 Wrote: It still works for me without changing the user agent. Make sure that you use your username and not your email address. If you're using your username, try clicking on the "default" button in the add-on settings and enter your username and password again. If that doesn't help, try changing your username on https://account.nhl.com/registeredfanlogin.htm. If it still doesn't work post a debug log.

Thanks, thats better. For some reason my email address works as the username on the website.