add-ons / plugin.video.streamz

Kodi add-on to watch video-on-demand content from the Streamz service.
https://github.com/add-ons/plugin.video.streamz/wiki
GNU General Public License v3.0
17 stars 4 forks source link

Unable to start addon (multiprofile Streamz login) #37

Closed rottweilerken closed 3 years ago

rottweilerken commented 3 years ago

I just reinstalled Kodi on x86_64 with the latest Libreelec 10 beta. All flemish matrix plugins are working, except Streamz. (1.0.5) I used it before without issue. I gave my login (sure it's correct), but the addon won't start. Only difference compared to before (was using the daily build) is that there are now 2 profiles in Streamz. I tried deleting the second profile on streamz, but doesn't seem to make a difference.. I might suspect there is an issue with the profiles?? This is what i can find in the log:

2021-03-26 16:01:26.041 T:1869 DEBUG <general>: [plugin.video.streamz] [urllib3.connectionpool] https://www.streamz.be:443 "POST /streamz/login-callback HTTP/1.1" 302 0 2021-03-26 16:01:26.115 T:1869 DEBUG <general>: [plugin.video.streamz] [urllib3.connectionpool] https://www.streamz.be:443 "GET /streamz HTTP/1.1" 200 20068 2021-03-26 16:01:26.118 T:1869 DEBUG <general>: [plugin.video.streamz] [resources.lib.streamz.util] Got response (status=200): <!DOCTYPE html> class="no-js layout--profile theme--streamz fjs-no-session-modal"> <meta name="msapplication-config" content="https://www.streamz.be/streamz/static/streamz/static/browserconfig-6d52064c89fa7e5c34feef794648dd42.xml" /> <link rel="preload" href="https://www.streamz.be/streamz/static/general/fonts/gilroy-extrabold-webfont-8aa7244c32d321dbd84890e3d223a80f.woff2" as="font" <link rel="preload" href="https://www.streamz.be/streamz/static/general/fonts/gilroy-regular-webfont-1f780e740bb04a6b6db59ead83ebf5fe.woff2" as="font" <link rel="preload" href="https://www.streamz.be/streamz/static/general/fonts/gilroy-semibold-webfont-afa134c4b170119e4dfc0f2afcd96a6d.woff2" as="font" src: url("https://www.streamz.be/streamz/static/general/fonts/gilroy-regular-webfont-1f780e740bb04a6b6db59ead83ebf5fe.woff2") format('woff2'), url("https://www.streamz.be/streamz/static/general/fonts/gilroy-regular-webfont-d0833272025b61d0b5b3e8a9da4017b5.woff") format('woff'); src: url("https://www.streamz.be/streamz/static/general/fonts/gilroy-semibold-webfont-afa134c4b170119e4dfc0f2afcd96a6d.woff2") format('woff2'), url("https://www.streamz.be/streamz/static/general/fonts/gilroy-semibold-webfont-5d717f1fe2e78013e7b45512d0bd14cc.woff") format('woff'); src: url("https://www.streamz.be/streamz/static/general/fonts/gilroy-extrabold-webfont-8aa7244c32d321dbd84890e3d223a80f.woff2") format('woff2'), url("https://www.streamz.be/streamz/static/general/fonts/gilroy-extrabold-webfont-30f6dc851d0e2ba8d8d1286aedfdffff.woff") format('woff'); <link href="https://www.streamz.be/streamz/static/streamz/css/streamz.min-f14486b726e99ab12cdd97a5d242ca96.css" rel="stylesheet"> <link rel="manifest" href="https://www.streamz.be/streamz/static/streamz/static/manifest-38f3247cf3d059b9701c5d2ecc51acfa.json"> cmpCname: "https:\/\/cmp.streamz.be", <link rel="icon" type="image/png" sizes="228x228" href="https://www.streamz.be/streamz/static/streamz/img/favicon-228x228-20acbcdb48729155f7807a9b66173d02.png"> <link rel="icon" type="image/png" sizes="96x96" href="https://www.streamz.be/streamz/static/streamz/img/favicon-96x96-2b6a3ca2896396b08f87c63696b1d4e8.png"> <link rel="icon" type="image/png" sizes="48x48" href="https://www.streamz.be/streamz/static/streamz/img/favicon-48x48-00e19f5a8f28d1d3f549667f7eafb95b.png"> <link rel="icon" type="image/png" sizes="32x32" href="https://www.streamz.be/streamz/static/streamz/img/favicon-32x32-c78ee7728192b17ff305dab3cd9e0106.png"> <link rel="icon" type="image/png" sizes="16x16" href="https://www.streamz.be/streamz/static/streamz/img/favicon-16x16-18824e89974b8cc2048945ab1d212641.png"> <link rel="apple-touch-icon" href="https://www.streamz.be/streamz/static/streamz/img/apple-touch-icon-120x120-81ecaa37c4013630e6d809143fc42a0e.png"> <link rel="apple-touch-icon" sizes="152x152" href="https://www.streamz.be/streamz/static/streamz/img/apple-touch-icon-152x152-db2430059ba369ca36448a7af17f9fcc.png"> <link rel="apple-touch-icon" sizes="167x167" href="https://www.streamz.be/streamz/static/streamz/img/apple-touch-icon-167x167-5b91bc25749cce66b3096e16f47486b9.png"> <link rel="apple-touch-icon" sizes="180x180" href="https://www.streamz.be/streamz/static/streamz/img/apple-touch-icon-180x180-54bf49e331f329caface9cb6bd3b9d77.png"> <link rel="apple-touch-icon" sizes="192x192" href="https://www.streamz.be/streamz/static/streamz/img/apple-touch-icon-192x192-233a933f84c70c2fd7957237c324302c.png"> <a href="https://www.streamz.be/streamz" class="header__logo" data-gtm="header/logo/link" aria-label="Naar de Streamz homepagina" title="Streamz"></a> <form method="post" action="https://www.streamz.be/streamz/profiel/switch"> <form method="post" action="https://www.streamz.be/streamz/profiel/switch"> <a class="avatars__avatar avatars__avatar--addprofile" href="https://www.streamz.be/streamz/profiel/maak" aria-label="Profiel toevoegen" data-gtm="profile-switcher/profile_create"> 'name': "streamz", 'Android': "https:\/\/play.google.com\/store\/apps\/details?id=be.dpgmedia.streamz" <script src="https://www.streamz.be/streamz/static/streamz/js/main-6f9fe1cd941f6ab490d2ccf4cf45b966.js"></script> 2021-03-26 16:01:26.120 T:1869 DEBUG <general>: [plugin.video.streamz] [resources.lib.streamz.util] Sending GET https://lfvp-api.dpgmedia.net/profiles 2021-03-26 16:01:26.124 T:1869 DEBUG <general>: [plugin.video.streamz] [urllib3.connectionpool] Starting new HTTPS connection (1): lfvp-api.dpgmedia.net:443 2021-03-26 16:01:26.331 T:1869 DEBUG <general>: [plugin.video.streamz] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /profiles?products=STREAMZ%2CSTREAMZ_KIDS HTTP/1.1" 402 0 2021-03-26 16:01:26.333 T:1869 DEBUG <general>: [plugin.video.streamz] [resources.lib.streamz.util] Got response (status=402): File "/storage/.kodi/addons/plugin.video.streamz/addon_entry.py", line 18, in <module> File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/addon.py", line 231, in run File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/addon.py", line 30, in index File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/addon.py", line 45, in select_profile File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/modules/authentication.py", line 81, in select_profile File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/streamz/auth.py", line 123, in get_profiles File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/streamz/util.py", line 42, in http_get File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/streamz/util.py", line 176, in _request 2021-03-26 16:01:26.339 T:1869 DEBUG <general>: onExecutionDone(382, /storage/.kodi/addons/plugin.video.streamz/addon_entry.py) 2021-03-26 16:01:26.543 T:1868 ERROR <general>: GetDirectory - Error getting plugin://plugin.video.streamz/ 2021-03-26 16:01:26.543 T:757 ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.streamz/) failed 2021-03-26 16:01:26.543 T:757 DEBUG <general>: ParentPath = [plugin://plugin.video.streamz/]

michaelarnauts commented 3 years ago

I assume the same change as for VTM GO has to be done.

See https://github.com/add-ons/plugin.video.vtm.go/pull/270

I'l look into it.

michaelarnauts commented 3 years ago

@rottweilerken can you try with this version? This should work for a normal login. I can't test the login with a telenet account.

plugin.video.streamz-1.0.5-android-auth-91947c5.zip (Leia)

plugin.video.streamz-1.0.5+matrix.1-android-auth-91947c5.zip (Matrix)

rottweilerken commented 3 years ago

Hi Michael, works like a charm, and shows the profiles created online. (I only use a native Streamz login, don't have a telenet account anymore) thanks a lot!

michaelarnauts commented 3 years ago

@a1ad Are you still using a Telenet login? Is this still working for you? It might be a good idea to backup your tokens before trying to login, in case it doesn't work anymore.

michaelarnauts commented 3 years ago

@wardwygaerts Or you :)

wardwygaerts commented 3 years ago

@wardwygaerts Or you :)

I didn't used Streamz for a while, but I will test later today (I'm still on Leia, need to upgrade)

a1ad commented 3 years ago

@a1ad Are you still using a Telenet login? Is this still working for you? It might be a good idea to backup your tokens before trying to login, in case it doesn't work anymore.

Its working, but also on leia.

michaelarnauts commented 3 years ago

@a1ad or @wardwygaerts

Could you try again with these zips? The telenet login flow has been simplified and aligned with the normal flow. If possible, remove the .kodi/userdata/addon_data/plugin.video.streamz/tokens/auth-tokens.json (or move it out the way so you have a backup) before trying so it has to do a full login flow.

plugin.video.streamz-1.0.5-android-auth-319adae.zip (Leia) plugin.video.streamz-1.0.5+matrix.1-android-auth-319adae.zip (Matrix)

wardwygaerts commented 3 years ago

The authentication token was ok, but I had to manually add my profile guid in the settings file After installing I had this line in the file <setting id="profile" default="true"></setting> In the GUI I didn't had the possibility to choose a profile (I can't remember how I did this when I installed the add-on for the first time)