[RELEASE] NHL Gamecenter Addon

  Thread Rating:
  • 14 Votes - 4.07 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #1
[Image: icon.png]

You need an NHL Gamecenter Account to use this addon:
https://gamecenter.nhl.com/nhlgc/secure/gclsignup


Features
- Live Games (Gotham only)
- Condensed Games
- Full Games
- Game Highlights
- HD Streams (720p)
- Choose between home and away feeds


How it works
The addon accesses gamecenter.nhl.com and downloads xml files containing the stream url.


How to use the addon
1. Install my repository
2. Download the addon
3. Enter your NHL Gamecenter username (not email address) and password in the addon settings
4. Start the addon
5. Choose a game
6. Enjoy


How to enable team logos
1. Go to Addon-settings -> Visual Settings
2. Enable "Use Thumbnails"
3. Choose thumbnail format and background
4. Enable "Generate Thumbnails on next restart"
5. Restart the addon


Known Issues
- Away feed is always shown even if it is not available
- The video quality setting "Best" does choose the best video quality available when you start the stream but it doesn't switch to lower quality streams if your internet connection isn't fast enough. That's a limitation of XBMC. It should work if XBMC is updated to automatically switch between streams.
- Live Games only work in XBMC Gotham.


Changelog
0.6.0
- Fixed live games
- Added game highlights
- Added faster way to acces last night's games
- Removed classic games

0.5.6
- Fixed live games in Gotham (all platforms)
- Changed minimum API for python to 2.1

0.5.5
- Fixed live games (thanks to Hyperium)

0.5.4
- Fixed a small error

0.5.3
- Code cleanup

0.5.2
- Possible fix for the random crashes

0.5.1
- Improved Live game strings

0.5.0
- Added option to select stream quality for each game individually (Video Quality (HTTP): Always Ask)
- Added option to display "@" instead of "vs." in game titles
- Date and time is localized now
- Fixed title strings for archived and condensed games on OPENELEC

0.4.4
- Fixed archived and condensed games on OPENELEC

0.4.3
- Fixed archived and condensed games

0.4.2
- Fixed archived and condensed games

0.4.1
- Fixed archived and condensed games for season 2012/2013
- Added support for 4500 kbit/s streams

0.4.0
- Added 16:9 thumbnails
- Fixed archived and condensed games for season 2012/2013
- Fixed stream quality selection for live games

0.3.4
- Fixed playback on Raspberry Pi

0.3.3
- Added option to change feed selection method

0.3.2
- Fixed first login

0.3.1
- Fixed logo download

0.3.0
- Added team logos
- Added thumbnails for classic games
- Added option to display team names abbreviated
- Added addon fanart
- Changed addon icon
- Changed video titles
- Faster scraping of classic games

0.2.2
- Fixed login

0.2.1
- Fixed Live games

0.2.0:
- Added RTMP streams (Dharma compatible)
- Added Classic games
- Changed stream access method

0.1.0:
- initial release
(This post was last modified: 2014-10-17 23:39 by Carb0.)
find quote
flameboy54 Offline
Junior Member
Posts: 2
Joined: Jan 2012
Reputation: 0
Post: #2
Thanks, it's a great add-on.

I currently have a live game on and it's extremely choppy. Also, I don't see any content under highlights, archive or condensed. Does that seem right?
find quote
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #3
If the video is choppy your internet connection is not fast enough to watch the video at the chosen bitrate or the servers are not fast enough because too many people are watching the game. Try to change the bitrate in addon settings.

Does it show an error message when you click on higlights, condensed or archive?

What do you get if you enter this link in a browser? (Replace USERNAME and PASSWORD with your username and password)
http://dir.boxee.tv/apps/nhl/nhl.php?ava...s=PASSWORD
(This post was last modified: 2012-01-06 18:51 by Carb0.)
find quote
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #4
Update:
- Added RTMP streams (Dharma compatible)
- Added Classic games
- Changed stream access method

@flameboy54
I hope it works now.
find quote
doctor78 Offline
Junior Member
Posts: 13
Joined: Dec 2011
Reputation: 0
Post: #5
Gr8 work!!!

Do you think you could use that same source code and transform it as an NBA League Pass addon? That would be AWSOME!
find quote
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #6
doctor78 Wrote:Gr8 work!!!

Do you think you could use that same source code and transform it as an NBA League Pass addon? That would be AWSOME!

You probably couldn't use very much. And because I don't have a NBA League Pass I can't try to code an addon for it.
find quote
GetOffMyLawn Offline
Junior Member
Posts: 3
Joined: Jan 2012
Reputation: 0
Post: #7
Thanks - this looks great!
The archived, condensed, and classic games are all working for me and work smoothly.

But 'Live' gives me an error, and won't display a list of available games -- here's what the logs have.

Quote:22:26:54 T:3212 NOTICE: Mode: 8
22:26:54 T:3212 NOTICE: URL: /live
22:26:54 T:3212 NOTICE: Name: Live
22:26:54 T:3212 NOTICE: /live
22:26:55 T:3212 NOTICE: File Saved
22:26:55 T:3212 NOTICE: Download: 1. try
22:26:55 T:3212 NOTICE: Download successful
22:26:55 T:3212 NOTICE: File Saved
22:26:55 T:3212 ERROR: Error Type: <type 'exceptions.IndexError'>
22:26:55 T:3212 ERROR: Error Contents: list index out of range
22:26:55 T:3212 ERROR: Traceback (most recent call last):
File "C:\Users\heyrob\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter\gamecenter.py", line 508, in <module>
LIVE(url,name)
File "C:\Users\heyrob\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter\gamecenter.py", line 315, in LIVE
gcl = xml2.getElementsByTagName('link')[0].nodeValue
IndexError: list index out of range
22:26:55 T:3280 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nhl-gamecenter/?url=%2Flive&mode=8&name=Live
22:26:55 T:3280 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhl-gamecenter/?url=%2Flive&mode=8&name=Live) failed

I'll admit I'm in unfamiliar territory here so I'm not sure how to even troubleshoot the error, or determine whether it's a problem on my end or not. As I said, archived content seems to work fine.
find quote
atlkidz Offline
Junior Member
Posts: 25
Joined: Dec 2011
Reputation: 0
Post: #8
i am getting a error script failure gamecenter.py when i try to watch a classic game.any help
find quote
thrillerbee Offline
Junior Member
Posts: 49
Joined: May 2011
Reputation: 0
Post: #9
Has anyone tried this on OS X (Eden beta)? I get a script error when I try to run the addon: http://pastie.org/3167580

Any help would be much appreciated. Thanks.
(This post was last modified: 2012-01-11 20:14 by thrillerbee.)
find quote
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #10
I don't have access to my computer currently but I'll try to help.

@GetOffMyLawn
It was working for me. Do you have a Gamecenter Live or a NHL Vault account? I'll have a closer look at it on saturday when I get home. I hope you can wait that long. Sorry.

@atlkidz
Can you post a debug log?

@thrillerbee
I developed the addon on OSX.Laugh I got the same error from time to time but I read online that it's a problem with XBMC. A restart of XBMC should help.
find quote
thrillerbee Offline
Junior Member
Posts: 49
Joined: May 2011
Reputation: 0
Post: #11
Carb0 Wrote:@thrillerbee
I developed the addon on OSX.Laugh I got the same error from time to time but I read online that it's a problem with XBMC. A restart of XBMC should help.

A restart will allow the addon to start, but the only option presented is "Check your login credentials". I have verified that the credentials in /Users/user_1/Library/Application Support/XBMC/userdata/addon_data/plugin.video.nhl-gamecenter/settings.xml work on the actual NHL Gamecenter website.

Here's a log from the attempt: http://pastie.org/3169301

UPDATE: Same issue on my Linux HTPC. I can log into the website with the same credentials. What else could be causing this? Thanks!
(This post was last modified: 2012-01-12 01:37 by thrillerbee.)
find quote
thrillerbee Offline
Junior Member
Posts: 49
Joined: May 2011
Reputation: 0
Post: #12
Also, has anyone had any luck changing their "location" according to NHL gamecenter? I keep getting blacked out on local games even when my local affiliate isn't carrying the game.

Thanks again.
find quote
GetOffMyLawn Offline
Junior Member
Posts: 3
Joined: Jan 2012
Reputation: 0
Post: #13
Hey Carb0 -- first off, don't apologize! I really appreciate that you developed this at all; thanks Smile

My account is a Gamecenter Live account.
find quote
GetOffMyLawn Offline
Junior Member
Posts: 3
Joined: Jan 2012
Reputation: 0
Post: #14
thrillerbee Wrote:Also, has anyone had any luck changing their "location" according to NHL gamecenter? I keep getting blacked out on local games even when my local affiliate isn't carrying the game.

Thanks again.

I think that local games are always blacked out on GameCenter; not 100% sure on that one. I do know that they pull your location from your IP (at least, here in Canada they do)
find quote
smoothaseggs Offline
Junior Member
Posts: 2
Joined: Jan 2012
Reputation: 0
Post: #15
thrillerbee Wrote:A restart will allow the addon to start, but the only option presented is "Check your login credentials". I have verified that the credentials in /Users/user_1/Library/Application Support/XBMC/userdata/addon_data/plugin.video.nhl-gamecenter/settings.xml work on the actual NHL Gamecenter website.

Here's a log from the attempt: http://pastie.org/3169301

UPDATE: Same issue on my Linux HTPC. I can log into the website with the same credentials. What else could be causing this? Thanks!

thrillerbee, i was having the same issue with the "check your login credentials", I actually went to the NHL gamecenter site and changed my password. In XBMC, instead of adding my email as the login, I used my actual login name and the changed password was able to access gamecenter.

However, I am only able to retrieve the classic and condensed games. I keep getting an error myself with accessing the live games list. I am using ATV2. Hopefully we can resolve this Smile Amazing app by the way!
find quote
Post Reply