add-ons / plugin.video.vtm.go

Kodi add-on to watch video-on-demand content and live streams from VTM GO.
https://github.com/add-ons/plugin.video.vtm.go/wiki
GNU General Public License v3.0
73 stars 24 forks source link

VTMGO does not start on kodi onpc #342

Closed cometoluc closed 1 year ago

cometoluc commented 1 year ago

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

Hebben hier anderen ook problemen mee aub?

pl0ng commented 1 year ago

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

kimme1024 commented 1 year ago

same here (RPi - OSMC)

nagten commented 1 year ago

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 commented 1 year ago

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

keiem commented 1 year ago

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<--

and the streamz error:

2023-01-02 20:29:58.579 T:704 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

abanink commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

pckrullenbol commented 1 year ago

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 commented 1 year ago

See https://github.com/add-ons/plugin.video.vtm.go/pull/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 commented 1 year ago

works for me on Kodi 19.5

keiem commented 1 year ago

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

pckrullenbol commented 1 year ago

Works for me (kodi 19.5 on windows) !

pckrullenbol commented 1 year ago

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

cometoluc commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

and i cannot remove anithing in my menu

frankdpGH commented 1 year ago

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

david63236 commented 1 year ago

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

cometoluc commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

mediaminister commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

I've merged https://github.com/add-ons/plugin.video.vtm.go/pull/343 and will do a release soon.

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

cometoluc commented 1 year ago

@@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