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

VTMGO does not start on kodi onpc #342

Closed
cometoluc opened this issue Jan 2, 2023 · 34 comments
Closed

VTMGO does not start on kodi onpc #342

cometoluc opened this issue Jan 2, 2023 · 34 comments
Labels
bug Something isn't working

Comments

@cometoluc
Copy link

VTMGO via kodi 19.3 op windows7.32bit werkt ineens niet meer vanaf vandaag.

Hebben hier anderen ook problemen mee aub?

@pl0ng
Copy link

pl0ng commented Jan 2, 2023

Can confirm: addon stopped working on kodi (linux, vero4k)
426 client error: upgrade required for url: api.dpgmedia.net/vtmgo/..

@kimme1024
Copy link

kimme1024 commented Jan 2, 2023

same here (RPi - OSMC)

@nagten
Copy link

nagten commented Jan 2, 2023

Can confirm:

First I suspected a token problem thus cleared token cache, but I still received the same error.

Enabling debug option in plugin gives following error in kodi.log file:

EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
 - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.HTTPError'>
Error Contents: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/vtmgo/tokens
Traceback (most recent call last):
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/addon_entry.py", line 19, in <module>
    run(argv)
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/resources/lib/addon.py", line 186, in run
    routing.run(params)
  File "/home/osmc/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
    self._dispatch(self.path)
  File "/home/osmc/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
    view_func(**kwargs)
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/resources/lib/addon.py", line 25, in index
    show_login_menu()
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/resources/lib/addon.py", line 39, in show_login_menu
    Authentication().login()
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/resources/lib/modules/authentication.py", line 49, in login
    check = self._auth.authorize_check()
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/vtmgoauth.py", line 121, in authorize_check
    response = util.http_post('https://lfvp-api.dpgmedia.net/vtmgo/tokens', data={
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/util.py", line 77, in http_post
    return _request('POST', url=url, params=params, form=form, data=data, token=token, profile=profile, headers=headers)
  File "/home/osmc/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/util.py", line 184, in _request
    response.raise_for_status()
  File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/vtmgo/tokens
-->End of Python script error report<--

@mawn144
Copy link

mawn144 commented Jan 2, 2023

Same error over here. Raspberry pi 4 - osmc. And also on my vero device

@keiem
Copy link

keiem commented Jan 2, 2023

Same problem on Libreelec arm64. I have it also with the Streamz addon.

The vtmgo error:

2023-01-02 17:41:31.770 T:723 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.HTTPError'>
Error Contents: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/vtmgo/tokens/refresh
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.vtm.go/addon_entry.py", line 19, in
run(argv)
File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/addon.py", line 186, in run
routing.run(params)
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
self._dispatch(self.path)
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
view_func(**kwargs)
File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/addon.py", line 22, in index
if auth.get_tokens():
File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/vtmgoauth.py", line 145, in get_tokens
response = util.http_post('https://lfvp-api.dpgmedia.net/vtmgo/tokens/refresh', data={
File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/util.py", line 77, in http_post
return _request('POST', url=url, params=params, form=form, data=data, token=token, profile=profile, headers=headers)
File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/util.py", line 184, in _request
response.raise_for_status()
File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/vtmgo/tokens/refresh
-->End of Python script error report<--

and the streamz error:

2023-01-02 20:29:58.579 T:704 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.HTTPError'>
Error Contents: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/streamz/tokens/refresh
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.streamz/addon_entry.py", line 19, in
run(argv)
File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/addon.py", line 140, in run
routing.run(params)
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
self._dispatch(self.path)
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
view_func(**kwargs)
File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/addon.py", line 22, in index
tokens = auth.get_tokens()
File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/streamz/auth.py", line 150, in get_tokens
response = util.http_post('https://lfvp-api.dpgmedia.net/streamz/tokens/refresh', data={
File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/streamz/util.py", line 83, in http_post
return _request('POST', url=url, params=params, form=form, data=data, token=token, profile=profile, headers=headers)
File "/storage/.kodi/addons/plugin.video.streamz/resources/lib/streamz/util.py", line 183, in _request
response.raise_for_status()
File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/streamz/tokens/refresh
-->End of Python script error report<--

@abanink
Copy link

abanink commented Jan 2, 2023

Issue is obviously something changed at the remote side.

426 Client Error: Upgrade Required for url ...
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426

The server does not accept the protocol used by the client but will respond if the client upgrades.
I haven't looked into it, but it could be that the server now wants http/2 only and the current python library "requests" doesn't support it as far as I can tell.

@keiem
Copy link

keiem commented Jan 2, 2023

I tried to reactivate my login, but that doesn't seem to work anymore. Everytime I activate and start the addon, it gives me a new activation code.

@abanink
Copy link

abanink commented Jan 2, 2023

Probably this is like #131
I already replaced the requests lib by the httpx lib to test if using http/2 solves it, but it doesn't.
So my next guess is that the headers need to be updated in the util.py library.
Currently:
SESSION.headers = {
'User-Agent': 'VTMGO/12.12 (be.vmma.vtm.zenderapp; build:16424; Android 24) okhttp/4.9.3',
'x-app-version': '12',
'x-persgroep-mobile-app': 'true',
'x-persgroep-os': 'android',
'x-persgroep-os-version': '24',
}

I guess someone needs to sniff the headers from a current Android app and put them in.

@RobWouters
Copy link

RobWouters commented Jan 2, 2023

These headers seem to work:

SESSION.headers = {
    'User-Agent': 'VTMGO/13.6 (be.vmma.vtm.zenderapp; build:16424; Android 24) okhttp/4.9.3',
    'x-app-version': '13',
    'x-persgroep-mobile-app': 'true',
    'x-persgroep-os': 'android',
    'x-persgroep-os-version': '24',
}

Can be found at the top of .kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/util.py.

@ghen2
Copy link

ghen2 commented Jan 2, 2023

With these headers I get 400 Bad request instead of 426 Upgrade Required, on POST to https://lfvp-api.dpgmedia.net/vtmgo/tokens/refresh. Was this the only change you made?

@cometoluc
Copy link
Author

is there somewhere a new vtmgo.zip file to install if this works?

@pckrullenbol
Copy link

I am also getting with these 'new' headers 400 Bad request errors:
Error Contents: 400 Client Error: Bad Request for url: https://lfvp-api.dpgmedia.net/vtmgo/tokens

@mediaminister
Copy link
Contributor

See #343
I made a test package with a working VTM GO Add-on.
Please report if something doesn't work yet.
Kodi 18 plugin.video.vtm.go-1.3.2.zip
Kodi 19 and 20: plugin.video.vtm.go-1.3.2+matrix.1.zip

@abanink
Copy link

abanink commented Jan 3, 2023

works for me on Kodi 19.5

@keiem
Copy link

keiem commented Jan 3, 2023

Should I make a separate issue for the streamz addon? It gives the same error message.

@pckrullenbol
Copy link

Works for me (kodi 19.5 on windows) !

@pckrullenbol
Copy link

Works for me (kodi 18.x on RPi3) !

@cometoluc
Copy link
Author

cometoluc commented Jan 3, 2023

plugin.video.vtm.go-1.3.2+matrix.1.zip does not work on kodi 19.3 does not work on windows7.32bit pc
it installs but when i go on my pc to the link shown on the screen and i give in the correct numbers it says ok but when i try it out the same happens as before. VTMGO does not start

@cometoluc
Copy link
Author

Now after waiting a few minutes, it works again with one big problem : i can not add movies or wathever to my list, i hear a fouldtone but no error and i cannot see a error, please help

@cometoluc
Copy link
Author

and i cannot remove anithing in my menu

@frankdpGH
Copy link

Thanks ! Working fine on Android Kodi 20 RC2 and windows 10 Kodi 19.4.

@david63236
Copy link

david63236 commented Jan 3, 2023

Windows 11 Kodi 19.3 with plugin.video.vtm.go-1.3.2+matrix.1.zip : working fine after update of Widevine CDM

@cometoluc
Copy link
Author

Has anyone a idee why i cannot add or remove anything in my menu please?
i tried Kodi 19 and 20: [plugin.video.vtm.go-1.3.2+matrix.1.zip to get VTMGO running again but the only issue i have is that i can not add or remove something from or to my menu

@david63236
Copy link

david63236 commented Jan 3, 2023

Windows 11 Kodi 19.3 with plugin.video.go-1.3.2+matrix.1.zip : i confirm, impossible to add or remove items to My Menu.

@david63236
Copy link

Android TV Kodi 19.3 with plugin.video.go-1.3.2+matrix1.zip : not working - 404 Client Error: Not Found for url : https://lfvp-api.....

@cometoluc
Copy link
Author

cometoluc commented Jan 3, 2023

@david63236 : thanks for confirming the menu issue
nowbody reacted to my post

by the way? where can i find that Widevine CDM? And what does it do? or is this only for higher windows please

@peno64
Copy link

peno64 commented Jan 3, 2023

plugin.video.vtm.go-1.3.2+matrix.1.zip works on rpi4 under libreelec kodi19.4

@mediaminister
Copy link
Contributor

Fixed My List:
Kodi 18: plugin.video.vtm.go-1.3.2.zip
Kodi 19 and 20 plugin.video.vtm.go-1.3.2+matrix.1.zip

@david63236
Copy link

@david63236 : thanks for confirming the menu issue nowbody reacted to my post

by the way? where can i find that Widevine CDM? And what does it do? or is this only for higher windows please

Widevine CDM (re)installation can be done from the configuration screen of the "InputStream Helper" addon (program addon)

@david63236
Copy link

tested fixed "My List" plugin.video.vtm.go-1.3.2+matrix.1.zip on Windows 11 Kodi 19.3 : add and remove to My List is now possible

@david63236
Copy link

david63236 commented Jan 4, 2023

tested fixed "My List" plugin.video.vtm.go-1.3.2+matrix.1.zip on Android TV Kodi 19.3

  1. add to My List is possible
  2. items already added to My List still offer the possibility to add to My List (should have the possibility to remove from My List) (same problem for Windows, so I will start a new issue for this)
  3. access to My List is still impossible : 404 Client Error: Not Found for url: https://lfvp-api.dpgmedia.net/VTM_GO/detail/6ba6d1aa-daca- (delete from My List is impossible)
  4. the 404 Client Error occurs on some other items to, for instance "Aanbevelingen - Internationale comedy" gives the error (same error message), but "Aanbevelingen - Vlaamse comedy" works

@david63236
Copy link

david63236 commented Jan 4, 2023

UPDATE: I noticed that the Aanbevelingen menu was different (longer) on Android TV than on Windows,
so I did a cache clean for the vtm.go addon on Android TV and the 404 Client Error seems to be solved.

tested fixed "My List" plugin.video.vtm.go-1.3.2+matrix.1.zip on Android TV Kodi 19.3 : add and remove to My List is now possible

@michaelarnauts michaelarnauts added the bug Something isn't working label Jan 4, 2023
@michaelarnauts
Copy link
Collaborator

I've merged #343 and will do a release soon.

Thanks @mediaminister for the fix, and all others for testing!

@cometoluc
Copy link
Author

cometoluc commented Jan 4, 2023

@@mediaminister!
is the version that you put on today about 12 hours ago

Kodi 19 and 20 [plugin.video.vtm.go-1.3.2+matrix.1.zip a real fully working version where the add/remove menu is solved too please? And thanks for the great work.

i find the version with the same number a bit confusing what the last one is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests