• 1
  • 22
  • 23
  • 24(current)
  • 25
  • 26
  • 31
[RELEASE] NHL Gamecenter Plugin
(2015-10-06, 02:44)MetalChris Wrote: Is your GCL account up to date? I continually got that error message until my account auto-renewed on the 1st.

Thanks for the suggestion. Yes, it's up-to-date. Renewed yesterday. Like I said, it works fine on PS4, Android and the web. The only difference since last year is I now have a Rogers account instead of a NHL.com account. I made sure to check 'Rogers Login' in the config. Maybe they changed something and the add-on needs to be updated? I'd be curious to know if other Rogers subscribers have the same problem...
Reply
(2015-10-06, 03:02)Flyersfan Wrote: sorry for my ignorance. I was able to uncover the 'hidden files and folders" and copied the file over (which overrode the existing one). But I still can't seem to get this to work. New log below:

http://xbmclogs.com/pj5y9qqyr

I didn't see any of my debug code in the log, so I'm assuming the file didn't make it to the right location. Let's try this. Here's a link to the gamecenter add-on zip with the change applied. You should be able to install this from the Kodi interface.

http://www.megafileupload.com/5g12/plugi...center.zip
Reply
I finally got it to work! Something must have gotten screwed up when I was installing the add-on last year (as there where a few different versions after the original author stopped active work on it).

I noticed that I had two NHL gamecenter plugins in the /storage/.kodi/addons folder:

plugin.video.nhl-gamecenter
plugin.video.nhl-gamecenter-master

Last night I put the new .py file in the first folder. Today I tried putting it in the "master" folder and now it works. I'm still a bit confused on how I managed to get "two" plugin folders for the same add-on. Any advice on how I should handle that? Should I delete the first plug-in or just leave it be so that I don't screw up anything else?
Reply
(2015-10-06, 15:08)Flyersfan Wrote: I finally got it to work! Something must have gotten screwed up when I was installing the add-on last year (as there where a few different versions after the original author stopped active work on it).

I noticed that I had two NHL gamecenter plugins in the /storage/.kodi/addons folder:

plugin.video.nhl-gamecenter
plugin.video.nhl-gamecenter-master

Last night I put the new .py file in the first folder. Today I tried putting it in the "master" folder and now it works. I'm still a bit confused on how I managed to get "two" plugin folders for the same add-on. Any advice on how I should handle that? Should I delete the first plug-in or just leave it be so that I don't screw up anything else?

The "master" folders are usually created if you've downloaded add-ons from github and manually installed. I think there was a couple fixes last year that you may have grabbed and installed. Either way it doesn't mess with kodi, it only uses one of the folders (which ever is newer). It's just a little messy and confusing to the end user.

Glad it works, I'll make a pull request to get the fix in the latest version.
Reply
(2015-10-06, 15:08)Flyersfan Wrote: I finally got it to work! Something must have gotten screwed up when I was installing the add-on last year (as there where a few different versions after the original author stopped active work on it).

I noticed that I had two NHL gamecenter plugins in the /storage/.kodi/addons folder:

plugin.video.nhl-gamecenter
plugin.video.nhl-gamecenter-master

Last night I put the new .py file in the first folder. Today I tried putting it in the "master" folder and now it works. I'm still a bit confused on how I managed to get "two" plugin folders for the same add-on. Any advice on how I should handle that? Should I delete the first plug-in or just leave it be so that I don't screw up anything else?

Funny was just going to reply that it seems your install got corrupted and to uninstall and reinstall the app. As I looked into the code and the only way possible to get the extra period was due to a change in line 194 http_url = http_url.replace('condensed_5000', 'condensed_1_5000') by it being changed to http_url = http_url.replace('condensed_5000', 'condensed_1._5000') I'm sure if you had changed the quality it may have worked unless all lines from 193-198 got changed.

Either way you got it working. I just wanted to explain the reasoning behind it all.
Reply
(2015-10-06, 15:23)eracknaphobia Wrote:
(2015-10-06, 15:08)Flyersfan Wrote: I finally got it to work! Something must have gotten screwed up when I was installing the add-on last year (as there where a few different versions after the original author stopped active work on it).

I noticed that I had two NHL gamecenter plugins in the /storage/.kodi/addons folder:

plugin.video.nhl-gamecenter
plugin.video.nhl-gamecenter-master

Last night I put the new .py file in the first folder. Today I tried putting it in the "master" folder and now it works. I'm still a bit confused on how I managed to get "two" plugin folders for the same add-on. Any advice on how I should handle that? Should I delete the first plug-in or just leave it be so that I don't screw up anything else?

The "master" folders are usually created if you've downloaded add-ons from github and manually installed. I think there was a couple fixes last year that you may have grabbed and installed. Either way it doesn't mess with kodi, it only uses one of the folders (which ever is newer). It's just a little messy and confusing to the end user.

Glad it works, I'll make a pull request to get the fix in the latest version.

Thanks a ton for the work you put in on this add-on. It is really appreciated by all of us that benefit from being able to watch the NHL using Kodi.
Reply
(2015-10-06, 15:38)cookiemonster70 Wrote: Funny was just going to reply that it seems your install got corrupted and to uninstall and reinstall the app. As I looked into the code and the only way possible to get the extra period was due to a change in line 194 http_url = http_url.replace('condensed_5000', 'condensed_1_5000') by it being changed to http_url = http_url.replace('condensed_5000', 'condensed_1._5000') I'm sure if you had changed the quality it may have worked unless all lines from 193-198 got changed.

Either way you got it working. I just wanted to explain the reasoning behind it all.

It was actually the substring method that was causing the issue:

Here's an game url
Code:
rtmp://cdncon.fcod.llnwd.net/a277/e4/mp4:s/as3/nlds_vod/nhl/vod/2015/05/29/317/3_317_tbl_nyr_1415_h_condensed_1.mp4?eid=#####&pid=#####&gid=####&pt=1&uid=######
*where # represents a real number, I blanked them out for demonstration purposes


Old Way
playPath = game[4][37:][:-49]

New Way
last_period = game[4].rfind('.')
playPath = game[4][37:last_period]

The old way used a static number to grab the position of the last period, which worked fine for many, but if one of the parameters has an extra character, it throws it off. The new way will find the last occurrence of the "." and use that position which won't depend on the length of the parameters to stay the same length.
Reply
(2015-10-06, 04:59)xizor81 Wrote:
(2015-10-06, 02:44)MetalChris Wrote: Is your GCL account up to date? I continually got that error message until my account auto-renewed on the 1st.

Thanks for the suggestion. Yes, it's up-to-date. Renewed yesterday. Like I said, it works fine on PS4, Android and the web. The only difference since last year is I now have a Rogers account instead of a NHL.com account. I made sure to check 'Rogers Login' in the config. Maybe they changed something and the add-on needs to be updated? I'd be curious to know if other Rogers subscribers have the same problem...

I took a stab at fixing the Rogers Login. Could you download and install the zip and let me know if it fixes your login issues? Make sure the Rogers Login setting is turned on too.

https://github.com/dannyellis/plugin.vid...phobia.zip
Reply
(2015-10-06, 16:22)eracknaphobia Wrote:
(2015-10-06, 15:38)cookiemonster70 Wrote: Funny was just going to reply that it seems your install got corrupted and to uninstall and reinstall the app. As I looked into the code and the only way possible to get the extra period was due to a change in line 194 http_url = http_url.replace('condensed_5000', 'condensed_1_5000') by it being changed to http_url = http_url.replace('condensed_5000', 'condensed_1._5000') I'm sure if you had changed the quality it may have worked unless all lines from 193-198 got changed.

Either way you got it working. I just wanted to explain the reasoning behind it all.

It was actually the substring method that was causing the issue:

Here's an game url
Code:
rtmp://cdncon.fcod.llnwd.net/a277/e4/mp4:s/as3/nlds_vod/nhl/vod/2015/05/29/317/3_317_tbl_nyr_1415_h_condensed_1.mp4?eid=#####&pid=#####&gid=####&pt=1&uid=######
*where # represents a real number, I blanked them out for demonstration purposes


Old Way
playPath = game[4][37:][:-49]

New Way
last_period = game[4].rfind('.')
playPath = game[4][37:last_period]

The old way used a static number to grab the position of the last period, which worked fine for many, but if one of the parameters has an extra character, it throws it off. The new way will find the last occurrence of the "." and use that position which won't depend on the length of the parameters to stay the same length.

That makes sense. I took a stab at it without having access to be able to see what the playPath was spitting out. It always helps knowing what you initially have to work with.
Reply
Is this working for anyone else on FireTV or Android?
Reply
(2015-10-06, 23:47)NxtGenCowboy Wrote: Is this working for anyone else on FireTV or Android?

It's working on my FireTV
Reply
(2015-10-07, 00:28)eracknaphobia Wrote:
(2015-10-06, 23:47)NxtGenCowboy Wrote: Is this working for anyone else on FireTV or Android?

It's working on my FireTV



Did you have to do something special? I keep getting the Handshake error message.
Reply
I am also subscribed with a Rogers account and can't get past the "check credentials". I have confirmed my account is active buy logging in on my phone. I hope you can get this working.
Reply
(2015-10-06, 17:16)eracknaphobia Wrote: I took a stab at fixing the Rogers Login. Could you download and install the zip and let me know if it fixes your login issues? Make sure the Rogers Login setting is turned on too.

https://github.com/dannyellis/plugin.vid...phobia.zip

Thanks for the try! But I still get the 'Check your credentials' message... I double-checked that I was using your newest version (0.8.3) and that 'Rogers Login' was enabled.

Once again, nothing interesting in the logs... Is there something I can turn on so I can provide you better debug information?

Again, thank you for your dedication. It's very appreciated!
Reply
(2015-10-07, 13:57)xizor81 Wrote:
(2015-10-06, 17:16)eracknaphobia Wrote: I took a stab at fixing the Rogers Login. Could you download and install the zip and let me know if it fixes your login issues? Make sure the Rogers Login setting is turned on too.

https://github.com/dannyellis/plugin.vid...phobia.zip

Thanks for the try! But I still get the 'Check your credentials' message... I double-checked that I was using your newest version (0.8.3) and that 'Rogers Login' was enabled.

Once again, nothing interesting in the logs... Is there something I can turn on so I can provide you better debug information?

Again, thank you for your dedication. It's very appreciated!

I guess a debug log would be a start:
http://kodi.wiki/view/Log_file/Easy

I have a nhl.com account not a rogers account so it's impossible for me to test any changes. If a rogers account user with python experience could help that would be great.
Reply
  • 1
  • 22
  • 23
  • 24(current)
  • 25
  • 26
  • 31

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