Giter VIP home page Giter VIP logo

xbmc.plugin.video.nba's Introduction

NBA League pass Build Status

As of October 2017, in order to login correctly, you need to go into the addon settings and change your username with your account's email.

Introduction

International NBA League Pass is an online service offering streaming video of NBA games.

This XBMC plugin features:

  • Archive and condensed games for the current NBA season and previous seasons, starting from 2012/2013
  • Home and Away feeds for archive games
  • Highlights and Top Plays
  • NBA TV live (League Pass Premium is required)
  • Live game support
  • Fanart from feeds, and thumbnails

The first version of this plugin was written by robla. Petros Tsampoukas then modified it to work with the 2012 and 2013 NBA seasons, and added images. It requires a valid International League Pass account.

Installation

Requirements

As of 24 March 2014, all games require XBMC/Kodi v13 (Gotham) or higher versions. The archive and condensed games used to work in Frodo but the streams switched to using encryption with HLS, which does not work with Frodo due to faulty cookie support.

From the kodi repositories

Go into Addons > Install from repository > Video Addons > NBA League Pass > Install

Using a zip file

First download the latest version from the download page. Then install the addon from a zip file in xbmc (instructions).

You can also download an unreleased (nightly) version from GitHub releases. This version is automatically updated every time a commit is made to the repository, so it always has the latest changes.

Using git

#if you are on OSX/linux:
cd ~/.xbmc/addons

#if you are on Windows:
cd c:\Users\<username>\AppData\Roaming\XBMC\addons

#Clone the repository:
git clone https://github.com/maxgalbu/xbmc.plugin.video.nba

#To get the latest changes:
git pull

Issues and discussions

If you have a bug to report, please report it on BitBucket or GitHub.

If you have a question or want to discuss an improvement, please head to the Kodi forums topic for this plugin.

Changes

Changelog:

See changelog.txt

Potential new features:

  • Playoff mode: hide the next game of a playoff series
  • Filter for favorite team: only show games from your three favorite teams

Changelog of robla's version:

0.1.6- bugfix for missing 2012 finals games
0.1.1- bugfix for missing 2012 finals games
0.1.0- added listing for complete 2011/2012 season
0.0.9- fix for new domain watch.nba.com
0.0.8- fix for playoff game recaps
0.0.7- fix for archived playoff games
0.0.6- fix for strange schedule js response
0.0.5- apply quality settings for highlights, high = 720p
0.0.4- added highlights and scores
0.0.3- video idx check
0.0.2- initial release
0.0.1- initial test version

Producing a new zip version

zip -r plugin.video.nba.v0_6_6.zip -x\*/.hg/\* -x\*/.hgignore -x\*/docs/\* -x\*/*.pyc -x\*/*.pyo plugin.video.nba/

xbmc.plugin.video.nba's People

Contributors

cpapazian avatar eng2heb avatar ivankokan avatar laconical77 avatar maxgalbu avatar rikware avatar russholio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xbmc.plugin.video.nba's Issues

Recent games VOD behave as if watching the live stream after the game ending.

I tried watching a game from this week in the archive (VOD) with this extension (manually installed with branch polling-service, commit e0ea34f) and it seems to get the right game, but the video just shows "This game has ended", as if I was still watching the live stream long after the end of it.

I would appreciate it if you let me know how I can help with this issue.

Thank you for the hard work, it's appreciated.

Addon doesn't start anymore

The addon isn't working anymore. I used it yesterday without problems, but today I only get this "moving circle" when I start the addon (Kodi v17 on FireTV).

Oder video addons are running fine.

Here is an extraction from my debug log:

18:17:31.237 T:18446744072317607480    INFO: ##### NBA League Pass: Chosen quality_id 0 and target_video_height 72060
18:17:57.870 T:18446744072291741304   DEBUG: Keyboard: scancode: 0x04, sym: 0x0008, unicode: 0x0000, modifier: 0x0
18:17:57.871 T:18446744072291741304   DEBUG: OnKey: backspace (0xf008) pressed, action is Back
18:17:57.871 T:18446744072291741304   DEBUG: Keyboard: scancode: 0x04, sym: 0x0008, unicode: 0x0000, modifier: 0x0
18:17:57.887 T:18446744072291741304   ERROR: GetDirectory - Error getting plugin://plugin.video.nba/
18:17:57.890 T:18446744072291741304   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nba/) failed
18:17:57.891 T:18446744072291741304   DEBUG: CGUIMediaWindow::GetDirectory ()
18:17:57.891 T:18446744072291741304   DEBUG:   ParentPath = [plugin://plugin.video.nba/]
18:17:57.912 T:18446744072305241880   DEBUG: Thread BackgroundLoader start, auto delete: false
18:17:57.931 T:18446744072305241880   DEBUG: Thread BackgroundLoader 18446744072305241880 terminating

I made a quick cross-check with installing Kodi on my Mac. Same result.

choice of home or away feed not available

When trying to watch the game celtics - hornets (10/29), there was no choice of away or home feed. Only the home feed was available when pressing' full game'. Both feeds were available on the website.
When checking grizzlies - knicks, we could chose

Feature requests

Hi,
Didn't know where else to issue a feature requests, hope it's okay.

  1. Would like to see the highlights on the first page, where they were. Click on date and watch highlights on that date. Now kinda hidden in the archive and finding them counterintuitive in my opinion.
  2. NBA.com specials like Shaqtin a fool, The Starters, etc.
  3. NBA TV on demand, list of programs from the NBA tv channel, if that's possible
  4. Access to the vault on NBA TV.

Thats it, great addon btw. I'm a big fan of your work. Trying to become a pythonista but still a noob. Can't understand 90% of your code (lack of comments don't help but no biggie). Keep it up, your'e awesome!!!

Best regards,
Siggi from Iceland

auto select bitrate/variable bitrate

Allow user to opt-out of forcing bit rate. rather than selecting a bitrate in config, an option could be "auto", which would pass along top level HLS url, and let ffmpeg determine the best bitrate.

Watching live games in delay

Hi, first thanks for this amazing addon!

I have an issue when I want to start watching the game an hour late but from the beginning of course. I see that this is not possible so the only thing I can do is wait about 3 hours until the game show up on the archive games list.

a) Is there a way to watch 'live' games but in delay?
b) Do I really need to wait 2-3 hours after the game ends until I can watch the full game?

Thanks

Cant open date to play highlights, top plays

When I try to click on a date to play highlights or top plays it gives an error:
"NBA League Pass error. Check the error log for more informatiopn."

Example of error message is:
5 T:5292 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 404: Not Found
    Traceback (most recent call last):
    File "C:\Users\Siggi\AppData\Roaming\Kodi\addons\xbmc.plugin.video.nba-master\leaguepass.py", line 83, in
    videoMenu(url, mode.replace("videodate", "") )
    File "C:\Users\Siggi\AppData\Roaming\Kodi\addons\xbmc.plugin.video.nba-master\videos.py", line 50, in videoMenu
    response = urllib2.urlopen(url).read()
    File "C:\Program Files\Kodi\system\python\Lib\urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
    File "C:\Program Files\Kodi\system\python\Lib\urllib2.py", line 410, in open
    response = meth(req, response)
    File "C:\Program Files\Kodi\system\python\Lib\urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
    File "C:\Program Files\Kodi\system\python\Lib\urllib2.py", line 448, in error
    return self._call_chain(_args)
    File "C:\Program Files\Kodi\system\python\Lib\urllib2.py", line 382, in _call_chain
    result = func(_args)
    File "C:\Program Files\Kodi\system\python\Lib\urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 404: Not Found
    -->End of Python script error report<--

This is version 0.7, started after the end of last season. The other links work fine, nba tv, games etc. Just highlights and top plays not working. Please fix, I love this add-on.

Many full archive games not working

I have tried setting many different bit rates in the plugin settings and nothing.
Example game: 2015-12-18 Pistons vs Bulls (Full game, home feed)
I get a "Failed to get video Url...." error and then it switches to "Video not found"
I tried switching all the bitrates in the plugin settings and still nothing.

League Video may be older than 2013 can not be played.

First of all, Very very Thank you for this addon developer.
I want to watch 2013, 2014 final game. SAS vs Mia
But it Cannot be played..
2015 league video and 2016, live video is well played..
What should I do? Please let me know anything.

Feature Request : Recording to file for offline viewing

Hello,

I would find very usefull to be able to record the streams to watch offline, by just recording the stream straight to a file and without having to watch it.

First I tried a solution based on using VLC as an external player by modifying playercorefactory.xml
This works only on Shaqtin a foul video, since it doesn't requires authentication.

My guess is that the issue is with the authentication that is cookies based, and that you can't pass to an external player.

Now I saw there is a download addon that could be maybe integrated in the nba plugin.
http://kodi.wiki/view/Add-on:Simple_Downloader_for_xbmc_plugins#Developers
But there might still be a problem with cookies support.

Regards

Plugin ignoring the quality option.

You know how on watch.nba.com you can select bitrate etc? Here i'm selecting 800kbps and it's going full 720p which kills my internet. Fix the quality issue pelase. It is super important for me as this is the only way to watch nba tv

file.close() referenced before assignment

Hey there,

In branch polling service, when installing from zero, this piece is throwing with a UnboundLocalError:

Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'file' referenced before assignment
Traceback (most recent call last):
  File "%APPDATA%\Roaming\Kodi\addons\plugin.video.nba\src\service.py", line 116, in <module>
    main()
  File "%APPDATA%\Roaming\Kodi\addons\plugin.video.nba\src\service.py", line 97, in main
    shared_data.set("playing", {})
  File "%APPDATA%\Roaming\Kodi\addons\plugin.video.nba\src\shareddata.py", line 24, in set
    json_content = self.__getFileContent()
  File "%APPDATA%\Roaming\Kodi\addons\plugin.video.nba\src\shareddata.py", line 19, in __getFileContent
    file.close()
UnboundLocalError: local variable 'file' referenced before assignment

I believe something like this would fix it:

def __getFileContent(self):
    try:
        with open(self.file_path) as file:
            file_content = file.read()
    except IOError:
        file_content = "{}"
    return json.loads(file_content)

Cheers

NBA TV Live stops after ten minutes

NBA TV Live streams seems to just stop after approximately ten minutes. There's no issues with bandwidth and it works fine as soon as it's restarted.

Error Contents: No module named base_thread

When on my windows 7 x64 PC with kodi 16.1 install plugin,this operation with error,plugin do not start:

Error Contents: No module named base_thread
Traceback (most recent call last):
File "C:\Users\�������\AppData\Roaming\Kodi\addons\plugin.video.nba\src\service.py", line 15, in
from base_thread import BaseThread
ImportError: No module named base_thread

My Admin username in cyrillic font (Russia),please insert fixing patch in plugin.
(for example: _addon_path = xbmc.translatePath(_ADDON.getAddonInfo('path')).decode('utf-8') )

UnboundLocalError: local variable 'file' referenced before assignment

Hi, I guess this issue is not a big deal, but still...
20:49:11.533 T:8060 NOTICE: special://profile/ is mapped to: special://masterprofile/
20:49:11.533 T:8060 NOTICE: -----------------------------------------------------------------------
20:49:11.533 T:8060 NOTICE: Starting Kodi (17.1 Git:20170320-fc1619b). Platform: Windows NT x86 32-bit
20:49:11.533 T:8060 NOTICE: Using Release Kodi x32 build
20:49:11.533 T:8060 NOTICE: Kodi compiled Mar 20 2017 by MSVC 190024215 for Windows NT x86 32-bit version 10.0 (0x0A000000)
20:49:11.533 T:8060 NOTICE: Running on Hewlett-Packard HP ProBook 640 G1 with Windows 7 SP1, kernel: Windows NT x86 64-bit version 6.1
20:49:11.544 T:8060 NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
20:49:11.544 T:8060 NOTICE: Host CPU: Unknown, 4 cores available
20:49:11.544 T:8060 NOTICE: Desktop Resolution: 1366x768 32Bit at 60Hz
20:49:11.544 T:8060 NOTICE: Running with restricted rights
20:49:11.544 T:8060 NOTICE: Aero is enabled
20:49:11.544 T:8060 NOTICE: special://xbmc/ is mapped to: C:\Program Files (x86)\Kodi
20:49:11.544 T:8060 NOTICE: special://xbmcbin/ is mapped to: C:\Program Files (x86)\Kodi
20:49:11.544 T:8060 NOTICE: special://xbmcbinaddons/ is mapped to: C:\Program Files (x86)\Kodi/addons
20:49:11.544 T:8060 NOTICE: special://masterprofile/ is mapped to: C:\Users\ekokiva\AppData\Roaming\Kodi\userdata
20:49:11.544 T:8060 NOTICE: special://home/ is mapped to: C:\Users\ekokiva\AppData\Roaming\Kodi
20:49:11.544 T:8060 NOTICE: special://temp/ is mapped to: C:\Users\ekokiva\AppData\Roaming\Kodi\cache
20:49:11.544 T:8060 NOTICE: special://logpath/ is mapped to: C:\Users\ekokiva\AppData\Roaming\Kodi
20:49:11.544 T:8060 NOTICE: The executable running is: C:\Program Files (x86)\Kodi\kodi.exe
20:49:11.550 T:8060 NOTICE: Local hostname: HR00088835
20:49:11.550 T:8060 NOTICE: Log File is located: C:\Users\ekokiva\AppData\Roaming\Kodi/kodi.log
20:49:11.550 T:8060 NOTICE: -----------------------------------------------------------------------
20:49:11.593 T:8060 NOTICE: load settings...
20:49:11.601 T:8060 WARNING: CSettingString: unknown options filler "timezonecountries" of "locale.timezonecountry"
20:49:11.601 T:8060 WARNING: CSettingString: unknown options filler "timezones" of "locale.timezone"
20:49:11.606 T:8060 NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
20:49:11.607 T:8060 NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
20:49:11.607 T:8060 NOTICE: Default Video Player: VideoPlayer
20:49:11.607 T:8060 NOTICE: Default Audio Player: paplayer
20:49:11.607 T:8060 NOTICE: Disabled debug logging due to GUI setting. Level 0.
20:49:11.607 T:8060 NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
20:49:11.607 T:8060 NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
20:49:11.608 T:8060 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
20:49:11.608 T:8060 NOTICE: Loaded playercorefactory configuration
20:49:11.608 T:8060 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
20:49:11.608 T:8060 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
20:49:11.628 T:8060 NOTICE: Running database version Addons27
20:49:11.709 T:8060 NOTICE: ADDONS: Using repository repository.xbmc.org
20:49:11.743 T:4508 NOTICE: Found 2 Lists of Devices
20:49:11.743 T:4508 NOTICE: Enumerated DIRECTSOUND devices:
20:49:11.743 T:4508 NOTICE: Device 1
20:49:11.743 T:4508 NOTICE: m_deviceName : {9F4A2D7D-D804-444E-8C3A-DDC9435BF0D3}
20:49:11.743 T:4508 NOTICE: m_displayName : Speakers - Speakers / HP (IDT High Definition Audio CODEC)
20:49:11.743 T:4508 NOTICE: m_displayNameExtra: DIRECTSOUND: Speakers / HP (IDT High Definition Audio CODEC)
20:49:11.743 T:4508 NOTICE: m_deviceType : AE_DEVTYPE_PCM
20:49:11.743 T:4508 NOTICE: m_channels : FL,FR
20:49:11.743 T:4508 NOTICE: m_sampleRates : 48000
20:49:11.743 T:4508 NOTICE: m_dataFormats : AE_FMT_FLOAT
20:49:11.743 T:4508 NOTICE: m_streamTypes : No passthrough capabilities
20:49:11.743 T:4508 NOTICE: Device 2
20:49:11.743 T:4508 NOTICE: m_deviceName : default
20:49:11.743 T:4508 NOTICE: m_displayName : default
20:49:11.743 T:4508 NOTICE: m_displayNameExtra:
20:49:11.743 T:4508 NOTICE: m_deviceType : AE_DEVTYPE_PCM
20:49:11.743 T:4508 NOTICE: m_channels : FL,FR
20:49:11.743 T:4508 NOTICE: m_sampleRates : 48000
20:49:11.743 T:4508 NOTICE: m_dataFormats : AE_FMT_FLOAT
20:49:11.743 T:4508 NOTICE: m_streamTypes : No passthrough capabilities
20:49:11.743 T:4508 NOTICE: Enumerated WASAPI devices:
20:49:11.743 T:4508 NOTICE: Device 1
20:49:11.743 T:4508 NOTICE: m_deviceName : {9F4A2D7D-D804-444E-8C3A-DDC9435BF0D3}
20:49:11.743 T:4508 NOTICE: m_displayName : Speakers - Speakers / HP (IDT High Definition Audio CODEC)
20:49:11.743 T:4508 NOTICE: m_displayNameExtra: WASAPI: Speakers / HP (IDT High Definition Audio CODEC)
20:49:11.743 T:4508 NOTICE: m_deviceType : AE_DEVTYPE_PCM
20:49:11.743 T:4508 NOTICE: m_channels : FL,FR
20:49:11.743 T:4508 NOTICE: m_sampleRates : 192000,96000,88200,48000,44100
20:49:11.743 T:4508 NOTICE: m_dataFormats : AE_FMT_S24NE4MSB,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
20:49:11.743 T:4508 NOTICE: m_streamTypes : No passthrough capabilities
20:49:11.743 T:4508 NOTICE: Device 2
20:49:11.743 T:4508 NOTICE: m_deviceName : default
20:49:11.743 T:4508 NOTICE: m_displayName : default
20:49:11.743 T:4508 NOTICE: m_displayNameExtra:
20:49:11.743 T:4508 NOTICE: m_deviceType : AE_DEVTYPE_PCM
20:49:11.743 T:4508 NOTICE: m_channels : FL,FR
20:49:11.743 T:4508 NOTICE: m_sampleRates : 192000,96000,88200,48000,44100
20:49:11.743 T:4508 NOTICE: m_dataFormats : AE_FMT_S24NE4MSB,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
20:49:11.743 T:4508 NOTICE: m_streamTypes : No passthrough capabilities
20:49:11.799 T:8060 NOTICE: Found screen: Generic PnP Monitor on Intel(R) HD Graphics 4600, adapter 0.
20:49:11.800 T:8060 NOTICE: Primary mode: 1366x768@ 60.00 - Full Screen
20:49:11.802 T:8060 NOTICE: Additional mode: 640x480@ 60.00 - Full Screen
20:49:11.803 T:8060 NOTICE: Previous line repeats 2 times.
20:49:11.803 T:8060 NOTICE: Additional mode: 800x600@ 60.00 - Full Screen
20:49:11.804 T:8060 NOTICE: Previous line repeats 2 times.
20:49:11.805 T:8060 NOTICE: Additional mode: 1024x768@ 60.00 - Full Screen
20:49:11.805 T:8060 NOTICE: Previous line repeats 2 times.
20:49:11.805 T:8060 NOTICE: Additional mode: 1366x768@ 60.00 - Full Screen
20:49:11.805 T:8060 NOTICE: Checking resolution 15
20:49:14.774 T:8060 ERROR: AddOnLog: Joystick Support: Failed to load XInput DLL
20:49:14.774 T:8060 ERROR: AddOnLog: Joystick Support: Failed to initialize interface xinput
20:49:14.797 T:10292 NOTICE: Running database version Addons27
20:49:14.799 T:10292 NOTICE: Running database version ViewModes6
20:49:14.801 T:10292 NOTICE: Running database version Textures13
20:49:14.803 T:10292 NOTICE: Running database version MyMusic60
20:49:14.807 T:10292 NOTICE: Running database version MyVideos107
20:49:14.809 T:10292 NOTICE: Running database version TV29
20:49:14.810 T:10292 NOTICE: Running database version Epg11
20:49:14.977 T:8060 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
20:49:15.083 T:8060 NOTICE: initialize done
20:49:15.083 T:8060 NOTICE: Running the application...
20:49:15.084 T:8060 NOTICE: starting upnp client
20:49:15.091 T:13100 NOTICE: ES: Starting UDP Event server on port 9777
20:49:15.091 T:13100 NOTICE: UDP: Listening on port 9777 (ipv6 : false)
20:49:18.441 T:5212 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'file' referenced before assignment
Traceback (most recent call last):
File "C:\Users\ekokiva\AppData\Roaming\Kodi\addons\plugin.video.nba\src\service.py", line 116, in
main()
File "C:\Users\ekokiva\AppData\Roaming\Kodi\addons\plugin.video.nba\src\service.py", line 97, in main
shared_data.set("playing", {})
File "C:\Users\ekokiva\AppData\Roaming\Kodi\addons\plugin.video.nba\src\shareddata.py", line 24, in set
json_content = self.__getFileContent()
File "C:\Users\ekokiva\AppData\Roaming\Kodi\addons\plugin.video.nba\src\shareddata.py", line 19, in __getFileContent
file.close()
UnboundLocalError: local variable 'file' referenced before assignment
-->End of Python script error report<--
20:49:20.597 T:13604 ERROR: XFILE::CDirectory::GetDirectory - Error getting

Late start of archive games

Hello i'm from Bulgaria and i have problem with archive games , I can't play them very later after they are allready finished , when i try to open the game it start a video with Game Has Ended and this is 5 hours after the games are finished in USA .When i enter NBA.com with League pass from the browser the games starts.Can you help me with this pretime of Kodi

How to fix "Failed to get a video URL"?

Hi, I tried to watch some archived games, but the addon always tells me that he failed to get a video URL. I am logged in with my NBA League Pass italian account. How can I fix the problem, please?

Video not playable

Hi I tried The first Gamein preseason but not working
Can u fix it please

Closed Caption

Its not really a issue or bug, but is there any way to add closed caption to the plugin?

Video Smoothness

Just wondering about smoothness on playback...
If you look at the Hawks-Spurs game from 2017-03-13 the video plays perfectly smooth, you can absolutely notice the difference! All the other games don't. I didn't see the live game of this one but I guess it had the same quality.
Does this videoquality come from NBA's side (encoded video) or is it a issue with my Setup of Kodi or the addon itself?
If it is on my end: If someone can tell me how to optimize the videoquality please feel free to do so... ;-)

(And if I remember correctly all the games from the previous season had the same Quality as the on above)

THX

404 not found

As of today I get an 404 error message whenever I enter live games or the archives.

National TV feeds in playoff matches are missing

Hey maxgalbu,

now, as the playoffs have begun, every game is available with multiple feeds. At least when I watch the games through the website. Home & away feed along with national TV feed (TNT, ABC etc.). In your plugin there's only the usual home & away feed. I've seen this for example with CHI@BOS Game 1. No chance to see the TNT feed with your plugin atm.

Is there any chance to modify your plugin to also offer the national feeds?

Thanks!

Regards,
JayDee

Latest Nightly - Away Feeds

Hey Max,

The latest nightly appears to of removed the option of the away feed completely, also the alternate cameras don't appear to be working.

Cheers,
Eddie

Cannot login anymore, cannot access any games or NBA TV

Last used the latest version of the addon (0.8.2) about a couple of weeks ago and it was working perfectly fine. Renewed my LP subscription, tried again today and nothing seems to be working (eg. cannot watch any archived games or NBA TV), as all requests fail with a login error. Credentials work OK on the website.

This must be a new issue, possibly related to 2016-17 League Pass API? (not sure if they've changed something since last year).

Here is the debug log snippet when trying to launch live NBA TV (tokens, usernames etc have been masked):

21:17:10 1384684.000000 T:1963282432   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
21:17:10 1384684.125000 T:1963282432   DEBUG: OnKey: return (0xf00d) pressed, action is Select
21:17:10 1384684.125000 T:1963282432   DEBUG: OnPlayMedia plugin://plugin.video.nba/?url=&mode=nbatvlive&name=Watch+live
21:17:10 1384684.125000 T:1963282432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
21:17:10 1384684.125000 T:1963282432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
21:17:10 1384684.250000 T:1963282432   DEBUG: StartScript - calling plugin NBA League Pass('plugin://plugin.video.nba/','210','?url=&mode=nbatvlive&name=Watch+live')
21:17:10 1384684.250000 T:1424208800   DEBUG: Thread LanguageInvoker start, auto delete: false
21:17:10 1384684.250000 T:1963282432   DEBUG: WaitOnScriptResult - waiting on the NBA League Pass (id=594) plugin...
21:17:10 1384684.250000 T:1424208800    INFO: initializing python engine.
21:17:10 1384684.250000 T:1424208800   DEBUG: CPythonInvoker(594, /storage/.kodi/addons/xbmc.plugin.video.nba-master/leaguepass.py): start processing
21:17:10 1384684.375000 T:1424208800   DEBUG: -->Python Interpreter Initialized<--
21:17:10 1384684.375000 T:1424208800   DEBUG: CPythonInvoker(594, /storage/.kodi/addons/xbmc.plugin.video.nba-master/leaguepass.py): the source file to load is "/storage/.kodi/addons/xbmc.plugin.video.nba-master/leaguepass.py"
21:17:10 1384684.375000 T:1424208800   DEBUG: CPythonInvoker(594, /storage/.kodi/addons/xbmc.plugin.video.nba-master/leaguepass.py): setting the Python path to /storage/.kodi/addons/xbmc.plugin.video.nba-master:/storage/.kodi/addons/script.common.plugin.cache/lib:/storage/.kodi/addons/script.module.dateutil/lib:/storage/.kodi/addons/script.module.pytz/lib:/storage/.kodi/addons/script.module.six/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
21:17:10 1384684.375000 T:1424208800   DEBUG: CPythonInvoker(594, /storage/.kodi/addons/xbmc.plugin.video.nba-master/leaguepass.py): entering source directory /storage/.kodi/addons/xbmc.plugin.video.nba-master
21:17:10 1384684.375000 T:1424208800   DEBUG: CPythonInvoker(594, /storage/.kodi/addons/xbmc.plugin.video.nba-master/leaguepass.py): instantiating addon using automatically obtained id of "plugin.video.nba" dependent on version 2.20.0 of the xbmc.python api
21:17:11 1384684.875000 T:1424208800    INFO: ##### NBA League Pass: Chosen quality_id 0 and target_video_height 72060
21:17:12 1384685.625000 T:1424208800   DEBUG: ##### NBA League Pass: Login reponse: <?xml version="1.0" encoding="UTF-8"?>
                                            <result>

                                                    <code>loginsuccess</code>


                                                    <data>




                                                                    <premium><![CDATA[true]]></premium>






                                                                    <trackUsername><![CDATA[***********]]></trackUsername>






                                                                    <givenName><![CDATA[****]]></givenName>






                                                                    <refresh><![CDATA[true]]></refresh>






                                                                    <userName><![CDATA[*******]]></userName>






                                                                    <premiumpkg><![CDATA[true]]></premiumpkg>






                                                                    <hasSubscription><![CDATA[true]]></hasSubscription>






                                                                    <live><![CDATA[true]]></live>



                                                    </data>

                                            </result>
21:17:12 1384685.750000 T:1424208800   DEBUG: ##### NBA League Pass: nba tv live: the body of publishpoint request is: nt=1&ppid=*******&type=channel&id=0
21:17:12 1384685.750000 T:1963282432   DEBUG: DialogProgress::Open called
21:17:12 1384685.750000 T:1963282432   DEBUG: ------ Window Init (DialogProgress.xml) ------
21:17:13 1384686.500000 T:1424208800   DEBUG: ##### NBA League Pass: nba live tv: failed getting url: http://watch.nba.com/nba/servlets/publishpoint <html><head><title>Apache Tomcat/6.0.36 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.36</h3></body></html>
21:17:13 1384686.500000 T:1424208800   DEBUG: POParser: loaded 12 strings from file /storage/.kodi/addons/xbmc.plugin.video.nba-master/resources/language/English/strings.po
21:17:13 1384686.500000 T:1424208800    INFO: CPythonInvoker(594, /storage/.kodi/addons/xbmc.plugin.video.nba-master/leaguepass.py): script successfully run
21:17:13 1384686.500000 T:1963282432   DEBUG: WaitOnScriptResult- plugin returned successfully
21:17:13 1384686.625000 T:1963282432   DEBUG: Loading settings for
21:17:13 1384686.625000 T:1963282432   DEBUG: CPlayerCoreFactory::GetPlayers()

Looks like I'm getting a "loginsuccess" response, but immediately afterwards the next request fails with "The request sent by the client was syntactically incorrect".

Could you please look into it? The new season is upon is and this addon is really a must, the ultimate plugin for those watching NBA LP via Kodi.

Thanks.

Autorestart game

Hi. First of all, your plugin is brilliant but i have an issue. Every hour, to be accurate in the first minute of every hour, stream (720p 60fps, if it matters) is stops and i must restart it by hands and it's very annoying. As much as i understand it happens because the NBA changes url of the stream. Whether there is a way to restart stream automatically? Thanks.

Cannot login anymore, cannot access any games or NBA TV

https://paste.ubuntu.com/23201010/

It worked a week ago. I have international league pass...and I can watch fine on the web site.

I'm getting this back from browser in the xml which used to show the manifest url:

adaptive://nlds16.neulion.com:443/nlds/nba/nba247/as/live/s_nba247_live_game_hd?plid=xxxx&auth_key=xxx-1474252150-32-*&nltid=nba&nltdt=0&uid=xxxx

also publish endpoint is now: https://watch.nba.com/service

edit: nevermind, had to query with iPad user agent. but the endpoint still changed.

the final series of matches on live are interrupted every 55 minutes

Kodi create new link
http://nlds130.cdnak.neulion.com/nlds/nba/..........

Dexpires%253D1465864219
Dexpires%253D1465866213
Dexpires%253D1465866744
Dexpires%253D1465869802

03:44:31 T:17832 NOTICE: DVDPlayer: Opening: http://nlds131.cdnak.neulion.com/nlds/nba/cle/as/live/cle_hd_4500_ipad.m3u8?nltid=nba&nltdt=6&nltnt=1&uid=5570507&hdnea=expires%3D1466124395%7Eaccess%3D%2Fnlds%2Fnba%2Fcle%2Fas%2Flive%2F*%7Emd5%3D86bba3ce8e848cb35d7719ce5ded7f40|Cookie=nlqptid%3Dnltid%3Dnba%26nltdt%3D6%26nltnt%3D1%26uid%3D5570507%26hdnea%3Dexpires%253D1466124395%257Eaccess%253D%252Fnlds%252Fnba%252Fcle%252Fas%252Flive%252F%2A%257Emd5%253D86bba3ce8e848cb35d7719ce5ded7f40

04:28:23 T:17832 NOTICE: DVDPlayer: Opening: http://nlds131.cdnak.neulion.com/nlds/nba/cle/as/live/cle_hd_4500_ipad.m3u8?nltid=nba&nltdt=6&nltnt=1&uid=5570507&hdnea=expires%3D1466127027%7Eaccess%3D%2Fnlds%2Fnba%2Fcle%2Fas%2Flive%2F*%7Emd5%3Da4753935e11a4732731d0db2979ef019|Cookie=nlqptid%3Dnltid%3Dnba%26nltdt%3D6%26nltnt%3D1%26uid%3D5570507%26hdnea%3Dexpires%253D1466127027%257Eaccess%253D%252Fnlds%252Fnba%252Fcle%252Fas%252Flive%252F%2A%257Emd5%253Da4753935e11a4732731d0db2979ef019

05:06:01 T:17832 NOTICE: DVDPlayer: Opening: http://nlds131.cdnak.neulion.com/nlds/nba/cle/as/live/cle_hd_4500_ipad.m3u8?nltid=nba&nltdt=6&nltnt=1&uid=5570507&hdnea=expires%3D1466129285%7Eaccess%3D%2Fnlds%2Fnba%2Fcle%2Fas%2Flive%2F*%7Emd5%3Daf746a3c21184819ade804c34492e453|Cookie=nlqptid%3Dnltid%3Dnba%26nltdt%3D6%26nltnt%3D1%26uid%3D5570507%26hdnea%3Dexpires%253D1466129285%257Eaccess%253D%252Fnlds%252Fnba%252Fcle%252Fas%252Flive%252F%2A%257Emd5%253Daf746a3c21184819ade804c34492e453

No new episodes of Shaqtin'a fool

I cannot find 2017 episodes of Shaqtin'a fool with the Add-on. The last found episode is from December 2016.

But 2017 episodes seem to exist, because I have found them trough other web sources.

Is this a problem of the Add-on? Or from the Neulion source?

How to fix "Failed to get a video URL"?

Hi, I tried to watch some archived games, but the addon always tells me that he failed to get a video URL. I am logged in with my NBA League Pass italian account. How can I fix the problem, please?

Stopped working

Today stopped working.
I tried to see bulls.celtics but i can't.
Yesterday was working like a charm as always.
Something changed today
Sorry for my English...I'm from Uruguay
Thanks for this big addon!!

Playback just stops randomly

I've been using this on both a Windows 7 PC and a Raspberry Pi 3, and on both versions playback will often just stop and kick me back to the add-on menu. There's no error message or other feedback, and no sign that a stoppage is coming. This is most noticeable when trying to watch NBA TV live.

Dependencies not met

When I try to install the add-on from the zip file, I get the following error: Dependencies not met. Please contact add-on author.

NBA League Pass for USA? It doesn't work. Can we make it happen?

What would it take to get this to work for USA? I would be willing to help troubleshoot. I am not a programmer but I have done extensive web project development. When I login to NBA LeaguePass with my USA account, it works, except for playing the actual video. It says "Failed to find video URL, are you logged in?"

NBA League Pass Stutters or Crashes

The stream starts fine, but maybe 5-10 minutes into it the stream starts to stutters or crashes back to the menu. Also, I tried changing the video quality from 720p to 540p and it never changes on the stream, but it does change in the settings.

Error Connect Live Games

i used saturday night (10/15) the plugin to watch a live game and error -> Failed to get a video URL - Are you logged in??? but i access to webpage and see OK, i try in nba app of mobile android and run OK. The user y pass of plugin is well because i enter good in webpage and android. But the strange is what when go to archive games through the plugin can see OK.

Maybe, nba change something to streaming live games.

Allow users to watch the live stream if it's ended (was: Cannot see Full games anymore)

Hi!

First of all, thanks for this plugin, way better to see the game on TV instead of the iPad!

During the last week I cannot see the full games of the Finals, while the condensed games start correctly. The error is "Failed to get a video URL. Are you logged in?"
But I am logged in and I can see the condensed videos. And I can see the full games on iPad, so I think the problem is in the plugin that it is not able to retrieve the link.

Mattia.

Can we get National TV versions of the match?

I wish there was also the option for national tv broadcast when available. For example, last night Nets @ Knicks and Rockets @ Spurs was on ESPN, but this add-on only gives the option of home or away feeds.

Is this feasible? Thanks :)

Quality setting not working

The quality setting in the add-on configuration does not change the quality of the stream, which is stuck on the highest setting. Love the add-on, but unfortunately my sucky internet connection ends up buffering a lot as a result. jwwiii1982 mentioned having the same issue.

after a Kodi update, games failed to start

Hi,

I'm running KODI 17 RC3.

On RC2 the addon worked fine.
But now when I want to start a game I get the following in my logs:

09:04:37.513 T:139767859164928   DEBUG: CPythonInvoker(53, /home/sven/.kodi/addons/plugin.video.nba/leaguepass.py): start processing
09:04:37.564 T:139767859164928   DEBUG: -->Python Interpreter Initialized<--
09:04:37.564 T:139767859164928   DEBUG: CPythonInvoker(53, /home/sven/.kodi/addons/plugin.video.nba/leaguepass.py): the source file to load is "/home/sven/.kodi/addons/plugin.video.nba/leaguepass.py"
09:04:37.564 T:139767859164928   DEBUG: CPythonInvoker(53, /home/sven/.kodi/addons/plugin.video.nba/leaguepass.py): setting the Python path to /home/sven/.kodi/addons/plugin.video.nba:/home/sven/.kodi/addons/script.common.plugin.cache/l$
09:04:37.564 T:139767859164928   DEBUG: CPythonInvoker(53, /home/sven/.kodi/addons/plugin.video.nba/leaguepass.py): entering source directory /home/sven/.kodi/addons/plugin.video.nba
09:04:37.564 T:139767859164928   DEBUG: CPythonInvoker(53, /home/sven/.kodi/addons/plugin.video.nba/leaguepass.py): instantiating addon using automatically obtained id of "plugin.video.nba" dependent on version 2.20.0 of the xbmc.python$
09:04:38.000 T:139768463657344   DEBUG: ------ Window Init (DialogBusy.xml) ------
09:04:38.400 T:139767859164928    INFO: ##### NBA League Pass: Chosen quality_id 0 and target_video_height 72060
09:04:38.406 T:139767859164928   DEBUG: ##### NBA League Pass: the body of publishpoint request is: gt=64&bitrate=1600&plid=09cc5c1c4cf57f4f971621d24c398dd5&type=game&extid=0021600634
09:04:38.445 T:139767859164928   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.URLError'>
                                            Error Contents: <urlopen error [Errno 0] Error>
                                            Traceback (most recent call last):
                                              File "/home/sven/.kodi/addons/plugin.video.nba/leaguepass.py", line 80, in <module>
                                                chooseGameVideoMenu()
                                              File "/home/sven/.kodi/addons/plugin.video.nba/games.py", line 327, in chooseGameVideoMenu
                                                highlights_url = getHighlightGameUrl(video_id)
                                              File "/home/sven/.kodi/addons/plugin.video.nba/games.py", line 108, in getHighlightGameUrl
                                                response = urllib2.urlopen(request)
                                              File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                                return opener.open(url, data, timeout)
                                              File "/usr/lib/python2.7/urllib2.py", line 429, in open
                                                response = self._open(req, data)
                                              File "/usr/lib/python2.7/urllib2.py", line 447, in _open
                                                '_open', req)
                                              File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
                                                result = func(*args)
                                              File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
                                                context=self._context)
                                              File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
                                                raise URLError(err)
                                            URLError: <urlopen error [Errno 0] Error>
                                            -->End of Python script error report<--
09:04:38.458 T:139768463657344   DEBUG: ------ Window Init (DialogNotification.xml) ------
09:04:38.563 T:139767859164928    INFO: Python script stopped
09:04:38.563 T:139767859164928   DEBUG: Thread LanguageInvoker 139767859164928 terminating
09:04:38.588 T:139768463657344   ERROR: GetDirectory - Error getting plugin://plugin.video.nba/?game_state=2&has_condensed_game=0&mode=gamechoosevideo&name=2017-01-18%20Thunder%20vs%20Warriors&url&video_hasawayfeed=1&video_id=0021600634$
09:04:38.589 T:139768463657344   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nba/?game_state=2&has_condensed_game=0&mode=gamechoosevideo&name=2017-01-18%20Thunder%20vs%20Warriors&url&video_hasawayfeed=1&video_id=002160063$
09:04:38.590 T:139768463657344   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.nba/?mode=thisweek&name=This%20week&url=archive)
09:04:38.590 T:139768463657344   DEBUG:   ParentPath = [plugin://plugin.video.nba/?mode=archive&name=Archive&url=archive]
09:04:38.599 T:139766582454016   DEBUG: CAddonDatabase::SetLastUsed[plugin.video.nba] took 10 ms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.