maxgalbu / xbmc.plugin.video.nba

Kodi plugin to watch NBA games with nba league pass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't play live or archive games

besarbb opened this issue · comments

Hey guys, firstly thanks a lot for keeping the add-on up to date, this is absolutely great :)

Until tonight, every live game worked perfect, but tonight, it can't open any game. Here's my kodi.log file:
https://pastebin.com/nNCM765J

Cheers :)

Hi,

Looks like the url coming back now is https and the code is expecting http. if you want to fix it right away go and open C:\Users\Doruntina\AppData\Roaming\Kodi\addons\plugin.video.nba\src\games.py in notepad or something and go to line 96. It should look something like: match = re.search('http://([^:]+)/([^?]+?)?(.+)$', url)

just change the http to https and save the file. Should work afterwards.

I think that there is some new cookies in nba.com witch obstruct to play some of the games in KODI

It does appear the NBA have just made a pretty big change, they are now using SAMPLE-AES on their M3U8 files, this could be the end of this add-on, but I hope not. Further inspection shows that the NBA have upgraded watch.nba.com to include the 720HD 60fps feed, significant changes occuring.

The whole situation is very confusing and unstable. Tried to watch the Cavs-Magic game from Oct 13th, both on watch.nba.com, on Kodi, on Xbox One official app and on Android TV official app. It only works on the official site but nowhere else (but I'm not sure this new "720HD" thing is 60fps, doesn't look like pure 60fps to me, do we have any specific examples?)

Even the Xbox official app, which got upgraded a couple of days ago, throws an error about an unrecognizable/unsupportable URL for the said game. WTH is Neulion doing? Also need to note that NBA TV isn't playing at all on any of the above apps, only works on watch.nba.com.

Then I tried to watch the Clippers-Kings game from Oct 12th and it's working everywhere. Then I tried to watch the Clippers-Lakers game which I believe is the absolute final preseason event of the NBA, that too is playing across all apps and platforms.

Let's hope Neulion/NBA sort this out first on their official apps and then we'll see what can be done with Max's great addon.

Everything is working fine for me guys...
@amila what game needs that change?

Well I just used the release from an hour ago and archive games work but live games still don't.

23:43:33.541 T:17516 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=1&name=Camera+20%3A+Spanish+%28Movistar%29&camera_number=20&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000
23:43:33.541 T:17516   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=1&name=Camera+20%3A+Spanish+%28Movistar%29&camera_number=20&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000
23:43:33.541 T:17516 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=1&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000
23:43:33.541 T:17516   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=1&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000
23:43:33.541 T:17516 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=1&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000
23:43:33.541 T:17516   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=1&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000
23:43:33.542 T:17516 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=1&name=Full+game%2C+away+feed&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000&video_ishomefeed=0
23:43:33.542 T:17516   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=1&name=Full+game%2C+away+feed&url=&start_time=1508367600000&video_id=0021700003&video_type=live&mode=playgame&duration=2518000&video_ishomefeed=0

Same here. None of the 4 games currently live is working.

Same here - trying to watch the mavs game and same problem as lastnight - 'are you logged in?'

thx maxgalbu for your work!
same problem, archive games work but live games and NBA TV Live still don't
I use Kodi v17.4 on my Fire TV
Greetings from Germany

As @furkyto has mentioned, even the archive games that do work, buffer a lot compared to the week before we started getting these "https" links.

I can't play any games, archive or live. Getting the "Failed to get a URL...are you logged in?" error that everyone else is getting.
Does this addon require an international league pass subscription? I have a US subscription.

@lowkeyluce yes it requires an international subscription and I believe requires a non-US IP.

@mikesells thanks. confirmed archived games are working with an international subscription & non-US IP. updated the script to look for https on live games and will test that out tonight.

Thanks for the great add-on @maxgalbu !

@lowkeyluce live games won't work till he updates the script to take their new method which they changed over night before the first live games.

It is a shame as reddit have already gotten by this by using they key url and flowplayer

@RedManMark86 Live games are working for me. Watching the Bulls and Raptors right now.

Still doesn't work here... even bulls raps..

Use 1.0.0 and edit the games.py script to look for https instead of http as suggested by @amila.

I can't get live games to work with 1.0.1, even after editing games.py.

Just tryied that @lowkeyluce ... not working here...

@angus1225 I guess make sure you're using your email address as the username, not sure what else you can try beyond that though.
Knicks and Thunder is working for me too.

Obviously I do. I don't get "not logged" I get " NBA league pass error.check log file"
Just don't know.
I will wait to max magic solution

For what it's worth, that's the error I got before updating the games.py script. Something else must be going on for you though. Good luck.

This is what it said me in kodi.log:

NOTICE: DVDPlayer: Opening: https://neunlds287.akamaized.net/nlds/nba/okctnt/as/live/nlncp/okctnt_hd_ipad_20171020001418_022311.mp4.m3u8?nltid=nba&nltdt=6&uid=3360974|User-Agent=iTunes-AppleTV/4.1
07:47:56 T:7648 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
07:47:56 T:11552  NOTICE: Creating InputStream
07:47:57 T:11552  NOTICE: Creating Demuxer
07:47:57 T:11552   ERROR: CCurlFile::GetCookies - invalid cookie: '.neulion.com	TRUE	/nlds/nba/lal/as/live/	FALSE	0	N	'
07:47:58 T:11552   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
07:47:58 T:11552  NOTICE: CDVDPlayer::OnExit()
07:47:58 T:7648   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nba/?game_state=2&name=Camera+19%3A+TNT&camera_number=19&url=&start_time=1508458458000&video_id=0021700015&video_type=archive&mode=playgame&duration=8591000]
07:47:58 T:7648  NOTICE: CDVDPlayer::CloseFile()

The game nuggets vs jazz doesn't start from this source :

19:02:15.016 T:9376  NOTICE: VideoPlayer: Opening: https://neunlds316.akamaized.net/nlds/nba/den/as/live/nlncp/den_hd_ipad_20171019010008_022329.mp4.m3u8?h=2798d921c6b53e1a5ec537803cfa6efd.1508429041534&hdnea=exp=1508429101~acl=/*~hmac=EA08A51BD86062D64CC0B673AD90D6F26C7A2252EBDD22EEA952CDF253C73816&nltid=nba&nltdt=6&uid=3360974|User-Agent=iTunes-AppleTV/4.1
19:02:15.016 T:9376 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:02:15.026 T:9256  NOTICE: Creating InputStream
19:02:15.254 T:9256  NOTICE: Creating Demuxer
19:02:21.636 T:9256   ERROR: CVideoPlayer::OpenDemuxStream - Error creating demuxer
19:02:21.636 T:9256  NOTICE: CVideoPlayer::OnExit()

But i try to play it this morning and it start but now the source is :

09:49:50.210 T:11996  NOTICE: VideoPlayer: Opening: https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/18/nlncp/21700010/2_21700010_den_uta_2017_b_whole_1_6000_ipad.mp4.m3u8?h=1bf45981b62907e1875b1c793a27d0ec.1508482297167&hdnea=exp=1508482357~acl=/*~hmac=EF55008F41A37038D9BB5EDE39E44F0FD126205C0C1C542D7DB41AEE1B3CAFBA&nltid=nba&nltdt=6&uid=3360974|User-Agent=iTunes-AppleTV/4.1
09:49:50.210 T:11996 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
09:49:50.244 T:2532  NOTICE: Creating InputStream
09:49:50.676 T:2532  NOTICE: Creating Demuxer
09:49:53.829 T:2532  NOTICE: Opening stream: 0 source: 256
09:49:53.829 T:2532  NOTICE: Creating video codec with codec id: 28
09:49:53.829 T:2532  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 

I'm from Bulgaria and my timezone is 7 hours after USA if this means anything

This is the difference between start one archive game witch is finished one day ago :

14:01:32 T:7648  NOTICE: DVDPlayer: Opening: https://neunlds214.akamaized.net/nlds/nba/lal/as/live/nlncp/lal_hd_ipad_20171020024446_022038.mp4.m3u8?h=a1e2706a6cfcde0bf65097eee1332efd.1508497290426&hdnea=exp=1508497350~acl=/*~hmac=1B60AEC155F5758D964C994642526DB61DC48B8E968FAD6611729DEEAB085416&nltid=nba&nltdt=6&uid=3360974|User-Agent=iTunes-AppleTV/4.1
14:01:32 T:7648 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:01:32 T:15256  NOTICE: Creating InputStream
14:01:32 T:15256  NOTICE: Creating Demuxer
14:01:32 T:15256   ERROR: CCurlFile::GetCookies - invalid cookie: '.neulion.com	TRUE	/nlds/nba/lal/as/live/	FALSE	0	N	'
14:01:33 T:15256   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
14:01:33 T:15256  NOTICE: CDVDPlayer::OnExit()
14:01:33 T:7648   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nba/?game_state=2&name=Full+game&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000]
14:01:33 T:7648  NOTICE: CDVDPlayer::CloseFile()
14:01:33 T:7648  NOTICE: DVDPlayer: waiting for threads to exit
14:01:33 T:7648  NOTICE: DVDPlayer: finished waiting
14:01:33 T:7648  NOTICE: CDVDPlayer::CloseFile()
14:01:33 T:7648  NOTICE: DVDPlayer: waiting for threads to exit
14:01:33 T:7648  NOTICE: DVDPlayer: finished waiting
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Full+game&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Full+game&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&mode=playgame&url=&video_id=0021700016&video_type=condensed&name=Condensed+game
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&mode=playgame&url=&video_id=0021700016&video_type=condensed&name=Condensed+game
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Camera+27%3A+Spanish+%28TNT%29&camera_number=27&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Camera+27%3A+Spanish+%28TNT%29&camera_number=27&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Camera+24%3A+Mandarin+%28Tencent%29&camera_number=24&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Camera+24%3A+Mandarin+%28Tencent%29&camera_number=24&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Camera+19%3A+TNT&camera_number=19&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Camera+19%3A+TNT&camera_number=19&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Camera+15%3A+Audio+Away+SAP&camera_number=15&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Camera+15%3A+Audio+Away+SAP&camera_number=15&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Camera+14%3A+Audio+Home+SAP&camera_number=14&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Camera+14%3A+Audio+Home+SAP&camera_number=14&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=2&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=2&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508467486000&video_id=0021700016&video_type=archive&mode=playgame&duration=8438000
14:01:33 T:9736   ERROR: EXCEPTION: XBMC is not playing any file
14:01:39 T:14420   ERROR: Previous line repeats 6 times.
14:01:39 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+home+feed&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000&video_ishomefeed=1
14:01:39 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+home+feed&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000&video_ishomefeed=1
14:01:39 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+14%3A+Audio+Home+SAP&camera_number=14&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+14%3A+Audio+Home+SAP&camera_number=14&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&mode=playgame&url=&video_id=0021700005&video_type=condensed&name=Condensed+game
14:01:39 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&mode=playgame&url=&video_id=0021700005&video_type=condensed&name=Condensed+game
14:01:39 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+15%3A+Audio+Away+SAP&camera_number=15&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+15%3A+Audio+Away+SAP&camera_number=15&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000
14:01:39 T:14420 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+away+feed&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000&video_ishomefeed=0
14:01:39 T:14420   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+away+feed&url=&start_time=1508367621000&video_id=0021700005&video_type=archive&mode=playgame&duration=9139000&video_ishomefeed=0
14:01:40 T:9736   ERROR: EXCEPTION: XBMC is not playing any file
14:01:46 T:7648   ERROR: Previous line repeats 5 times.
14:01:46 T:7648  NOTICE: DVDPlayer: Opening: https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/18/nlncp/21700005/2_21700005_mia_orl_2017_b_whole_1_6000_ipad.mp4.m3u8?h=3e0b73013fa780ff00a093564dfef134.1508497301609&hdnea=exp=1508497361~acl=/*~hmac=8C45FC318A0628DA3B0A49BAF3392B209AA13F032E839CE9DC3ECF4BA197BAAD&nltid=nba&nltdt=6&uid=3360974|User-Agent=iTunes-AppleTV/4.1
14:01:46 T:7648 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:01:46 T:13272  NOTICE: Creating InputStream
14:01:46 T:13272  NOTICE: Creating Demuxer
14:01:46 T:13272   ERROR: CCurlFile::GetCookies - invalid cookie: '.neulion.com	TRUE	/nlds/nba/lal/as/live/	FALSE	0	N	'
14:01:48 T:13272  NOTICE: Opening stream: 0 source: 256
14:01:48 T:13272  NOTICE: Creating video codec with codec id: 28
14:01:48 T:13272  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
14:01:48 T:13272  NOTICE: Creating video thread
14:01:48 T:13272  NOTICE: Opening stream: 1 source: 256
14:01:48 T:13272  NOTICE: Finding audio codec for: 86018
14:01:48 T:6292  NOTICE: running thread: video_thread
14:01:48 T:13272  NOTICE: Creating audio thread
14:01:48 T:8748  NOTICE: running thread: CDVDPlayerAudio::Process()
14:01:48 T:6292  NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1280x720)
14:01:48 T:8748  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
14:01:48 T:6292  NOTICE:  fps: 59.940060, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
14:01:48 T:6292  NOTICE: Display resolution DESKTOP : 1280x1024@ 60.00 - Full Screen (16)
14:01:48 T:6292  NOTICE: D3D: rendering method forced to DXVA processor
14:01:48 T:6292  NOTICE: DXVA::CProcessorHD::InitProcessor - Supported deinterlace methods: Blend:yes, Bob:yes, Adaptive:yes, MoComp:yes.
14:01:48 T:7648 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
14:01:48 T:8748  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 23

My own research:

v1.0:
archived games from 2017-10-20 and older do work. Sometimes I have to start the stream a second time, because the first try does not work (directly at the beginning). Don't know why.
Archived games from 2017-10-21 (last night) do not work atm (11.30am german time)
Live games not tested

v1.0.1:
No archived game does work. Highlights and Videos (Shaqtin) do work.
Live games not tested

No log files recorded yet. If you need one max, let me know.

JD

@furkyto and @everyone please surround logs with triple backticks (```) to post them: https://help.github.com/articles/creating-and-highlighting-code-blocks/

Added @amila suggestion here: 1677571

@maxgalbu Thank you man! It works now after your last commit :) love your work... wonder if there's any account where we can donate something as a thank you for your work?

If I can ask one more question: when I try to download a match, I try copying the kodi link and then downloading it through ffmpeg, and it works perfectly on my local computer, but what I want to do is download the match in my vps(linux, ubuntu 16.04), and there the link does NOT work, while I get this message:
https://i.imgur.com/6Zveobh.png
Do you have any idea what am I doing wrong? If I download those matches on my vps, I can also play them with Plex, so it'd be a great help. Used it throughout the whole of last season and it always worked perfectly.

Apologies for going off topic, and thanks again :D

Are we winning? Where can I get the latest update?

I have my life again!!!!
I'm watching timberwolves thunder in my kodi!!!
Thanks to all and of course to @asturner85 for the link and of course to @maxgalbu for your work!

sorry it isnt working. I tested the last zip and i get the message, stream cannot played etc etc.
Condensed Game is working. Archived games not, live i will check. My addon is running under LibreElec on a Android Box. Is there anything what i can do for solving ??

Here is a slice of kodi.log file (kodi 16.0 on qnap nas) when loading the latest release provided by besarbb.
I still have the same message after trying to open a stream. (failed to get a video url. Are you logging in?"
PS: I subscribed to india NLP (cheaper than my country), so I use a VPN to connect...

>15:50:18` T:139805052622592   ERROR: ##### NBA League Pass: Highlight url not found. Error: HTTP Error 400: Bad Request - body: <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>
> 15:50:18 T:139805052622592 WARNING: Attempt to use invalid handle 4
> 15:50:18 T:139806478690048 WARNING: **CreateLoader - unsupported protocol(plugin**) in plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+home+feed&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000&video_ishomefeed=1
> 15:50:18 T:139806478690048   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+home+feed&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000&video_ishomefeed=1
> 15:50:18 T:139806478690048 WARNING: **CreateLoader - unsupported protocol(plugin)** in plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+away+feed&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000&video_ishomefeed=0
> 15:50:18 T:139806478690048   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+away+feed&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000&video_ishomefeed=0
> 15:50:18 T:139806478690048 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806478690048   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+12%3A+Audio+Home&camera_number=12&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806478690048 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+14%3A+Audio+Home+SAP&camera_number=14&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806478690048   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+14%3A+Audio+Home+SAP&camera_number=14&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806478690048 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806478690048   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+16%3A+Mobile+View&camera_number=16&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806453511936 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+17%3A+Spanish+%28Spectrum%29&camera_number=17&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806453511936   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+17%3A+Spanish+%28Spectrum%29&camera_number=17&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806453511936 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&name=Camera+29%3A+Portuguese+%28SporTV%29&camera_number=29&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806453511936   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&name=Camera+29%3A+Portuguese+%28SporTV%29&camera_number=29&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000
> 15:50:18 T:139806453511936 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.nba/?game_state=3&mode=playgame&url=&video_id=0021700040&video_type=condensed&name=Condensed+game
> 15:50:18 T:139806453511936   ERROR: InputStream: Error opening, plugin://plugin.video.nba/?game_state=3&mode=playgame&url=&video_id=0021700040&video_type=condensed&name=Condensed+game
> 15:50:18 T:139805866317568   ERROR: EXCEPTION: XBMC is not playing any file
> 15:50:27 T:139807610755072   ERROR: Previous line repeats 8 times.
> 15:50:27 T:139807610755072  NOTICE: DVDPlayer: Opening:
> 15:50:27 T:139807610755072 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
> 15:50:27 T:139805052622592  NOTICE: Creating InputStream
> 15:50:27 T:139805052622592   ERROR: Error on dvdnav_open
> 15:50:27 T:139805052622592   ERROR: CDVDPlayer::OpenInputStream - error opening []
> 15:50:27 T:139805052622592  NOTICE: CDVDPlayer::OnExit()
> 15:50:27 T:139807610755072   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nba/?game_state=3&name=Full+game%2C+home+feed&url=&start_time=1508722227000&video_id=0021700040&video_type=archive&mode=playgame&duration=8786000&video_ishomefeed=1]
> 15:50:27 T:139807610755072  NOTICE: CDVDPlayer::CloseFile()
> 15:50:27 T:139807610755072  NOTICE: DVDPlayer: waiting for threads to exit
> 15:50:27 T:139807610755072  NOTICE: DVDPlayer: finished waiting
> 15:50:27 T:139807610755072  NOTICE: CDVDPlayer::CloseFile()
> 15:50:27 T:139807610755072  NOTICE: DVDPlayer: waiting for threads to exit
> 15:50:27 T:139807610755072  NOTICE: DVDPlayer: finished waiting
> 15:50:27 T:139805866317568   ERROR: EXCEPTION: XBMC is not playing any `file

Yeah, I got the exact same errors as the log before. If you turn on all of the logging, ffmpeg and all, you will see that ffmpeg starts to try and play it, but then gets an 403 forbidden when downloading the encryption key files.

Are you guys talking about live games or archived games?

Thanks @magnusjjj for the feedback. It's clear now.
@jaydee73: I didn't try yet to stream a live game, I've discovered this issue on archived games.

The title says that its about both, so.. uhm. Both :P

Thx maxgalbu ! Everything works now except NBA TV live

Hi team v1.0.0 allows replay of archive games but no live - saw zip file in link above - could someone provide a link on how to load as I’ve been loading off USB drive into kodi but still not working - love your work !! Thx DJ

@maxgalbu thanks so much for the fix.
@besarbb thanks for posting the link to the zip file. I was able to install the using the zip file (on a usb) on my firetv & the NBA Intl League pass works (I subscribed thru' mexico & use VPN on my firetv). If you don't use VPN, the Intl league pass (for mexico) does not work. It is the same story with India Intl NBA league pass. Mexico is about $80 for full subscription & india is only $16. But India VPN will be very slow... so I chose Mexico.

Hi there, do i something wrong?? I installed the latest nightly but nothing works.... No archive , live i did not testet yet, but it is always the same, i startet the game, homeview, 2 -3 Seconds it loads, than ...the media cannot played..... I bought the leage pass from canada, wanna watch in Germany.
I use no VPN Stuff.
So i tried it on my LibreElec Box, it isnt working.
On my Laptop with the WindowsKodi, it works. Now i am confused.

i tried another game and now mmmmhhhh now it isnt working anymore.

Here is a log from my LibreElec Box:
https://drive.google.com/file/d/0B695Mc7Ci8M-RUtIbjNaUnBhUm8/view?usp=sharing

If there is anything what i can do for help, just give me orders...

I think I have managed to fix it locally, in another piece of code, non-xmbc. Issue seems to be that the kodi plugin just grabs the first cookie it finds, and dumps all the rest of the cookies, in a line such as this:

cookies = response.info().getheader('Set-Cookie').partition(';')[0]

This has worked before because the authorization cookie was the only thing checked, and that just happened to be the first cookie in the list sent to the client. That is no longer the case, and in any case, the cookie is not sent to the player to use when downloading the encryption key if I read things correctly. Someone else shed light on this?

Changed video quality from Auto to 6000 and now it works

@mkorganashvili
@magnusjjj

Can you explain me, what and where i have to make changes in the code to get it to work on my libreElec Box!?!? please!!

Can't. At least not the way you think. I might have a stab at editing the kodi plugin, but I am sick.
It needs to grab more of the cookies.

@mkorganashvili That's because the lower bandwidths don't have an encryption key attached. The higher bandwidths do, and they fail to download.

Hmm, sorry for the spam, but it seems I can't fix this in kodi. If anyone wants to poke me regarding the changes I made in my unrelated code to make it compatible, and take a stab at implementing me, I am at magnusjjj@gmail.com

@elschmidtorado

In the plugin settings, just change the video quality. Set any but 'Auto'

Update guys - switching from auto seems to work for archive games - will test on live games and update - thanks so much for your time and effort- DJ

Same here. Changed video to 6000 and now it works with archived games. Thank you everybody

any word on livegames? I can't get them to play today.

Yep. Can confirm here. Tried everything to make it work. Upgraded kodi and the add-on nothing worked until I changed the video quality from auto to a manual setting. Now it's perfect. Would be nice to get a fix for this. I might have a look into it if I get some time.

Hi everyone! Shouldn’t removing the global setting and choosing the quality upon opening each video among offered be the right approach? I mean, qualities will definitely change/improve in the future so the easiest way would be to pick the quality “per game/video” (future-proof also).

Live and archive games works if you select anything but "auto" as quality. Apparently it fails opening a key when opening the stream with 240 as bitrate:

23:09:19.766 T:123145504100352   DEBUG: CurlFile::Open(0x70000c0708f0) https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_ipad.mp4.m3u8?h=b7b968e33e96c42b02e792718ba5ede2.1509314959170&hdnea=exp=1509315019~acl=/*~hmac=59B384B961030A718A01B31B9975EBE61338B2FD2147A5A79B0F9F6BFF327D37&nltid=nba&nltdt=6&uid=2312934
23:09:19.979 T:123145504100352  NOTICE: Creating Demuxer
23:09:19.979 T:123145504100352   DEBUG: CDVDDemuxFFmpeg::GetFFMpegOptionsFromInput() adding ffmpeg option 'user-agent: iTunes-AppleTV/4.1'
23:09:20.114 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_800_ipad.mp4.m3u8' for reading
23:09:20.266 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_4500_ipad.mp4.m3u8' for reading
23:09:20.266 T:140736236970944   DEBUG: ------ Window Init (DialogBusy.xml) ------
23:09:20.408 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_3000_ipad.mp4.m3u8' for reading
23:09:20.564 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_1600_ipad.mp4.m3u8' for reading
23:09:20.742 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_400_ipad.mp4.m3u8' for reading
23:09:20.895 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_240_ipad.mp4.m3u8' for reading
23:09:21.065 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_150_ipad.mp4.m3u8' for reading
23:09:21.259 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlsk3.neulion.com/nlsk3/hls/securekey?id=120&url=/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_800.mp4/19700101000000.m3u8.key' for reading
23:09:21.875 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_800_000000.ts' for reading
23:09:22.632 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlsk3.neulion.com/nlsk3/hls/securekey?id=120&url=/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_4500.mp4/19700101000000.m3u8.key' for reading
23:09:23.397 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_4500_000000.ts' for reading
23:09:25.312 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlsk3.neulion.com/nlsk3/hls/securekey?id=120&url=/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_3000.mp4/19700101000000.m3u8.key' for reading
23:09:25.916 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_3000_000000.ts' for reading
23:09:27.744 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlsk3.neulion.com/nlsk3/hls/securekey?id=120&url=/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_1600.mp4/19700101000000.m3u8.key' for reading
23:09:28.395 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_1600_000000.ts' for reading
23:09:29.761 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlsk3.neulion.com/nlsk3/hls/securekey?id=120&url=/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_400.mp4/19700101000000.m3u8.key' for reading
23:09:30.440 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_400_000000.ts' for reading
23:09:31.162 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'https://nlsk3.neulion.com/nlsk3/hls/securekey?id=120&url=/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_240.mp4/19700101000000.m3u8.key' for reading
23:09:32.440 T:123145504100352   DEBUG: ffmpeg[70000C071000]: [https] HTTP error 403 Forbidden
23:09:32.441 T:123145504100352   ERROR: ffmpeg[70000C071000]: Unable to open key file https://nlsk3.neulion.com/nlsk3/hls/securekey?id=120&url=/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_240.mp4/19700101000000.m3u8.key
23:09:32.441 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_240_000000.ts' for reading
23:09:33.006 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_240_000010.ts' for reading
23:09:33.788 T:123145504100352    INFO: ffmpeg[70000C071000]: [hls,applehttp] Opening 'crypto+https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_240_000020.ts' for reading
23:09:34.291 T:123145504100352   ERROR: ffmpeg[70000C071000]: [hls,applehttp] Error when loading first segment 'https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_240_000000.ts'
23:09:34.308 T:123145504100352   DEBUG: Error, could not open file https://nlds120.cdnllnwnl.neulion.com/nlds_vod/nba3/vod/2017/10/28/nlncp/21700084/2_21700084_det_lac_2017_b_whole_1_ipad.mp4.m3u8?h=b7b968e33e96c42b02e792718ba5ede2.1509314959170&hdnea=exp=1509315019~acl=/*~hmac=59B384B961030A718A01B31B9975EBE61338B2FD2147A5A79B0F9F6BFF327D37&nltid=nba&nltdt=6&uid=2312934

Instead of ignoring that error and let the stream play with the other bitrates, it fails altogether.

Live works? Really? I was trying to watch live with 1.0.1 and 6000@60 quality only a couple of hours ago and it didn't work.

edit: ok it seems live does work after all, after downloading the absolute latest version released only half an hour ago and clearing the relevant folders and userdata from the older Kodi installation.

OK so the latest version may have worked in PC's Kodi 17.3, but it fails to load in Android TV's Kodi 17.5 with error:

"Error Contents: dlopen failed: library "./_imaging.so" not found"

It's just utils.py trying to source the image library so most likely a local installation issue with PIL on Android ot whatever, checking...

This makes all kinds of sense actually. Like I commented earlier, the reason behind kodi getting 403's has to do with ffmpeg not storing cookies from the bandwidth m3u8's.
It might do it when you reference them directly? Like, only storing cookies from the absolute first request ffmpeg makes?

Yep. Just looked at the ffmpeg source:

"///< holds HTTP cookie values set in either the initial response or as an AVOption to the HTTP protocol context"

So, when picking a bandwidth manually, it doesn't load the m3u8 with a list of all the bandwidths and sub-m3u8's. This means that the first request, to the sub-m3u8 directly, makes it store the cookies. But if you try to play the m3u8 giving the list of bandwidths, it only takes the cookies in the response of that request, and ignores any cookies supplied by the sub-m3u8

I've been trying for hours to get live games to work, to no avail. Could someone describe what exactly one has to do? Only the archived games work for me.

@magnusjjj I tried to set all cookies but no luck. Do you know which cookie is missed?

@mkorganashvili: Won't work regardless, its an ffmpeg-issue, looks like :/. Unless someone is willing to spend hours writing some sort of crazy VFS or something, the only way is to patch FFMPEG.

@magnusjjj It would be great if we could check with apple tv

OK so the latest version may have worked in PC's Kodi 17.3, but it fails to load in Android TV's Kodi 17.5 with error:

"Error Contents: dlopen failed: library "./_imaging.so" not found"

It's just utils.py trying to source the image library so most likely a local installation issue with PIL on Android ot whatever, checking...

Got tired of trying to fix this and installed SPMC instead, which is essentially a much older Android Kodi version and it plays NBA archived games perfectly fine. Need to check the live ones now, I assume they'll work equally well.

So this is not a place where people help you out with your issues? I still haven't gotten live games to work, but judging by the comments, it's unclear whether live games work for all or not, and if so, how to get them to work.

People keep saying they'll "see", or "report back" or "assume", and then they don't.

If there is a better place to discuss these issues, let me know.

Didn't report because I'm having several issues with my Kodi/SPMC installations after I migrated from Raspberry Pi2 to Xiaomi Mi Box. So for me these are currently not ideal testing platforms for Max's addon.

However I can confirm that the latest version of the addon DOES work perfectly fine on Windows/Linux Kodi 17.3 or 17.5 for BOTH live and archived games and the only change required is to set the quality to 6000Kbps (or any other specific value) instead of Auto.

Until all these issues are resolved, I have resorted to watching live games using the official site chromecasting the 720HD stream to TV via the Xiaomi box, but even then I'm sometimes having stuttering so the only really stable solution for me is Xbox One's official NBA app.

As for the place to get some help, try also https://forum.kodi.tv/showthread.php?tid=124716&page=55

Thanks for the feedback! Since I'm currently restricted to running Kodi 16.1 on Windows, if anyone has that combo working with live games, please let me know! Archived games have always worked fine for me, and my setting has never been at "Auto" (that's the first thing I always change before using it).

@beachdrifter
Hey mate, the add-on is working fine now. I am using it in Windows 10, Kodi v.17.5, and Android(Galaxy S8 phone, Kodi v.17.5). Have you tried removing the add-on first and then re-installing the latest "Master" version?

@besarbb
I tried that. Then the addon doesn't work at all, meaning it doesn't even get the necessary urls for any games (live or archive): "Error:addinfourl instance has no attribute 'seek'"

I guess I might have to wait for a new system before I can watch live games again...

it doesn't even get the necessary urls for any games (live or archive): "Error:addinfourl instance has no attribute 'seek'"

Getting the same error in Android SPMC which is running Kodi 16.7 or similar. Most likely some incompatibility between that old Kodi version and the latest version of NBA's addon. But the latter works fine with Kodi 17.3 or 17.5.

Downloaded the Master zip file and live games work just fine running kodi on my mac, but when I try Installing the same zip file on my android box the addon wont even launch.

@phroeix out of pure interest, can you check your logs about the error you're getting? Could it be the same imaging.so library not found? Which would make it a generic thing for Android, Kodi and PIL as I am having this issue too.

@nzeppos just checked the log and indeed its the imaging.so library error, any way arround it?

Hi guys. Is anyone have problem with running archive games because "Error. failed to star commoncache" ? I tried to change settings in commoncache plugin but it's not working. Seems that there is a problem with this plugin because i cannot run it and it causes NBA plugin to crash. I searched all the internet to fix this, tried couple of methods (setting change, reinstall, changing ports etc) Addon worked (NBA LP) couple of days ago and suddenly stopped. And I dont know why... :( Any help?

here is my log:
kodi.log

@phroeix
Kodi was just upgraded to 17.6 and the PIL error went away. Now the addon starts just fine in Android TV but some things don't work or are very slow (ie. it takes a minute to populate last week's archived games list, condensed games take forever to start or eventually time out etc).

However the full archived games work fine and I'd assume the same thing applies to live ones as well.

edit: confirming that live games work OK

@nzeppos You may experience slow performance due to first generation of combined thumbnails. It should be much faster once they are generated. Please confirm. Additionally, there is one more pending Pull request that will make things even faster once when merged.

@ivankokan
Yes, it's exactly how you described it. It's only the first time that it takes a while to load. Afterwards everything loads almost instantaneously. Good stuff.

Still no live games for me. International league pass. Kodi 17.6 add on version 1.01. tried on Android TV and fire TV. Any help would be much appreciated

Same for me, android tv and raspberry pi - both on Kodi 17.6 with version 1.01. Replays are fine. I don't know whether it is any assistance to the investigation however it seems to have become a problem ever since the Start from Beginning/Go Live function came in. I downloaded NBA app onto Android TV and it plays live from within that app - there is no Start from Beginning/Go Live within the NBA App. Many thanks for all your great work - this is a curly issue cheers CJ

In order to properly analyze your issue, you need to provide log file. Make sure you use the latest version.

Thanks @maxgalbu, it is working now with your latest commit.

Is there any chance this will be ported into a fix or do we need to attempt this manually? Many thanks.

? @maxgalbu's latest commit is indeed available in latest release: https://github.com/maxgalbu/xbmc.plugin.video.nba/releases

I have the same bug, i am from Russia and can't watch any games at all, neither Live nor Archive, got the same error.
Kodi 17.6 on Raspberry PI.

@kolnogorov Kodi 18 is mandatory.