• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 31
[RELEASE] NHL Gamecenter Plugin
#16
Copying and pasting from the old thread as this is still happening to me Sad

I have done a little troubleshooting on my issue and I am posting these results for Carb0 to ponder over.

If I run the most current version, 0.7.1, unedited I get an the error 'Check your login credentials' which is being thrown from line 72 in userinterface.py.

Code:
dialog.ok('Login failed', 'Check your login credentials')

I have verified that my credentials ARE correct.
I have also verified that I get a cookie in C:\Users\Theatre\AppData\Roaming\XBMC\userdata\addon_data\plugin.video.nhl-gamecenter\cookies.lwp

My cookie contents are: I have removed the JSESSIONID incase NHL is logging them, though I doubt it or they would fill up a crap ton of space in doing so

Code:
#LWP-Cookies-2.0
Set-Cookie3: JSESSIONID="XXXXXXXXXXX"; path="/nhlgc"; domain="gamecenter.nhl.com"; path_spec; discard; version=0

Now if I remove
Code:
(USERNAME in open(os.path.join(ADDON_PATH_PROFILE, 'cookies.lwp')).read())
from line 58 in userinterface.py the addon will work and I am presented with the main menu

Live Games
Latest Games
Game Highlights
Condensed Games
Archived Games

If I go in to the Live Games menu I am presented with tonight's games

If I go further and try to play a live stream it works. I don't know what any of this means but I am hoping it helps resolve this.
Reply
#17
Getting script errors on live games tonight. Log:

19:23:37 T:5824 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.HTTPError'>
Error Contents: HTTP Error 401: Unauthorized
Traceback (most recent call last):
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\default.py", line 33, in <module>
LIVELINKS(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\userinterface.py", line 106, in LIVELINKS
links = getLiveGameLinks(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\games_live.py", line 140, in getLiveGameLinks
response = opener.open(publishPointURL, urllib.urlencode({'app':'true'}))
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 410, in open
response = meth(req, response)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 448, in error
return self._call_chain(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized
-->End of Python script error report<--
19:23:37 T:5980 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nhl-gamecenter/?mode=3&url=%2flive%2f10667%2f5000K
19:23:37 T:5980 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhl-gamecenter/?mode=3&url=%2flive%2f10667%2f5000K) failed
19:23:37 T:4216 NOTICE: Thread LanguageInvoker start, auto delete: false
19:23:37 T:4216 NOTICE: -->Python Interpreter Initialized<--
19:23:37 T:4216 NOTICE: Mode: 2

Gotham 13.2, Win7, credentials are correct.
Reply
#18
(2014-10-24, 00:33)hitman19 Wrote:
(2014-10-23, 05:25)ellisd Wrote: Thanks. Yea there are very few differences between this and carb0s so should be safe to remove his.

When I installed 0.7.4 from zip, it just over-wrote the old Carb0 version of the add-on, so it shouldn't need to be disabled first. At least it didn't in my case.

Yep, same here. 0.7.4 is working great tonight. Cool

(2014-10-24, 01:16)comfox1 Wrote: Copying and pasting from the old thread as this is still happening to me Sad

I have done a little troubleshooting on my issue and I am posting these results for Carb0 to ponder over.

If I run the most current version, 0.7.1, unedited I get an the error 'Check your login credentials' which is being thrown from line 72 in userinterface.py.

Code:
dialog.ok('Login failed', 'Check your login credentials')

I have verified that my credentials ARE correct.
I have also verified that I get a cookie in C:\Users\Theatre\AppData\Roaming\XBMC\userdata\addon_data\plugin.video.nhl-gamecenter\cookies.lwp

My cookie contents are: I have removed the JSESSIONID incase NHL is logging them, though I doubt it or they would fill up a crap ton of space in doing so

Code:
#LWP-Cookies-2.0
Set-Cookie3: JSESSIONID="XXXXXXXXXXX"; path="/nhlgc"; domain="gamecenter.nhl.com"; path_spec; discard; version=0

Now if I remove
Code:
(USERNAME in open(os.path.join(ADDON_PATH_PROFILE, 'cookies.lwp')).read())
from line 58 in userinterface.py the addon will work and I am presented with the main menu

Live Games
Latest Games
Game Highlights
Condensed Games
Archived Games

If I go in to the Live Games menu I am presented with tonight's games

If I go further and try to play a live stream it works. I don't know what any of this means but I am hoping it helps resolve this.

This was a known issue in 0.7.1 which was fixed in 0.7.2. The current version is 0.7.4 and can be downloaded from the first post in this thread.

(2014-10-24, 01:29)[brick] Wrote: Getting script errors on live games tonight. Log:

19:23:37 T:5824 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.HTTPError'>
Error Contents: HTTP Error 401: Unauthorized
Traceback (most recent call last):
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\default.py", line 33, in <module>
LIVELINKS(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\userinterface.py", line 106, in LIVELINKS
links = getLiveGameLinks(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\games_live.py", line 140, in getLiveGameLinks
response = opener.open(publishPointURL, urllib.urlencode({'app':'true'}))
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 410, in open
response = meth(req, response)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 448, in error
return self._call_chain(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized
-->End of Python script error report<--
19:23:37 T:5980 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nhl-gamecenter/?mode=3&url=%2flive%2f10667%2f5000K
19:23:37 T:5980 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhl-gamecenter/?mode=3&url=%2flive%2f10667%2f5000K) failed
19:23:37 T:4216 NOTICE: Thread LanguageInvoker start, auto delete: false
19:23:37 T:4216 NOTICE: -->Python Interpreter Initialized<--
19:23:37 T:4216 NOTICE: Mode: 2

Gotham 13.2, Win7, credentials are correct.

Are you using 0.7.4 of the addon? Those errors look similar to the errors I received last night before upgrading.
Kodi Nexus on Dell Optiplex 980 Lubuntu 20.04 | Kodi Nexus on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
Reply
#19
(2014-10-24, 02:13)MetalChris Wrote: Are you using 0.7.4 of the addon? Those errors look similar to the errors I received last night before upgrading.

Yes, using 0.7.4
Reply
#20
(2014-10-24, 01:29)[brick] Wrote: Getting script errors on live games tonight. Log:

19:23:37 T:5824 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.HTTPError'>
Error Contents: HTTP Error 401: Unauthorized
Traceback (most recent call last):
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\default.py", line 33, in <module>
LIVELINKS(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\userinterface.py", line 106, in LIVELINKS
links = getLiveGameLinks(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\games_live.py", line 140, in getLiveGameLinks
response = opener.open(publishPointURL, urllib.urlencode({'app':'true'}))
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 410, in open
response = meth(req, response)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 448, in error
return self._call_chain(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized
-->End of Python script error report<--
19:23:37 T:5980 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nhl-gamecenter/?mode=3&url=%2flive%2f10667%2f5000K
19:23:37 T:5980 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhl-gamecenter/?mode=3&url=%2flive%2f10667%2f5000K) failed
19:23:37 T:4216 NOTICE: Thread LanguageInvoker start, auto delete: false
19:23:37 T:4216 NOTICE: -->Python Interpreter Initialized<--
19:23:37 T:4216 NOTICE: Mode: 2

Gotham 13.2, Win7, credentials are correct.

Try going to your userdata/addon/blahblah/ and deleting cookies.wlp and restart the addon.
Reply
#21
No joy. Log:

20:37:43 T:1692 NOTICE: Mode: 1
20:37:43 T:1692 NOTICE: URL: /live
20:37:43 T:1692 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: (2, 'No such file or directory', 'C:\\Users\\[brick]\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\plugin.video.nhl-gamecenter\\cookies.lwp')
Traceback (most recent call last):
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\default.py", line 27, in <module>
LIVE(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\userinterface.py", line 71, in LIVE
games = getLiveGames(True)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\games_live.py", line 16, in getLiveGames
cj.load(os.path.join(ADDON_PATH_PROFILE, 'cookies.lwp'),ignore_discard=True)
File "C:\Program Files (x86)\XBMC\system\python\Lib\cookielib.py", line 1761, in load
f = open(filename)
IOError: (2, 'No such file or directory', 'C:\\Users\\[brick]\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\plugin.video.nhl-gamecenter\\cookies.lwp')
-->End of Python script error report<--
20:37:43 T:5980 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nhl-gamecenter/?mode=1&url=%2flive
20:37:43 T:5980 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhl-gamecenter/?mode=1&url=%2flive) failed
20:37:43 T:4720 NOTICE: Thread BackgroundLoader start, auto delete: false
Reply
#22
(2014-10-24, 02:37)[brick] Wrote: No joy. Log:

20:37:43 T:1692 NOTICE: Mode: 1
20:37:43 T:1692 NOTICE: URL: /live
20:37:43 T:1692 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: (2, 'No such file or directory', 'C:\\Users\\[brick]\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\plugin.video.nhl-gamecenter\\cookies.lwp')
Traceback (most recent call last):
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\default.py", line 27, in <module>
LIVE(url)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\userinterface.py", line 71, in LIVE
games = getLiveGames(True)
File "C:\Users\[brick]\AppData\Roaming\XBMC\addons\plugin.video.nhl-gamecenter-master\resources\lib\games_live.py", line 16, in getLiveGames
cj.load(os.path.join(ADDON_PATH_PROFILE, 'cookies.lwp'),ignore_discard=True)
File "C:\Program Files (x86)\XBMC\system\python\Lib\cookielib.py", line 1761, in load
f = open(filename)
IOError: (2, 'No such file or directory', 'C:\\Users\\[brick]\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\plugin.video.nhl-gamecenter\\cookies.lwp')
-->End of Python script error report<--
20:37:43 T:5980 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nhl-gamecenter/?mode=1&url=%2flive
20:37:43 T:5980 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhl-gamecenter/?mode=1&url=%2flive) failed
20:37:43 T:4720 NOTICE: Thread BackgroundLoader start, auto delete: false

Hmm deleting that file seemed to cause issues but that doesnt make sense as the method login() should recreate that file. Restart XBMC (even though re logging into the Addon should have done it)
Reply
#23
Restarted XBMC, it's good now. Thanks.
Reply
#24
Working great for me, thanks for keeping this alive!

Bruins game 5k stream looking beautiful.
Reply
#25
(2014-10-24, 02:13)MetalChris Wrote: This was a known issue in 0.7.1 which was fixed in 0.7.2. The current version is 0.7.4 and can be downloaded from the first post in this thread.

Yes I know there is a new version, I am using 0.7.4. Installed and verified.

My cookie DOES NOT have my username in it which causes that line of code to not accept the cookie as being valid, but I assure you the cookie is valid.

I would love to see the contents of a "valid" cookie from someone else to compare to mine.
Reply
#26
(2014-10-24, 03:00)rbrohman Wrote: Working great for me, thanks for keeping this alive!

Bruins game 5k stream looking beautiful.

Working great for me tonight too.

Question: I had noted that the quality looks amazing and was better than PS3. Which in turn thought looked better than the pc feed (so XBMC > PS3 > PC). Does anyone have the differing best qualities for each version (pretty much a comparison)?
Reply
#27
(2014-10-24, 03:51)h0ckeyfan Wrote:
(2014-10-24, 03:00)rbrohman Wrote: Working great for me, thanks for keeping this alive!

Bruins game 5k stream looking beautiful.

Working great for me tonight too.

Question: I had noted that the quality looks amazing and was better than PS3. Which in turn thought looked better than the pc feed (so XBMC > PS3 > PC). Does anyone have the differing best qualities for each version (pretty much a comparison)?

This is definitely the case, the XBMC app has always had the best quality video. The PS3 looks ok, still not as good, but it buffers ALL THE TIME. I can't say anything about the PS4 app, because it has not worked once for me this season. The web browser feed is pretty consistently bad, the picture quality is usually HD, but the frame rate is complete garbage, so not great to watch.

If the NHL was smart, they'd be trying to hire the people who develop and maintain apps like these, to improve their garbage software.
Reply
#28
(2014-10-24, 04:42)hitman19 Wrote:
(2014-10-24, 03:51)h0ckeyfan Wrote:
(2014-10-24, 03:00)rbrohman Wrote: Working great for me, thanks for keeping this alive!

Bruins game 5k stream looking beautiful.

Working great for me tonight too.

Question: I had noted that the quality looks amazing and was better than PS3. Which in turn thought looked better than the pc feed (so XBMC > PS3 > PC). Does anyone have the differing best qualities for each version (pretty much a comparison)?

This is definitely the case, the XBMC app has always had the best quality video. The PS3 looks ok, still not as good, but it buffers ALL THE TIME. I can't say anything about the PS4 app, because it has not worked once for me this season. The web browser feed is pretty consistently bad, the picture quality is usually HD, but the frame rate is complete garbage, so not great to watch.

If the NHL was smart, they'd be trying to hire the people who develop and maintain apps like these, to improve their garbage software.

I can only speak of my subjective experience...but I think watching the same feed via XBMC is markedly superior to the web equivalent, and I think it's better rendering.

And, after a lot of research and tweaking, I'm 99% sure that the lion's share of the buffering issues are NHL server related, not specific to any method of viewing, plug in or web. Even if your pipe is 10x as fat as it needs to be you'll still see buffering sometimes, no matter what. But, I have only the web version and the XBMC versions to compare. </twocents>
Reply
#29
Might have spoken to soon... Good chunk of pausing/buffering in the NSH vs CHI and VAN vs STL tonight. Speed tests show quite decent speeds and I'm all wired on a dedicated HTPC. I assumed it was the NHL feeds themselves. For you guys reporting your experience, have you done any tweaks to improve buffering? I did some google searching a while ago and it looks like there are options. Not sure if they actually work/make a difference though..
Reply
#30
Thank you ellisd for keeping this going. Installed 0.7.4 tonight and worked great all night. Hopefully it continues smoothly now throughout the season. It is amazing to me how great the stream quality is through the add-on vs through the website.
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 31

Logout Mark Read Team Forum Stats Members Help
[RELEASE] NHL Gamecenter Plugin7