Closed tatankat closed 1 year ago
Thanks for reporting this. Using the model.json method it was very easy to get the stream ids from the json file. The new implementation works for live and on demand urls: For instance: https://www.vrt.be/vrtmax/livestream/video/een/ https://www.vrt.be/vrtmax/livestream/video/canvas/ https://www.vrt.be/vrtmax/a-z/vrt-nws-journaal/2022/vrt-nws-journaal-vrt-nws-journaal-19u-20221014/
Test packages: Kodi 19 Matrix: plugin.video.vrt.nu-2.5.18+matrix.1-play_url-eabb5e4.zip Kodi 18 Leia: plugin.video.vrt.nu-2.5.18-play_url-eabb5e4.zip
Yep, it works. Thanks for implementing this!
The castkodi browser extension (https://github.com/regseb/castkodi) uses the plugin://plugin.video.vrt.nu/play/url route to play vrt max videos from the browser. This is currently broken and I understand this is removed with webscraping. Currently the website is using following graphql query to play the video. The value of the variable pageId is constructed the same way as the url, so the value can be constructed from the url, by adding ".model.json" to the uri.
So I think it is relatively easy to restore the functionality in the kodi addon. What do you think? Maybe the construction of the pageId variable should be done by the route client, but I think at least the query should be done in the addon as it is already executing other queries and it creates an easy interface to play vrt videos on kodi.
PS: The fix for programs menus works like a charm, thanks. Menus were broken and one of the reasons to use the browser extension is that it most of the time still worked when menus are broken in de kodi addon.