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 - kabakaylen - 2013-10-13

First off, cannot thank everyone enough for all the effort that has been put into this add-on. It was quite enjoyable watching you guys come up with a solution.

If it's any help I can confirm the functionality of 0.5.5:

WINDOWS:

Live - Not Working (there is no error - just the same problem at 0.5.4 had)
Archived - Working
Condensed - Working
Classic - Working

LINUX - PIVOS M1:

Live - Working
Archived - Working
Condensed - Working
Classic - Working
(not anything major, more just for your information, the add-on crashes while trying to load thumbnails on my pivos linux box)

Thank you so much once again for all the effort you guys have put into this, it's much appreciated!!


RE: [RELEASE] NHL Gamecenter Addon - chekalink - 2013-10-13

Thank you so much.Add-on now working. os ubuntu13.04


RE: [RELEASE] NHL Gamecenter Addon - creche - 2013-10-13

Does anyone know how the official IOS app blackouts the commercials from the stream? I have a short memory; can't remember if the plugin had commercials before, but I am seeing them now.


RE: [RELEASE] NHL Gamecenter Addon - Rando - 2013-10-13

I get commercials and intermission reports for some games, but not for others. I've never been able tobdeduce a pattern in which games the NHL feeds those out for and which it doesn't.


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

(2013-10-13, 18:53)Carb0 Wrote: I looks like live games it don't work on Windows. I'll try to fix that.

Hey Carb0,

Instead of having a python thread (I assume, I have not read the new code) write the m3u8 file every 10 seconds to disk and then have the xbmc player read from this, how about instead implement a tiny mirco http server in a thread (using asyncore, built into python) and point the xbmc player at this tiny server. Then have the python http server do the request against the neulion server, parse it, strip out what you don't want, then reply back.

I can do some example code if need be but I am not sure what the restrictions of python within xbmc are.


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

From what I can tell from a debug log, whenever it reads the .key file on Windows, it doesn't add any '/'s to the location of the .key file. It looks like this

'C:UsersHyperiumAppDataRoamingXBMCaddonsplugin.video.nhl-gamecenterm3u8/home0.m3u8.key'

I'm pretty positive it's that Linux and OSX handle URLs and Local files different from Windows. Windows can't interchange URL links which have forward slashes and Local links which are backwards but Linux and OSX can.


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

(2013-10-13, 20:29)Hyperium Wrote: From what I can tell from a debug log, whenever it reads the .key file on Windows, it doesn't add any '/'s to the location of the .key file. It looks like this

'C:UsersHyperiumAppDataRoamingXBMCaddonsplugin.video.nhl-gamecenterm3u8/home0.m3u8.key'

If possible within xbmc's python implementation I think a tiny http proxy would be best and remove having to write to disk, remove 10 second loop and let xbmc request the playlist when ever it wants.


RE: [RELEASE] NHL Gamecenter Addon - apok - 2013-10-13

Running an http server is excessive imho. cURL supports having a custom user agent passed to it.

I'll work on the xbmc changes this week.


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

(2013-10-13, 20:45)apok Wrote: Running an http server is excessive imho. cURL supports having a custom user agent passed to it.

I'll work on the xbmc changes this week.

Right but its not just the initial request, when xbmc player requests the .key file, the same user agent you passed to the player with the m3u8 file has to be present in that request. And while fixing this in xbmc is certainly the most ideal solution, its not going to be a fix for everyone running 12, and will only help on 13 going forward. In the intrim a tiny http proxy server listining while nhl game center is running and proxying the requests to neulion using httplib/urllib and rewriting the .m3u8 file as required on the request may be the most ideal option.


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

juggie can you post the example code for a http server. It seems we need the http server solution to make live games work on Windows until apok fixed the bug in XBMC.


RE: [RELEASE] NHL Gamecenter Addon - avens19 - 2013-10-13

I've been playing with the code and I am able to get ffmpeg to load the correct key file but this ends up crashing XBMC. Not sure why this is happening. Here is my debug log:

http://pastebin.com/YSJaJ1ws

EDIT: This is on 12.2, with a fresh install on Windows 8


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

(2013-10-13, 22:36)avens19 Wrote: I've been playing with the code and I am able to get ffmpeg to load the correct key file but this ends up crashing XBMC. Not sure why this is happening. Here is my debug log:

http://pastebin.com/YSJaJ1ws

EDIT: This is on 12.2, with a fresh install on Windows 8


I tried the same as you, it crashes in Frodo and Gotham.


RE: [RELEASE] NHL Gamecenter Addon - jabbawah - 2013-10-14

Hi everyone,

I'm new to this forum so go easy on me as this is my first time using XBMC Smile

I was wondering why I might be getting the following error when attempting to launch the add on "Script failed!: Gamecenter.py"

This also appears in the XBMC.log upon each failure:

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'ssl.SSLError'>
Error Contents: [Errno 8] _ssl.c:490: EOF occurred in violation of protocol
Traceback (most recent call last):
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter\gamecenter.py", line 1159, in <module>
CATEGORIES()
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter\gamecenter.py", line 438, in CATEGORIES
login()
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter\gamecenter.py", line 108, in login
response, content = http.request(url, 'POST', headers=headers, body=urllib.urlencode(body))
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\script.module.httplib2\lib\httplib2\__init__.py", line 1436, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\script.module.httplib2\lib\httplib2\__init__.py", line 1188, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\script.module.httplib2\lib\httplib2\__init__.py", line 1123, in _conn_request
conn.connect()
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\script.module.httplib2\lib\httplib2\__init__.py", line 890, in connect
self.disable_ssl_certificate_validation, self.ca_certs)
File "C:\Users\Scott\AppData\Roaming\XBMC\addons\script.module.httplib2\lib\httplib2\__init__.py", line 76, in _ssl_wrap_socket
cert_reqs=cert_reqs, ca_certs=ca_certs)
File "C:\Program Files\XBMC\system\python\Lib\ssl.py", line 338, in wrap_socket
suppress_ragged_eofs=suppress_ragged_eofs)
File "C:\Program Files\XBMC\system\python\Lib\ssl.py", line 120, in __init__
self.do_handshake()
File "C:\Program Files\XBMC\system\python\Lib\ssl.py", line 279, in do_handshake
self._sslobj.do_handshake()
SSLError: [Errno 8] _ssl.c:490: EOF occurred in violation of protocol
-->End of Python script error report<--"

Any help or suggestions would be greatly appreciated.

Thanks,


RE: [RELEASE] NHL Gamecenter Addon - captainnapalm - 2013-10-14

Script is working now for me, at least condensed, on Windows, openelec rpi, and Pivos Linux.


RE: [RELEASE] NHL Gamecenter Addon - edge06 - 2013-10-14

Live Confirmed working - Openelec 3.2.2