arvvoid / plugin.video.hbogoeu

hGO EU, inputstream.adaptive based add-on to access HBO Go content from Kodi
https://arvvoid.github.io/plugin.video.hbogoeu/
GNU General Public License v2.0
126 stars 46 forks source link

Operators that perform login redirection don't work #5

Closed arvvoid closed 4 years ago

arvvoid commented 5 years ago

For a few operators, the login is not performed directly using the hbogo api. Instead, the user is redirected to the operator website the login is performed there, and then the operator login the user on hbogo and redirect back. What exactly happens and how, will have to be figured out and then implemented in the add-on for those operators to work.

Impossible for me to fix and test since I don't have access to one of these operators. If someone using one of the listed above operators want to help fix the issue let me know here.

Bibi40k commented 5 years ago

Hi, i login using Romania: Telekom Romania [REDIRECT LOGIN], how can i help ?

arvvoid commented 5 years ago

Hello, thanks for the help offer. Please post a debug log with the latest version, make sure to try to play a video from the add on (https://kodi.wiki/view/Log_file/Easy). That might be enough to fix it.

If not probably someone with access to one of these operators with programming skills will have to implement it and send a pull request. The other option is, someone with access to one of these operators lands me an account for a couple of days so i can figure out the login and implement it. (please don't post login info publicly) But i will leave this option as last resort, let's start with debug logs.

It might be necessary to implement a different login procedure for each one of these operators, still not sure until i can see more details.

arvvoid commented 5 years ago

(Yesterday, 13:45)kowalmisiek Wrote: Does logging in to Poland / POLSAT already work in this version?

Unfortunately, it still does not work for Poland / POLSAT.

This is my kodi.log https://paste.kodi.tv/toxoqitafi.kodi

arvvoid commented 5 years ago

fireangel 19.02.2019, 19:38 Kodi Forum I did another log file because the previuos log dont show anything , dont know why

log file https://paste.kodi.tv/aqenukinoz

arvvoid commented 5 years ago

Found a useful implementation here: https://github.com/kszaq/plugin.video.hbogopl , need to be tested. This might solve the problem for UPC and Cyfrowy Polsat and give hints to solve the rest as well.

arvvoid commented 5 years ago

Please test version: plugin.video.hbogoeu-2.0.4~beta12.zip and report results with full debug log

arvvoid commented 5 years ago

Confirmed working for * Polonia: Cyfrowy Polsat [REDIRECT LOGIN].

Waiting for feedback for other providers. If no feedback for 2 weeks going to close this. Can be reopened if a problem is found.

arvvoid commented 5 years ago

fireangel Wrote: Hi. I instaled the lates plugin v.2.0.5-beta16 , and after i log in with user and pasw i get " HBO GO EU Error : check the log for more information " Here are the log : deqacawoka (paste)

confirmed still not working for UPC Romania

cyberreality commented 5 years ago

hi there ! i'm using Czech Republic: Skylink [REDIRECT LOGIN] and does not work, see my log: https://paste.kodi.tv/oviyezesiy.kodi thanks

alpa4r commented 5 years ago

Hello, Romania: UPC Romania does not work, how can i help?

arvvoid commented 5 years ago

Hello, not having access to those operators is impossible for me to test and figure out the response given by the operator on successful login and extract the data necessary to complete the login procedure. Found and implemented a working solution for Cyfrowy Polsat hoped it would be the same for the rest, and for the most part, it is, but there are some differences and some things have to be handled differently. I have some ideas, will make a version that provides me a little more detail in debug log and hopefully that will help me solve the problem for the remaining 5 operators.

cyberreality commented 5 years ago

@arvvoid so please check my kodi log above, its for Skylink Czech, one can see it performs redirection to OPERATOR REDIRECT: https://hbogo.skylink.cz/goauthenticate.aspx?client_id=HBO&redirect_uri=...... so maybe easy to fix

arvvoid commented 5 years ago

@cyberreality I checked your log. Read my answer above, it's clear to me where and why it fails but I will have to extend what gets written to the debug log in hope of having enough info to fix it. It's not a complicated fix, the complicated and slow part is getting the info necessary to fix it not having access to those operators. I have to write a slightly different login procedure for each one of those.

@alpa4r @cyberreality When I release the next beta version (probably next week) try again and send a debug log here. Hopefully will have enough info then to fix it.

CURRENT STATUS IS THIS:

All other operators perform login directly on Hbo go and work fine.

@cyberreality Does a local CZ version of the add-on exist where Skylink Czech has already been figured out and implemented and works correctly?

cyberreality commented 5 years ago

@cyberreality Does a local CZ version of the add-on exist where Skylink Czech has already been figured out and implemented and works correctly?

yope, there is a CZ version of HBOGO addon but only direct login works, no redirect at the moment ... latest version attached: plugin.video.hbogocz-0.7.9a.zip

TheImmortalOne commented 5 years ago

For Romania - Telekom Romania, the redirect login is failing: http://paste.kodi.tv/cusiboluza

arvvoid commented 5 years ago

@TheImmortalOne tnx for the log, for now, I'm stuck with this, each of the operators with login redirect requires a slightly different implementation but not having access to those is difficult to test an figure out what has to be done. Ideally a local developer with access to the operator in question has to figure it out an implement it, and send a pull request. Or someone has to provide me with all HTTP/S Requests and Responses sent between the Web browser and the Web server during the login procedure to the operator in question,

TheImmortalOne commented 5 years ago

@arvvoid, if you can link me a basic how-to for providing 'all the https requests and responses' (i suspect somehow from chrome's dev tools?), I can definitely help with that.

ursan2003 commented 5 years ago

@arvvoid if you need the account hbo upc romania to try fix the login please leave a message .Thanks

chozze commented 5 years ago

Let me know if you need access via UPC CZ. please help us :)

arvvoid commented 5 years ago

Atm i don't have the time too experiment with this, but will see what i can do when i have some free time if someone don't fix it before.

arvvoid commented 5 years ago

How to take a browser log from witch this have a chance to be figured out:

Use Chrome or Chromium

1) Logout from Hbo go if you are logged in 2) Go to your official Hbo go website and open Chrome developer tools

Screenshot 2019-11-04 at 09 30 31

3) Open the Network TAB 4) Check the preserve log checkbox, perform the login

Screenshot 2019-11-04 at 09 31 19

5) After you are successfully logged in save the log (right-clik on the list to show the context menu)

Screenshot 2019-11-04 at 09 32 07

6) Your credentials can get exposed this way, change your password, al also you can manually open the log with your text editor and use the text replace function to replace your email and password with XXXX before sending.

7) You can post the log here if you cleaned it from your credentials if you prefer to send privately ask me for my email and i will give it to you, so you can send the log privately.

rsn13 commented 5 years ago
1. Your credentials can get exposed this way, change your password, al also you can manually open the log with your text editor and use the text replace function to replace your email and password with XXXX before sending.

Here's my logs for the UPC Ro with blanked out credentials - no luck for ya snoopers xD hope this helps! :) hbogo.ro.txt

ps. I had 2 failed attempts first because I'm stupid and forgot which email I used

arvvoid commented 5 years ago

@rsn13 hello, thx that will be useful but will take some time. Please also send me a full debug log from Kodi take it while trying to setup the add-on

durip commented 4 years ago

hello, here is my logs for the Skylink Slovakia with blanked out credentials. thank you in advance hbogo.sk.har.txt kodi.txt

xjoska commented 4 years ago

Hi,

please find attached logs for UPC CZ. Thank you.

kodi2.log hbogo.cz.har.txt

ferdabasek commented 4 years ago

Hello, I tried to edit Skylink CZ.

So far it works for me. But you'll have to edit the code.

constants.py.txt handlereu.py.txt

obrazek

obrazek

arvvoid commented 4 years ago

@ferdabasek Hello, tnx for your contribution. Please send a pull request with your changes if you can.

durip commented 4 years ago

@ferdabasek great work! I tried your changes and it works for Skylink Slovakia.

arvvoid commented 4 years ago

@all-contributors please add @ferdabasek for ideas, code

allcontributors[bot] commented 4 years ago

@arvvoid

I've put up a pull request to add @ferdabasek! :tada:

arvvoid commented 4 years ago

@all-contributors please add @durip for userTesting

allcontributors[bot] commented 4 years ago

@arvvoid

I've put up a pull request to add @durip! :tada:

arvvoid commented 4 years ago

Hello Please test when you can @ferdabasek @durip : https://github.com/arvvoid/plugin.video.hbogoeu/archive/Skylink_fix.zip

Use install from zip function in Kodi

First, i need confirmation it works for Skylink CZ and SK on kodi 18

After that, if someone is willing will give instructions on how to test on Kodi 19 Python 3

After that, it can be merged and will be part of the next standard release.

REPORT RESULTS: https://github.com/arvvoid/plugin.video.hbogoeu/pull/78

cyberreality commented 4 years ago

if needed i can test on Kodi19/python3 ... i'd need help to start hbo go on python3, is there paralel build?

On 11/28/2019 1:35 PM, Arv.Void wrote:

Hello Please test when you can @ferdabasek https://github.com/ferdabasek @durip https://github.com/durip : plugin.video.hbogoeu-Skylink_fix.zip https://github.com/arvvoid/plugin.video.hbogoeu/files/3901654/plugin.video.hbogoeu-Skylink_fix.zip

First, i need confirmation it works for Skylink CZ and PL on kodi 18

After that, if someone is willing will give instructions on how to test on Kodi 19 Python 3

After that, it can be merged and will be part of the next standard release.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arvvoid/plugin.video.hbogoeu/issues/5?email_source=notifications&email_token=AHWQBDNFGHASLCATLLCKQ53QV63JFA5CNFSM4GSYIRUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFMPLVQ#issuecomment-559478230, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWQBDMUSGR4SWC7TLRPRU3QV63JFANCNFSM4GSYIRUA.

arvvoid commented 4 years ago

@cyberreality current Kodi master nightly builds can be used but only on MacOS or Linux (not sure about the Adndroid nightly build) that share the system python installation so pycryptodomex can be installed manually using pip. On windows Kodi 19 build pycrytodomex is currently broken so until that's fixed the add-on can't start on Kodi 19 Windows since pycryptodome is a prerequisite.

I suggest install on a test system or VM, Kodi 19 nightlies currently are nowhere near stable and should not be used except for testing.

cyberreality commented 4 years ago

yeah, because of pycrytodomex problem i'm running on kodi 19 from october 11th, lastone with python2 the only reason why runnin gon 19 is deinterlace problem on kodi18, so messy image on dvb-s2 ... so i'm somewhere i nthe middle :)

On 11/28/2019 3:00 PM, Arv.Void wrote:

@cyberreality https://github.com/cyberreality current Kodi master nightly builds can be used but only on MacOS or Linux that share the system python installation so pycryptodomex can be installed manually using pip. On windows Kodi 19 build pycrytodomex is currently broken so until that's fixed the add-on can't start since pycryptodome is a prerequisite.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arvvoid/plugin.video.hbogoeu/issues/5?email_source=notifications&email_token=AHWQBDP6YOI7K2Y7SLXTQJTQV7FHRA5CNFSM4GSYIRUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFMV54A#issuecomment-559505136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWQBDLUZ55HBVPYJHP3JS3QV7FHRANCNFSM4GSYIRUA.

arvvoid commented 4 years ago

Fix for Sylink included in latest pre-release: https://github.com/arvvoid/plugin.video.hbogoeu/releases

arvvoid commented 4 years ago

Blind fix attempt for UPC CZ and SK if someone using UPC CZ from CZ or SK is reading please test and join discussion here: https://github.com/arvvoid/plugin.video.hbogoeu/pull/79

@xjoska @chozze

arvvoid commented 4 years ago

https://github.com/arvvoid/plugin.video.hbogoeu/pull/79 provide a tentative fix for UPC Romania as well testers needed...

@alpa4r @ursan2003 @rsn13

chozze commented 4 years ago

@arvvoid I tried UPC CZ, same login error on Kodi 18

ferdabasek commented 4 years ago

@arvvoid I don't have UPC. UPC has probably different URLs for GET and POST.

UPC_LOGIN.txt

obrazek

ferdabasek commented 4 years ago

You may need to enter the complete URL:

https://service.upc.cz/login/?TAM_OP=login&USERNAME=unauthenticated&ERROR_CODE=0x00000000&URL=%2Fsps%2FCZoauth20AA1%2Foauth20%2Fauthorize%3Fclient_id%3DZwB86MbT0Q14ggCatXG8%26redirect_uri%3Dhttps%253A%252F%252Fczapi.hbogo.eu%252Foauthupc%252Frequest3.aspx%26state%3DRsDqtLa4EetHF7i5jQmT8g%26scope%3Dcountry%253DCZ%25203rdparty%253DHBO%26response_type%3Dcode&REFERER=https%3A%2F%2Fhbogo.cz%2F&OLDSESSION=

arvvoid commented 4 years ago

@ferdabasek not sure what is causing the problem, looking at the logs it should be fine posting simply to https://service.upc.cz/login/pkmslogin.form, should work looking at the browser logs... but can't really experiment not having access to the operator. That complete URL is just to reach the login page and is already called I think.

splichy commented 4 years ago

Hi @arvvoid you had wrong login redirect URL see https://github.com/arvvoid/plugin.video.hbogoeu/pull/84

arvvoid commented 4 years ago

@splichy tnx for your contribution, going to merge your PR

arvvoid commented 4 years ago

@all-contributors please add @splichy for ideas, code

allcontributors[bot] commented 4 years ago

@arvvoid

I've put up a pull request to add @splichy! :tada:

arvvoid commented 4 years ago

Now just need confirmation this work for UPC CZ and SK: https://github.com/arvvoid/plugin.video.hbogoeu/archive/UPC_cz_sk_fix.zip @xjoska @chozze @splichy

Also need confirmation if it works for UPC Romania: https://github.com/arvvoid/plugin.video.hbogoeu/archive/UPC_cz_sk_fix.zip @alpa4r @ursan2003 @rsn13

Waiting on this to merge and push the next stable release

chozze commented 4 years ago

Bravo @arvvoid, I'm happy to confirm it works for UPC CZ!

chozze commented 4 years ago

btw just FYI, that UPC was bought by Vodafone so we can expect to change the login redirect URLs to change in near future once again.