add-ons/plugin.video.vtm.go

404 Client Error when opening some categories

lebeno opened this issue · 3 comments

lebeno commented

Describe the bug
Opening some categories under "Aanbevelingen" gives 404 Client Error: Not found for url.

To Reproduce
Steps to reproduce the behavior:

  1. VTM Go > Aanbevelingen
  2. Click on category Hulpverleners
  3. No list of programs/episodes but error 404 on screen

Same problem for other Aanbevelingen:

  • Moet je nu zien
  • Nieuws

No problem with:

  • Laatste kans > Ace Ventura: Pet Detective
  • Nieuwe films > Wild Card
  • Sport > Wout

Expected behavior
I would expect a list of episodes.

Logs

2023-05-03 12:58:01.551 T:1224     INFO <general>: initializing python engine.
2023-05-03 12:58:01.560 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.vtmgoauth] JWT is valid
2023-05-03 12:58:01.561 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.561 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending POST https://lfvp-api.dpgmedia.net/VTM_GO/tokens/refresh: {'lfvpToken': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2ODMxNDAyNzUsImlhdCI6MTY4MzExMTQ3NSwiaXNzIjoiaHR0cHM6Ly9sZnZwLWFwaSIsInN1YiI6ImUyNzViOTJmYThiMzQ3ZGFhZTVlYTA1Yzk1NjI2ZWE2IiwiYnJhbmQiOiJWVE1fR08iLCJkZXZpY2VfaWQiOiJhY2NkYzc4My1kOGMwLTRkYmMtYmQ1Mi1kNWM2NGQ1YTI1MGMifQ.3FD1moueacf-5zSXB-TlbsK4DfEUYhgJRCjal08HyXmh3LifuThRmVHF7mgWNxvDOl7mg7tpaFUTzlTKh2Zi6A'}
2023-05-03 12:58:01.633 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.633 T:1224     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "POST /VTM_GO/tokens/refresh HTTP/1.1" 200 437
2023-05-03 12:58:01.635 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.635 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"lfvpToken":"eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2ODMxNDAyODEsImlhdCI6MTY4MzExMTQ4MSwiaXNzIjoiaHR0cHM6Ly9sZnZwLWFwaSIsInN1YiI6ImUyNzViOTJmYThiMzQ3ZGFhZTVlYTA1Yzk1NjI2ZWE2IiwiYnJhbmQiOiJWVE1fR08iLCJkZXZpY2VfaWQiOiJhY2NkYzc4My1kOGMwLTRkYmMtYmQ1Mi1kNWM2NGQ1YTI1MGMifQ.DoFmwvJgnpVusDj4WPip5MFCLOBIR6IYLKUSenaNFtF1e6NunZQIHTp6oU-iaEjLcfcomCPSylweE34n_NLq9A","expiresIn":28800,"hashedAccountId":"94deaf5cc37d0d750a80e3f5812fefaa","userInfo":null}
2023-05-03 12:58:01.636 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.636 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/profiles
2023-05-03 12:58:01.701 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.701 T:1224     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/profiles HTTP/1.1" 200 693
2023-05-03 12:58:01.705 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.705 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"profiles":[{"id":"REDACTED","name":"REDACTED","gender":"UNDEFINED","birthDate":"REDACTED","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,"additionalAdultProfilesAllowed":false,"maxProfileCount":5}}
2023-05-03 12:58:01.714 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.714 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/storefronts/main/detail/50aba59d-3f8c-4df0-8bd3-732af6e25996
2023-05-03 12:58:01.808 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.808 T:1224     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/storefronts/main/detail/50aba59d-3f8c-4df0-8bd3-732af6e25996 HTTP/1.1" 200 12204
2023-05-03 12:58:01.811 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.811 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"abroad":false,"id":"50aba59d-3f8c-4df0-8bd3-732af6e25996","metaData":{"provider":"avidci","requestId":"078b7921-326f-47f9-b735-79b785e419fd","routingGroup":"f951e32d-9bd4-43e0-a867-f3d2f1cf5e15","abGroup":"801d6b7c850075390e9b44b6596e9de4","campaignId":null},"title":"Hulpverleners","rowType":"SWIMLANE_LANDSCAPE","teasers":[{"title":"Andy op patrouille","target":{"type":"PROGRAM","id":"bb5301ac-5056-4f59-8bf9-454fdf96385c","name":"Andy op patrouille"},"imageUrl":"https://images0.persgroep.net/rcs/tmmMZIt8ShUU1GPgDeMuoa2zbSE/diocontent/230541688/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","blockedFor":null,"comingSoon":null},{"title":"Helden van hier: De Kust","target":{"type":"PROGRAM","id":"3e1dd306-c0a8-4a08-a290-8a421031e09b","name":"Helden van hier: De Kust"},"imageUrl":"https://images3.persgroep.net/rcs/eK7sXiqKGb6uUyoIHAT6sbh0AvA/diocontent/220626339/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","blockedFor":null,"comingSoon":null},{"title":"Een echte job NL","
2023-05-03 12:58:01.814 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.814 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.kodiutils] Fetching /storage/.kodi/userdata/addon_data/plugin.video.vtm.go/cache/program.4584654b-fa54-4dbd-bd7f-18164737561b from cache
2023-05-03 12:58:01.814 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.814 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/detail/4584654b-fa54-4dbd-bd7f-18164737561b?selectedSeasonIndex=1
2023-05-03 12:58:01.898 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.898 T:1224     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/detail/4584654b-fa54-4dbd-bd7f-18164737561b?selectedSeasonIndex=1 HTTP/1.1" 200 8887
2023-05-03 12:58:01.901 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.901 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"abroad":false,"id":"4584654b-fa54-4dbd-bd7f-18164737561b","type":"PROGRAM","name":"Echte Mensen: Nieuw Leven","description":"Reportagereeks over de professionals, die alle stappen van het proces van nieuw leven begeleiden: van de fertiliteitsarts, over de gynaecoloog tot de vroedvrouw die de borstvoeding begeleidt.","shortDescription":null,"backgroundImageUrl":"https://images1.persgroep.net/rcs/4E9w66fB1obg4czfL0GLcDMVpyw/diocontent/166271861/_fitwidth/1400?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","landscapeTeaserImageUrl":"https://images1.persgroep.net/rcs/gg3hgIa87mI2aiQSpe-5zZJbeqM/diocontent/166271852/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","portraitTeaserImageUrl":"https://images0.persgroep.net/rcs/mdlhA_ICNUghsMaRGV9w441L_YI/diocontent/203774346/_fitwidth/320?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","availability":null,"durationSeconds":null,"channelLogoUrl":null,"broadcastTimestamp":null,"seasonIndices":[1],"blockedFor":null,"ratingIcons":["PP"],"addedT
2023-05-03 12:58:01.907 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.907 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.kodiutils] Fetching /storage/.kodi/userdata/addon_data/plugin.video.vtm.go/cache/program.b1adc7b2-50c1-48c6-881e-30f119de0847 from cache
2023-05-03 12:58:01.908 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.908 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/detail/b1adc7b2-50c1-48c6-881e-30f119de0847?selectedSeasonIndex=1
2023-05-03 12:58:01.977 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.977 T:1224     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/detail/b1adc7b2-50c1-48c6-881e-30f119de0847?selectedSeasonIndex=1 HTTP/1.1" 200 4925
2023-05-03 12:58:01.979 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.979 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"abroad":false,"id":"b1adc7b2-50c1-48c6-881e-30f119de0847","type":"PROGRAM","name":"Alloo in de Politierechtbank","description":"Luk Alloo gaat achter de schermen bij de politierechtbank van Aalst en volgt politierechter Mireille Schreurs tot aan haar pensioen.","shortDescription":null,"backgroundImageUrl":"https://images1.persgroep.net/rcs/YXKSkrevOsWJjbyKXoHrYO1MOuM/diocontent/165443859/_fitwidth/1400?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","landscapeTeaserImageUrl":"https://images3.persgroep.net/rcs/QD0L0tVZoyrN2K8pN3WcaZW50r0/diocontent/165443861/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","portraitTeaserImageUrl":"https://images4.persgroep.net/rcs/XewWv_pJeW-ZwbWChJ6sqrndXR0/diocontent/201679118/_fitwidth/320?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","availability":null,"durationSeconds":null,"channelLogoUrl":null,"broadcastTimestamp":null,"seasonIndices":[1],"blockedFor":null,"ratingIcons":["PP"],"addedToMyList":false,"downloadAllowed":false,"meta":[{"label":
2023-05-03 12:58:01.983 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.983 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.kodiutils] Fetching /storage/.kodi/userdata/addon_data/plugin.video.vtm.go/cache/program.2aa5c6aa-eb1d-47ac-881c-4e7533e9f5b5 from cache
2023-05-03 12:58:01.984 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:01.984 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/detail/2aa5c6aa-eb1d-47ac-881c-4e7533e9f5b5?selectedSeasonIndex=2
2023-05-03 12:58:02.045 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:02.045 T:1224     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/detail/2aa5c6aa-eb1d-47ac-881c-4e7533e9f5b5?selectedSeasonIndex=2 HTTP/1.1" 404 0
2023-05-03 12:58:02.047 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:02.047 T:1224     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=404): 
2023-05-03 12:58:02.047 T:1224     INFO <general>: Skipped 2 duplicate messages..
2023-05-03 12:58:02.047 T:1224    ERROR <general>: [plugin.video.vtm.go] [resources.lib.modules.catalog] 404 Client Error: Not Found for url: https://lfvp-api.dpgmedia.net/VTM_GO/detail/2aa5c6aa-eb1d-47ac-881c-4e7533e9f5b5?selectedSeasonIndex=2

System

  • Addon version:1.4.1+matrix.1
  • Kodi version: 19.5-Matrix
  • Inputstream adaptive version: 19.0.7.1
  • Operating System (Windows / Mac OS / Android / LibreElec / OSMC / ...): LibreELEC 10.0.4 RPI4.arm
  • Special Hardware (RPI / Vero4K+ / ...): RasPi4 2 GB

Additional context
Reading the logs, it looks like some of the programs/episodes are loaded but one of the retrievals fails with error 404.

lebeno commented

After cleaning the cache of VTM Go plugin, retrieving "Hulpverleners" works, but why?

2023-05-03 13:22:19.173 T:1927     INFO <general>: initializing python engine.
2023-05-03 13:22:19.181 T:1927     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.vtmgoauth] JWT is valid
2023-05-03 13:22:19.181 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.181 T:1927     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending POST https://lfvp-api.dpgmedia.net/VTM_GO/tokens/refresh: {'lfvpToken': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2ODMxNDE3MjcsImlhdCI6MTY4MzExMjkyNywiaXNzIjoiaHR0cHM6Ly9sZnZwLWFwaSIsInN1YiI6ImUyNzViOTJmYThiMzQ3ZGFhZTVlYTA1Yzk1NjI2ZWE2IiwiYnJhbmQiOiJWVE1fR08iLCJkZXZpY2VfaWQiOiJhY2NkYzc4My1kOGMwLTRkYmMtYmQ1Mi1kNWM2NGQ1YTI1MGMifQ.1tKjMy_Ip3lnHj3DfUl_I0UuNVqjmdIg034rd34pM-XD9VK3zYhl8ahFINzY5KShJwHDBjhrfIERFrvkUeJ4eA'}
2023-05-03 13:22:19.252 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.252 T:1927     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "POST /VTM_GO/tokens/refresh HTTP/1.1" 200 437
2023-05-03 13:22:19.254 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.254 T:1927     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"lfvpToken":"eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2ODMxNDE3MzksImlhdCI6MTY4MzExMjkzOSwiaXNzIjoiaHR0cHM6Ly9sZnZwLWFwaSIsInN1YiI6ImUyNzViOTJmYThiMzQ3ZGFhZTVlYTA1Yzk1NjI2ZWE2IiwiYnJhbmQiOiJWVE1fR08iLCJkZXZpY2VfaWQiOiJhY2NkYzc4My1kOGMwLTRkYmMtYmQ1Mi1kNWM2NGQ1YTI1MGMifQ.mlSXbkmDmpfz7Kpp5hQlzPPuI6VoAMSHbF7AiBniVjYe9AAmHsnaWje7PTHUVcUHyuid6GuUnw4P-gfP4qKJKg","expiresIn":28800,"hashedAccountId":"94deaf5cc37d0d750a80e3f5812fefaa","userInfo":null}
2023-05-03 13:22:19.255 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.255 T:1927     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/profiles
2023-05-03 13:22:19.306 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.306 T:1927     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/profiles HTTP/1.1" 200 693
2023-05-03 13:22:19.309 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.309 T:1927     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"profiles":[{"id":"REDACTED","name":"REDACTED","gender":"UNDEFINED","birthDate":"REDACTED","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,"additionalAdultProfilesAllowed":false,"maxProfileCount":5}}
2023-05-03 13:22:19.316 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.316 T:1927     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Sending GET https://lfvp-api.dpgmedia.net/VTM_GO/storefronts/main/detail/50aba59d-3f8c-4df0-8bd3-732af6e25996
2023-05-03 13:22:19.397 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.397 T:1927     INFO <general>: [plugin.video.vtm.go] [urllib3.connectionpool] https://lfvp-api.dpgmedia.net:443 "GET /VTM_GO/storefronts/main/detail/50aba59d-3f8c-4df0-8bd3-732af6e25996 HTTP/1.1" 200 12204
2023-05-03 13:22:19.399 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.399 T:1927     INFO <general>: [plugin.video.vtm.go] [resources.lib.vtmgo.util] Got response (status=200): {"abroad":false,"id":"50aba59d-3f8c-4df0-8bd3-732af6e25996","metaData":{"provider":"avidci","requestId":"0f58cc99-9149-48c5-8cc4-c212be985472","routingGroup":"f951e32d-9bd4-43e0-a867-f3d2f1cf5e15","abGroup":"801d6b7c850075390e9b44b6596e9de4","campaignId":null},"title":"Hulpverleners","rowType":"SWIMLANE_LANDSCAPE","teasers":[{"title":"Andy op patrouille","target":{"type":"PROGRAM","id":"bb5301ac-5056-4f59-8bf9-454fdf96385c","name":"Andy op patrouille"},"imageUrl":"https://images0.persgroep.net/rcs/tmmMZIt8ShUU1GPgDeMuoa2zbSE/diocontent/230541688/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","blockedFor":null,"comingSoon":null},{"title":"Helden van hier: De Kust","target":{"type":"PROGRAM","id":"3e1dd306-c0a8-4a08-a290-8a421031e09b","name":"Helden van hier: De Kust"},"imageUrl":"https://images3.persgroep.net/rcs/eK7sXiqKGb6uUyoIHAT6sbh0AvA/diocontent/220626339/_fitwidth/426?appId=038a353bad43ac27fd436dc5419c256b&quality=0.8","blockedFor":null,"comingSoon":null},{"title":"Een echte job NL","
2023-05-03 13:22:19.639 T:1927     INFO <general>: Skipped 1 duplicate messages..
2023-05-03 13:22:19.639 T:1927     INFO <general>: CPythonInvoker(21, /storage/.kodi/addons/plugin.video.vtm.go/addon_entry.py): script successfully run

I had the same issue. Cleaning the cache fixes it indeed (the cache can be found at ~/.kodi/userdata/addon_data/plugin.video.vtm.go/cache).

I think this works due to the fact that a non-existing item is still in the cache, causing it to 404 when retrieving it. Cleaning the cache removes the non-existent item, hence kodi does not try to retrieve it any longer.

Same problem today when opening category "Populair op VTM Go":
2024-01-08 21:01:48.110 T:2387 error <general>: [plugin.video.vtm.go] [resources.lib.modules.catalog] 404 Client Error: Not Found for url: https://lfvp-api.dpgmedia.net/VTM_GO/detail/3975934b-22a2-4b4d-a10c-e2727448a6fe?selectedSeasonIndex=2023

Fixed again by cleaning the cache. Can this be fixed automatically somehow? If LibreElec had a cron, I would do it automatically daily, but alas \o/

Wondering if this a duplicate of #334 and #360?

BTW: Kodi 20.2 running on LibreELEC 11.0.4 on RasPi 5.