Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed to play games #23

Merged
merged 5 commits into from
Dec 19, 2022
Merged

fixed to play games #23

merged 5 commits into from
Dec 19, 2022

Conversation

mkorganashvili
Copy link
Contributor

@mkorganashvili mkorganashvili commented Dec 10, 2022

So, here are some fixes to play live and archive games.

The site has changed a lot and I tried to fix it with minimal effort, spending more times on digging details of video streaming. So the code is not as pretty as original and misses some minor features, like sorting video options and so on.

The big problem is, that it only works on windows. Seems like issue of widevine and I am working hard to find a solution and make it work

@RHStonks
Copy link

@mkorganashvili cheers. I thought updating this addon won't be possible but it seems like you have done it.

Can't wait to see you update live games.

@mkorganashvili mkorganashvili changed the title fixed to play archive games fixed to play games Dec 17, 2022
@mkorganashvili
Copy link
Contributor Author

Cheers @RHStonks.
The bad part is that it only works on windows but let's see : )

@RHStonks
Copy link

Cheers @RHStonks.

The bad part is that it only works on windows but let's see : )

Great stuff. Glad to see that after a week you also got live content going.

So does that mean it's not working on Android & Android TV when you mentioned Windows only?

@mkorganashvili
Copy link
Contributor Author

So does that mean it's not working on Android & Android TV when you mentioned Windows only?

Well, I tried Linux and iOS, both failed. I am not sure about Android but don't think it is going to work

@HoRsEman3GB
Copy link

HoRsEman3GB commented Dec 18, 2022

Had some luck with Android TV on a quick play last night on both Android TV 9 and Android TV 12.

Some archived games worked but not all oddly.

Strangely no luck on windows

Great progress though :)

Appreciate the hard work

@RHStonks
Copy link

Had some luck with Android TV on a quick play last night on both Android TV 9 and Android TV 12.

Some archived games worked but not all oddly.

Strangely no luck on windows

Great progress though :)

Appreciate the hard work

What about live games on Android TV. Did it work for you?

@chamchenko chamchenko merged commit 2b2c0f5 into chamchenko:dev Dec 19, 2022
@chamchenko
Copy link
Owner

Thanks a lot for the helping hand, here for linux I doubt it will be possible unless the input stream adaptive team will have some miracle bypass solution to the nba intentionally making their stream not work on linux. the issue has been confirmed from some reddit users here. I myself haven't been able to play game on linux, and that's mostly what kept from working on this as I needed to set testing environment on windows or android which I didn't have the time or the nerve to do lately.

@RHStonks
Copy link

@chamchenko can you push an update to the addon with the current changes that @mkorganashvili so I can test it on both Android and Android TV to see if live games are working?

@HoRsEman3GB
Copy link

Had some luck with Android TV on a quick play last night on both Android TV 9 and Android TV 12.
Some archived games worked but not all oddly.
Strangely no luck on windows
Great progress though :)
Appreciate the hard work

What about live games on Android TV. Did it work for you?

No luck on either of the 2 early games. But I was on windows at work though (I'm in New Zealand) will have look at the Lakers game when get home in an hour and a half and report back

@chamchenko
Copy link
Owner

@chamchenko can you push an update to the addon with the current changes that @mkorganashvili so I can test it on both Android and Android TV to see if live games are working?

it's done you can now update from the repository

@RHStonks
Copy link

RHStonks commented Dec 19, 2022

@chamchenko can you push an update to the addon with the current changes that @mkorganashvili so I can test it on both Android and Android TV to see if live games are working?

it's done you can now update from the repository

@chamchenko I've having issues with installing the repo it says: Failed to install addon from zip file due to invalid structure.

EDIT: Seems installing addon zip file works but installing repo zip file doesn't work.

I get this problem when opening the addon: Type Error - Not all arguments converted during string formatting on Android.

@HoRsEman3GB
Copy link

@chamchenko can you push an update to the addon with the current changes that @mkorganashvili so I can test it on both Android and Android TV to see if live games are working?

it's done you can now update from the repository

@chamchenko I've having issues with installing the repo it says: Failed to install addon from zip file due to invalid structure.

EDIT: Seems installing addon zip file works but installing repo zip file doesn't work.

I get this problem when opening the addon: Type Error - Not all arguments converted during string formatting on Android.

On Android TV 10 dongle right now the DEV version is playing Lakers vs Wizards live for me as we speak.

Patch1 and repo version (which appears to be patch1) do not

The playback is slightly sluggish but in sync at highest res.

Oddly still cannot get to work on windows and I did recently update my widevine on that

@RHStonks
Copy link

RHStonks commented Dec 19, 2022

@HoRsEman3GB I'm 100% certain that I downloaded the dev version on my Android tablet.

How do you download it. I'm on the NBA kodi addon page. Do you press code and download zip?

Surely there should be no difference between Android & Android TV so it'a strange that it's working for you but not me.

@HoRsEman3GB
Copy link

Yes that's all I've done.
Can vouch for ex different Android TV devices now. But oddly my phone (Google Pixel 6) doesn't seem to work with any add-ons that require widevine so unable to test on that. I do have a tablet I can dig out and try later.

But the dongles appear to be all go for Live games. I'm just seeing what else works

@RHStonks
Copy link

Yes that's all I've done.

Can vouch for ex different Android TV devices now. But oddly my phone (Google Pixel 6) doesn't seem to work with any add-ons that require widevine so unable to test on that. I do have a tablet I can dig out and try later.

But the dongles appear to be all go for Live games. I'm just seeing what else works

I do have Android TV device on AndroidTV 9 (Mi Box S) so I will give that a go later since you had success with it. Maybe android phones and tablets don't work.

@mkorganashvili
Copy link
Contributor Author

the issue has been confirmed from some reddit users here

well, this is strange, because I tested on Mac and it plays in chrome but does not work in kodi

@mkorganashvili
Copy link
Contributor Author

Strangely no luck on windows

@HoRsEman3GB can you share logs?

'content-type': 'text/plain;charset=UTF-8',
'authorizationtoken': access_token,
'azukiimc': 'IMC7.1.0_AN_D3.0.0_S0',
'deviceprofile': b64encode(('{"osVersion":"10","vendorName":"Microsoft","osName":"HTML5","deviceUUID":"%s"}' % deviceinfos['DEVICEID']).encode('ascii'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line seems pretty Windows-specific. Is it here to "spoof" a browser/OS combination to the API? Or should we rather report the actual OS version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to spoof the API, tried different deviceprofiles but did not work

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkorganashvili Interesting. So you're saying that it only works with the above deviceprofile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean it works with any deviceprofile

@RHStonks
Copy link

Just to let you know that on Android TV I could get archive games going. Quite sluggish like @HoRsEman3GB said, subtitles not showing correctly and not all games work.

Tried to watch Rapters vs 76ers or Jazz vs Cavs live and it doesn't work and pops up a Runtime Error: No Items Found

@HoRsEman3GB
Copy link

Strangely no luck on windows

@HoRsEman3GB can you share logs?

Sorry not in a position to create a log from my work machine (strictly Kodi is a no no in general ;) ) What i can tell you is it says KeyError 'cdns' when selecting any of the the many available game feeds inside of every available game. Live or archived.

The games are working great on Android TV though as discussed which is great at home :)

@RHStonks
Copy link

@HoRsEman3GB I haven't tried watching live games on Android TV since it wasn't working the other day. Could only get archive games going.

Have you had success with all live games so far on Android TV Kodi?

@HoRsEman3GB
Copy link

@HoRsEman3GB I haven't tried watching live games on Android TV since it wasn't working the other day. Could only get archive games going.

Have you had success with all live games so far on Android TV Kodi?

Yeah I have

Watching my Sixers vs Detroit on Kodi 19.4 on a ChromeCast w Google TV (Android 12) as we speak

@nre-ableton
Copy link
Contributor

I tried last night on my Kodi box, which is a raspberry pi 4 running LibreELEC. No luck streaming games, and sometimes I also got KeyErrors while browsing archives. Also, all of the archived games were shown as "LIVE". I'll try to debug this a bit over the holidays if I have time.

@mkorganashvili
Copy link
Contributor Author

I also got KeyErrors

All other errors are easily fixable but we are but yet nothing to do with main problem. Decryptor seems to act differently on Kodi.

P.S. I'm using Libreelec as well and no luck :(

@RHStonks
Copy link

I had archive games going on my Android TV but I thought I may have accidentally installed the no -dev version since @HoRsEman3GB got live games working so I deleted it and reinstall again and now can't watch live games or archive anymore. It pops up with TypeError everytime I open the addon.

@HoRsEman3GB
Copy link

Just a wee note
Live games no longer working on Kodi 20 for me on Android TV. but Archive are...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants