Kodi Community Forum
[RELEASE] Sportsnet Now - 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: [RELEASE] Sportsnet Now (/showthread.php?tid=235268)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


RE: [RELEASE] Sportsnet Now - Ceejay74 - 2016-09-18

I don't understand. I am not a techy can you put it in plain English? Or a step by step instructions


RE: [RELEASE] Sportsnet Now - WeeB - 2016-09-18

(2016-09-16, 23:04)tim_573086 Wrote: Also having issues here. We normally had to reboot several times to stop getting the "Unable to authorize channel" message, but the last couple days, it doesn't work at all. Just a "Sportsnet Now error" message. Here's a section from my log file, if that helps

Code:
16:51:16 T:5856   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Sportsnet Now('plugin://plugin.video.snnow/','4','')
16:51:16 T:5856   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Sportsnet Now (id=5) plugin...
16:51:16 T:8636   DEBUG: Thread LanguageInvoker start, auto delete: false
16:51:16 T:8636    INFO: initializing python engine.
16:51:16 T:8636   DEBUG: CPythonInvoker(5, C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py): start processing
16:51:17 T:8636   DEBUG: -->Python Interpreter Initialized<--
16:51:17 T:8636   DEBUG: CPythonInvoker(5, C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py): the source file to load is "C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py"
16:51:17 T:8636   DEBUG: CPythonInvoker(5, C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py): setting the Python path to C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
16:51:17 T:8636   DEBUG: CPythonInvoker(5, C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py): entering source directory C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow
16:51:17 T:8636   DEBUG: CPythonInvoker(5, C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py): instantiating addon using automatically obtained id of "plugin.video.snnow" dependent on version 2.1.0 of the xbmc.python api
16:51:17 T:5804   DEBUG: ------ Window Init (DialogBusy.xml) ------
16:51:18 T:8636   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('ed',)
                                            Traceback (most recent call last):
                                              File "C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py", line 142, in <module>
                                                createMainMenu()
                                              File "C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\default.py", line 50, in createMainMenu
                                                guide = sn.getGuideData()
                                              File "C:\Users\timv\AppData\Roaming\Kodi\addons\plugin.video.snnow\snnow.py", line 172, in getGuideData
                                                description = curr_item.attributes['ed']
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\minidom.py", line 522, in __getitem__
                                                return self._attrs[attname_or_tuple]
                                            KeyError: ('ed',)
                                            -->End of Python script error report<--
16:51:18 T:8636    INFO: Python script stopped
16:51:18 T:8636   DEBUG: Thread LanguageInvoker 8636 terminating
16:51:18 T:5804   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:51:18 T:10060    INFO: CActiveAESink::OpenSink - initialize sink
16:51:18 T:10060   DEBUG: CActiveAESink::OpenSink - trying to open device DIRECTSOUND:default
16:51:18 T:10060   DEBUG: CAESinkDirectSound::Initialize: Using Window handle: 000B0A5C
16:51:18 T:5856   DEBUG:  XFILE::CPluginDirectory::WaitOnScriptResult - plugin exited prematurely - terminating
16:51:18 T:10060   DEBUG: CAESinkDirectSound::Initialize: secondary buffer created
16:51:18 T:10060   DEBUG: CAESinkDirectSound::Initialize: Initializing DirectSound with the following parameters:
16:51:18 T:10060   DEBUG:   Audio Device    : Speakers (High Definition Audio Device)
16:51:18 T:10060   DEBUG:   Sample Rate     : 44100
16:51:18 T:10060   DEBUG:   Sample Format   : AE_FMT_FLOAT
16:51:18 T:10060   DEBUG:   Bits Per Sample : 32
16:51:18 T:10060   DEBUG:   Valid Bits/Samp : 32
16:51:18 T:10060   DEBUG:   Channel Count   : 2
16:51:18 T:10060   DEBUG:   Block Align     : 8
16:51:18 T:10060   DEBUG:   Avg. Bytes Sec  : 352800
16:51:18 T:10060   DEBUG:   Samples/Block   : 32
16:51:18 T:10060   DEBUG:   Format cBSize   : 22
16:51:18 T:10060   DEBUG:   Channel Layout  : FL,FR
16:51:18 T:10060   DEBUG:   Channel Mask    : 3
16:51:18 T:10060   DEBUG:   Frames          : 661
16:51:18 T:10060   DEBUG:   Frame Samples   : 1322
16:51:18 T:10060   DEBUG:   Frame Size      : 8
16:51:18 T:10060   DEBUG: CActiveAESink::OpenSink - DIRECTSOUND Initialized:
16:51:18 T:10060   DEBUG:   Output Device : default
16:51:18 T:10060   DEBUG:   Sample Rate   : 44100
16:51:18 T:10060   DEBUG:   Sample Format : AE_FMT_FLOAT
16:51:18 T:10060   DEBUG:   Channel Count : 2
16:51:18 T:10060   DEBUG:   Channel Layout: FL,FR
16:51:18 T:10060   DEBUG:   Frames        : 661
16:51:18 T:10060   DEBUG:   Frame Samples : 1322
16:51:18 T:10060   DEBUG:   Frame Size    : 8
16:51:18 T:5804   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.snnow/
16:51:18 T:5804   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.snnow/) failed
16:51:18 T:5804   DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/video)
16:51:18 T:5804   DEBUG:   ParentPath = [addons://sources/]
16:51:18 T:6412   DEBUG: Thread BackgroundLoader start, auto delete: false
16:51:18 T:6412   DEBUG: Thread BackgroundLoader 6412 terminating
16:51:18 T:10060   DEBUG: CAESinkDirectSound::CheckPlayStatus: Resuming Playback
16:51:18 T:5804   DEBUG: ------ Window Deinit (DialogBusy.xml) ------

Weird I don't see this Key error in my debug, but I am having the similar issue.


RE: [RELEASE] Sportsnet Now - WeeB - 2016-09-18

Also, just noticed there was a commit to the github 6 hours ago. So looks like something was changed.


RE: [RELEASE] Sportsnet Now - yensid - 2016-09-18

I checked out Sportnet website and they have updated the page that streams so most likely the add-in will need to be updated to reflect the new streams.


RE: [RELEASE] Sportsnet Now - WeeB - 2016-09-18

Yeah they changed it pretty dramatically, they even changed the flash player.

I uninstalled the addon I had installed and installed a newly downloaded version from the maser gitzip on the first post. I am now able to get the listing of channels correctly, but when I select a channel to play I get an error saying "unable to authorize channel" hopefully we can get this figured out soon, would love to continue watching the jays as this end to the season is going to be exciting!

21:35:26 320.900818 T:1593578560 INFO: CPythonInvoker(13, /storage/.kodi/addons/plugin.video.snnow-master/default.py): script successfully run
21:35:26 321.341187 T:1869657152 DEBUG: PushCecKeypress - received key d8 duration 0 (rep:0 size:0)
21:35:26 321.341431 T:1869657152 DEBUG: PushCecKeypress - added key d8
21:35:26 321.346893 T:1967394816 DEBUG: OnKey: menu (0xd8) pressed, action is Back
21:35:26 321.365814 T:1593578560 INFO: Python script stopped
21:35:26 321.366089 T:1593578560 DEBUG: Thread LanguageInvoker 1593578560 terminating
21:35:26 321.377472 T:1669076032 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
21:35:26 321.378143 T:1967394816 ERROR: GetDirectory - Error getting plugin://plugin.video.snnow/?abbr=SNOne&id=2&menu=channel&name=Sportsnet%20One&plot=No%20description%20found&title=Toronto%20%40%20LA%20Ange
21:35:26 321.381439 T:1967394816 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.snnow/?abbr=SNOne&id=2&menu=channel&name=Sportsnet%20One&plot=No%20description%20found&title=Toronto%20%40%20LA%20Ang
21:35:26 321.382507 T:1967394816 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.snnow/)


RE: [RELEASE] Sportsnet Now - Ceejay74 - 2016-09-18

How can I get the newest version? I really don't understand how to do it? Is there a link you can post?


RE: [RELEASE] Sportsnet Now - 2bytwo - 2016-09-18

I too had the:
Code:
KeyError: ('ed',)
issue. Downloading the latest master files and installing them fixed that issue.

I still had a problem playing content, however: it now loaded up the channel listing, but when I tried to play one it reported an authentication problem.

Toying about with the scripts (test.py) and comparing to personal logins, the issue is that Sportsnet appears to have changed their "publish point" to be an HTTPS service, instead of bare HTTP.

For those who want a quick fix, just edit the file snnow.py, the entry to change is right at the top. Simply add in the missing "s" in https.

(For me, on my brand-new libre-elec install, it's at "/storage/.kodi/addons/plugin.video.snnow-master")

Before:
Code:
self.PUBLISH_POINT = 'http://now.sportsnet.ca/service/publishpoint?'

After:
Code:
self.PUBLISH_POINT = 'https://now.sportsnet.ca/service/publishpoint?'


Patch here, maybe, I don't know if this will work:

Code:
--- a/snnow.py    2016-09-18 01:24:37.491648529 -0400
+++ b/snnow.py    2016-09-18 01:24:37.479648349 -0400
@@ -12,7 +12,7 @@
         self.CONFIG_URI = 'http://nlmobile.cdnak.neulion.com/sportsnetnow/config/config_ios_r3.xml'
         self.CHANNELS_URI = 'http://now.sportsnet.ca/service/channels?format=json'
         self.AUTHORIZED_MSO_URI = 'https://sp.auth.adobe.com/adobe-services/1.0/config/SportsnetNow'
-        self.PUBLISH_POINT = 'http://now.sportsnet.ca/service/publishpoint?'
+        self.PUBLISH_POINT = 'https://now.sportsnet.ca/service/publishpoint?'
         self.USER_AGENT = 'Mozilla/5.0 (iPad; CPU OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12F69 ipad sn now 4.0912'
         self.EPG_PREFIX = 'http://smb.cdnak.nyc.neulion.com/u/smb/sportsnetnow/configs/epg/'

I'm not sure if you have to regenerate the pyo file as well, but if you do, this seemed to do it for me:

Code:
python -O -m compileall snnow.py

Note: It didn't work immediately, I didn't have to restart Kodi but I think it had to reload the Sportsnet Plugin or or some such.

Apologies, I don't know how to put up a patch into github and it's late, so I'm headed to bed.

PS: I had to watch the CAN-CZE game on my iPhone. The horror! Thankfully, after my patching I got to watch the replays.


RE: [RELEASE] Sportsnet Now - RCCS - 2016-09-18

Hey guys
I really do appreciate everyone trying to patch this up, but myself and I am sure others just aren't understanding.
I am working just off an android box, how do I go in and type stuff? In the past someone has posted a complete patch or a new version and I have gone and downloaded that. Is something like that a possibility here?


RE: [RELEASE] Sportsnet Now - Marz1970 - 2016-09-18

Thanks for the fix/hack/workaround 2bytwo! I did not compile the .py, but it worked. (Which is fortunate, cause I have no idea how to compile anything)


RE: [RELEASE] Sportsnet Now - Marz1970 - 2016-09-18

i found the file posted and edited the line (in a text editor, not word) listed. Saved, and rebooted.


RE: [RELEASE] Sportsnet Now - RCCS - 2016-09-18

(2016-09-18, 15:44)Marz1970 Wrote: Thanks for the fix/hack/workaround 2bytwo! I did not compile the .py, but it worked. (Which is fortunate, cause I have no idea how to compile anything)

Hey Marz, any chance you can help me through this? Again, not using Kodi on a computer, just off of an android box. Can someone post a complete patch?

Many thanks


RE: [RELEASE] Sportsnet Now - vip3r - 2016-09-18

To get the app working again go to
Code:
https://github.com/micahg/plugin.video.snnow
then top right the green box clone or download and download the zip file to your PC.
Then unzip the file then right click on the snnow.py and choose open with notepad or notepad+ if you have it.

Once opened you will see
Code:
SportsnetNow'
        self.PUBLISH_POINT = 'http://now.sportsnet.ca/service/publishpoint?'

As said above add the s to http

Code:
SportsnetNow'
        self.PUBLISH_POINT = 'https://now.sportsnet.ca/service/publishpoint?'

Now click save on notepad-exit. then compress the file to zip format.

Now you can place on your usb stick and put it in your android box.

Start kodi- go to settings-addons-install from zip file- from sda and open the snnow master and click ok.

The addon will update and should be good to go.

It might sound like a hassle but it's quick and easy and works.

Thanks guy's for figuring out this fix.


RE: [RELEASE] Sportsnet Now - jojo1419 - 2016-09-18

Hey guys! I was trying to watch the WCH2016 on my kodi setup and decided to make an account on sportnet now (free for 7 days). But couldn't open the app at all.

So what I did was :

- downloaded the latest .zip file on the first post.
- Deleted the old sportnetnow addon and installed the one from the zip.
- I put my email address and password. My cable provider was sportnet (since I don't have rogers or anything else)
- I edited the snnow.py as 2bytwo said a couple of post over. so put the ''s'' after ''http''.

Then I also edited the ''sportnet.py''. There was a place that there was no ''s'' for the ''http'' so I simply added one.

Before:
Code:
resp = opener.open('http://now.sportsnet.ca/mvpd?',
                               urllib.urlencode(values))

After:
Code:
resp = opener.open('https://now.sportsnet.ca/mvpd?',
                               urllib.urlencode(values))

Reopened the addon and everything worked fine.

So that did the trick for me! I thought I might share as I was searching everywhere to get this thing working!


RE: [RELEASE] Sportsnet Now - Marz1970 - 2016-09-18

Thanks, I didn't edit sportnet.py, but I'm going to now


RE: [RELEASE] Sportsnet Now - Marz1970 - 2016-09-18

Thanks, I didn't edit sportnet.py, but I'm going to now