XBMC Community Forum
[RELEASE] NHL Gamecenter Addon - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] NHL Gamecenter Addon (/showthread.php?tid=118853)



[RELEASE] NHL Gamecenter Addon - Carb0 - 2012-01-05 16:49

[Image: icon.png]

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


Features
- Live Games (Frodo only)
- Condensed Games
- Full Games
- Classic Games
- 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. It uses HTTP streams (not supported in Dharma and Eden) and RTMP streams.


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. If you're using Dharma set "Use RTMP streams" to true in the addon settings
5. Start the addon
6. Choose a game
7. 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 don't work in Eden. (Possible fixes: Update to Frodo, apok's fix (Linux), Margo's XBMC Build with PVR Support (Windows))


Changelog
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


Download
Repository


- flameboy54 - 2012-01-06 05:00

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?


- Carb0 - 2012-01-06 12:35

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?availgames=condensed&user=USERNAME&pass=PASSWORD


- Carb0 - 2012-01-07 03:09

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

@flameboy54
I hope it works now.


- doctor78 - 2012-01-08 19:28

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!


- Carb0 - 2012-01-08 19:39

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.


Live Not Working? - GetOffMyLawn - 2012-01-11 05:33

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.


- atlkidz - 2012-01-11 07:29

i am getting a error script failure gamecenter.py when i try to watch a classic game.any help


- thrillerbee - 2012-01-11 20:13

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.


- Carb0 - 2012-01-11 22:17

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.