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

Vtm go addon doesn't launch #375

Open
nicspep opened this issue Feb 21, 2024 · 31 comments
Open

Vtm go addon doesn't launch #375

nicspep opened this issue Feb 21, 2024 · 31 comments

Comments

@nicspep
Copy link

nicspep commented Feb 21, 2024

When starting the VTM GO addon it says
"Addon stopt working"

To Reproduce
Steps to reproduce the behavior:
1.
2.
3.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Add debug logs to help troubleshoot the issue. See https://kodi.wiki/view/Log_file/Easy for more info.

System

  • Addon version:
  • Kodi version:
  • Inputstream adaptive version:
  • Operating System (Windows / Mac OS / Android / LibreElec / OSMC / ...):
  • Special Hardware (RPI / Vero4K+ / ...):

Additional context
Add any other context about the problem here.

@badoneti
Copy link

Same here
2024-02-21 20:18:21.175 T:222814 error <general>: GetDirectory - Error getting plugin://plugin.video.vtm.go/catalog/mylist 2024-02-21 20:18:21.190 T:813 error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vtm.go/catalog/mylist) failed 2024-02-21 20:18:22.792 T:846 info <general>: JSONRPC Server: New connection added 2024-02-21 20:18:38.764 T:222824 error <general>: 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/VTM_GO/tokens/refresh Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.vtm.go/addon_entry.py", line 19, in <module> 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/VTM_GO/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 1021, 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/VTM_GO/tokens/refresh -->End of Python script error report<--

@frankdpGH
Copy link

Same here, seems there was another update from the app....

@cometoluc
Copy link

i have the same problem.

ik krijg vtmgo weer niet opgestart. Totaal niet

ik werk op windows 732bit laatste
vtmgo versie 1.4.3++matrix.1
kodi versie 19.3(19.3.0)

@koenleys
Copy link

koenleys commented Feb 22, 2024

in resources/lib/vtmgo/util.py, change line 20 and 21 to
'User-Agent': 'VTM_GO/15.231023 (be.vmma.vtm.zenderapp; build:18041; Android 23) okhttp/4.11.0',
'x-app-version': '15',
That should fix the problem

Sorry about the formatting, not sure how to get it right :)

@cometoluc
Copy link

can someone please make a new addon because is dont understand anything from coding. Pleeeese

@cobragerard
Copy link

Thanks, it is working again!!!

@PeterCloet
Copy link

Same issue here. Will try the patch in the code tonight.
Will anyone be realsing an update of the plugin?

@Nick4-1
Copy link

Nick4-1 commented Feb 23, 2024

can someone please make a new addon because is dont understand anything from coding. Pleeeese

This is really easy to do it yourself.
If someone else has to do it, how are you gonna get it then.

Just use the zipfile with the latest release, open it, navigate to the folder as @koenleys described and edit that file with just a basic text editor as mentioned.
Save it and install it again on your mediaplayer.

Or wait for an official release by @michaelarnauts

@michaelarnauts
Copy link
Collaborator

Same issue here. Will try the patch in the code tonight. Will anyone be realsing an update of the plugin?

If you can make the merge request, I can push the release to Kodi :)

@mrtreg
Copy link
Contributor

mrtreg commented Feb 23, 2024

Same issue here. Will try the patch in the code tonight. Will anyone be realsing an update of the plugin?

If you can make the merge request, I can push the release to Kodi :)

I have a branch ready, but cannot push to this project. Can you give me the right to do so please? Thx! :)

@michaelarnauts
Copy link
Collaborator

Same issue here. Will try the patch in the code tonight. Will anyone be realsing an update of the plugin?

If you can make the merge request, I can push the release to Kodi :)

I have a branch ready, but cannot push to this project. Can you give me the right to do so please? Thx! :)

You need to fork this project and create a new branch there, then you can open a merge request on this project.

mrtreg added a commit to mrtreg/plugin.video.vtm.go that referenced this issue Feb 23, 2024
@lebeno
Copy link

lebeno commented Feb 23, 2024

I tried the fix but the plugin is still not working. Even after clearing the plugin cache via Expert settings, I get error 'NoneType' object is not iterable when browsing anything in the catalog.

2024-02-23 17:32:16.433 T:1984     info <general>: Skipped 36 duplicate messages..
2024-02-23 17:32:16.433 T:1984     info <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.vtmgoauth] JWT is valid
2024-02-23 17:32:16.434 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.434 T:1984     info <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending POST https://lfvp-api.dpgmedia.net/VTM_GO/tokens/refresh: {'lfvpToken': 'eyJhbGciOiJIUzUxMiJ9.....'}
2024-02-23 17:32:16.501 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.501 T:1984     info <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "POST /VTM_GO/tokens/refresh HTTP/1.1" 200 484
2024-02-23 17:32:16.502 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.502 T:1984     info <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"lfvpToken":"eyJhbGciOiJIUzUxMiJ9......","expiresIn":28800,"hashedAccountId":"...","accountId":"...626ea6","userInfo":null}
2024-02-23 17:32:16.502 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.502 T:1984     info <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/profiles
2024-02-23 17:32:16.587 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.587 T:1984     info <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/profiles HTTP/1.1" 200 683
2024-02-23 17:32:16.588 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.588 T:1984     info <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"profiles":[{"id":"c82d80a7-bb3c-4ab3-a3d8-9213390c7fc4","name":"KKS","gender":"UNDEFINED","birthDate":"1973-08-17","mainProfile":true,"kidsProfile":false,"color":{"id":1001,"start":"#64d8e3","end":"#094aa9"}}],"constraints":{"colors":[{"id":1001,"start":"#64d8e3","end":"#094aa9"},{"id":1002,"start":"#4DFF76","end":"#2BA648"},{"id":1003,"start":"#0243FF","end":"#0E00B0"},{"id":1004,"start":"#831CFA","end":"#46098C"},{"id":1005,"start":"#FFB24D","end":"#FFDF42"},{"id":1006,"start":"#FF4DD5","end":"#B830A8"},{"id":1007,"start":"#FFB002","end":"#FD7801"},{"id":1008,"start":"#FF0257","end":"#A40037"}],"mainProfileMinimumAge":13,"maximumAdultProfileCount":2,"maxProfileCount":5}}
2024-02-23 17:32:16.590 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.590 T:1984     info <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/storefronts/main/detail/b2b0b4d7-c08e-4fb9-98d0-f6b0ca839d3e
2024-02-23 17:32:16.682 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.682 T:1984     info <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/storefronts/main/detail/b2b0b4d7-c08e-4fb9-98d0-f6b0ca839d3e HTTP/1.1" 200 6533
2024-02-23 17:32:16.683 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.683 T:1984     info <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"abroad":false,"row":{"id":"b2b0b4d7-c08e-4fb9-98d0-f6b0ca839d3e","metaData":{"provider":"APP","campaignId":null},"title":"Moet je nu zien","rowType":"SWIMLANE_LANDSCAPE","teasers":[{"title":"Blind Gesprongen","target":{"type":"PROGRAM","id":"821fbdf1-4f9d-41b3-962c-f67b626132db","name":"Blind Gesprongen"},"imageUrl":"https://images1.persgroep.net/rcs/8xD7oceJIVcFVSBbPxhghIGEQiY/diocontent/240877014/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","blockedFor":null,"overlayImageUrl":null,"comingSoon":null},{"title":"The Voice van Vlaanderen","target":{"type":"PROGRAM","id":"eabbef99-d3d1-4259-83f1-499dfe1bf092","name":"The Voice van Vlaanderen"},"imageUrl":"https://images3.persgroep.net/rcs/4Sbl7QGEZoWnm1r3TUYVIJf6kyc/diocontent/240596870/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","blockedFor":null,"overlayImageUrl":null,"comingSoon":null},{"title":"The Voice Comeback Stage","target":{"type":"PROGRAM","id":"a2f5126c-8993-4a4f-b585-62b006a5d929","name":"The Voice Comeba
2024-02-23 17:32:16.683 T:1984     info <general>: Skipped 2 duplicate messages..
2024-02-23 17:32:16.683 T:1984    error <general>: [plugin.video.vtm.go] [resources.lib.modules.catalog] 'NoneType' object is not iterable
``

@michaelarnauts
Copy link
Collaborator

I also think more changes are needed. The test also seem to fail on starting live TV.

@cometoluc
Copy link

cometoluc commented Feb 23, 2024 via email

@Nick4-1
Copy link

Nick4-1 commented Feb 23, 2024

I also think more changes are needed. The test also seem to fail on starting live TV.

Hi @michaelarnauts, FYI over here everything works like before (live, on-demand) by changing only those 2 entries with the user agent. (LibreELEC 11.0.6 on RPi4)

@CoderPupil
Copy link

Working fine again on LibreELEC Generic after changing "util.py", but only after doing the update from LibreELEC 11.0.5 to 11.0.6.

@coreflake1
Copy link

Changing "util.py" worked for me as well on LibreELEC 11.0.6, raspi 4
Both livestreams and VOD are working again.

@michaelarnauts
Copy link
Collaborator

Thanks for verifying. The streamz addon probably needs the same change.

I'll look later why the tests are failing.

I hope to find time to make a release on a few days.

michaelarnauts pushed a commit that referenced this issue Feb 24, 2024
@cometoluc
Copy link

Hello Michel

Is there a new addon olease ?and where? or is this wheree you still have to work?

@Bradtus
Copy link

Bradtus commented Feb 24, 2024

Hello Michel

Is there a new addon olease ?and where? or is this wheree you still have to work?

you should really remove your post that has your full name, adress and phone number visible

@cometoluc
Copy link

cometoluc commented Feb 24, 2024 via email

@pejeio
Copy link

pejeio commented Feb 25, 2024

Working fine again on LibreELEC Generic after changing "util.py", but only after doing the update from LibreELEC 11.0.5 to 11.0.6.

Hi @CoderPupil, how do you update LibreELEC? I'm using Kodi on a Mac.
Changing "util.py" worked, I don't see the error anymore and can go into the VTMGO plugin, although I also see the 'NoneType' object is not iterable error when browsing anything in the catalog.

@michaelarnauts
Copy link
Collaborator

@pejeio I've fixed the object is not iterable issue and merged @mrtreg's API bump.

You can test the 1.4.4 release here: https://github.com/add-ons/plugin.video.vtm.go/releases/tag/v1.4.4

Live TV won't probably work anymore on Kodi Matrix and earlier. We were using an older API there that was still compatible, but that API has been shut down.

Can you all please do a quick test and confirm that everything seems to be working again? I can push the update to the Kodi repo then.

@cometoluc
Copy link

cometoluc commented Feb 26, 2024 via email

@pejeio
Copy link

pejeio commented Feb 26, 2024

@michaelarnauts Thanks for the fix. I get this error now when trying to open the "Moet je nu zien" section in the catalog:
1

@cometoluc
Copy link

cometoluc commented Feb 26, 2024 via email

@lebeno
Copy link

lebeno commented Feb 26, 2024

After manually installing the ZIP it looks like the new version has fixed the problem. Thanks!

@pejeio
Copy link

pejeio commented Feb 26, 2024

After removing the add-on and installing from the ZIP and re-authenticating, everything works! Thank you so much @michaelarnauts! ❤️

@cobragerard
Copy link

On my W11 pc everything works fine with live tv but not on my my W10 installatiom.

@M4stakilla
Copy link

M4stakilla commented Sep 22, 2024

Hi,

Is it possible that the same issue is back? I already have v1.4.4 of the plugin installed and the code that koenleys suggested to replace, is already the same

I also tried clearing the cache, removing authentication data, completely removing the plugin and reinstalling it again, reauthenticating. But as soon as I reauthenticate I'm getting an error like the above error...

@davidbe
Copy link

davidbe commented Sep 23, 2024

v1.4.4 is not recent enough. Check this out: #387 (comment)

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

No branches or pull requests