Giter Club home page Giter Club logo

plugin.video.vrt.nu's Introduction

GitHub release Build status Codecov status License: GPLv3 Contributors Donate!

VRT MAX Kodi add-on

plugin.video.vrt.nu is a Kodi add-on for watching all live video streams and all video-on-demand content available on VRT MAX.

VRT MAX is the video-on-demand platform of VRT, Flanders' public broadcasting service.

This Kodi add-on can be used to watch all video content from VRT MAX.

  • Track the programs you like
  • List all videos alphabetically by program, category, channel or feature
  • Watch live streams from VRT 1, Canvas, Ketnet, Ketnet Junior and Sporza
  • Discover recently added or soon offline content
  • Browse the online TV guides or search VRT MAX

Note: The VRT MAX add-on is not endorsed by VRT, and is provided 'as is' without any warranty of any kind.

Installing

In Kodi, simply search the add-ons for VRT and install the VRT MAX video add-on.

Note: Detailed information about installing and updating the VRT MAX add-on is available on our Wiki.

Using the plugin

The VRT MAX platform requires users to sign in before gaining access to video-on-demand content. Users can sign in with a user name and password, or sign in with their Google, or Facebook account.

This plugin currently only supports signing in using the first method (user name and password). If you already have a VRT MAX account and sign in with another method, it is easy to get a password:

  • Sign out of your VRT MAX account;
  • Click Inloggen met e-mail;
  • Click the Wachtwoord vergeten? hyperlink, and enter your email address.

You will receive an email that allows you to set a password. Use this password to enter in the plugin when prompted.

For more information about the VRT MAX Kodi add-on, look at our GitHub Wiki page.

Reporting issues

You can report issues at our GitHub project or leave a message at our Facebook page.

Screenshots

Releases

v2.5.32 (2024-05-21)

  • Fix search (@mediaminister)
  • Fix program menu listings (@mediaminister)

v2.5.31 (2024-04-21)

  • Fix program menu listings (@mediaminister)

v2.5.30 (2024-04-16)

  • Fix playing from TV guide (@mediaminister)

v2.5.29 (2024-02-12)

  • Fix program listings (@mediaminister)

v2.5.28 (2024-01-24)

  • Fix 'My favorites' listing (@mediaminister)

v2.5.27 (2023-12-27)

  • Fix categories listing (@mediaminister)

v2.5.26 (2023-09-22)

  • Fix program listings (@mediaminister)
  • Add extra content to program listings (@mediaminister)

v2.5.25 (2023-09-14)

  • Fix episode listings and featured menu (@mediaminister)

v2.5.24 (2023-07-18)

  • Fix 1080p quality and playback issue (@mediaminister)

v2.5.23 (2023-07-11)

  • Fix episode and featured listings (@mediaminister)

v2.5.22 (2023-06-14)

  • Fix categories menu (@mediaminister)
  • Fix 1080p (@mediaminister)

v2.5.21 (2023-05-23)

  • Fix 1080p for livestreams (@mediaminister)
  • Remove All programs menu (@mediaminister)
  • Fix paging in episode listings (@mediaminister)

v2.5.20 (2022-12-06)

  • Fix all programs menu (@mediaminister)
  • Fix latest episode API (@mediaminister)

v2.5.19 (2022-10-16)

  • Fix categories and channels menu listings (@mediaminister)
  • Fix resumepoints and Up Next integration (@mediaminister)
  • Fix playing from VRT MAX url API interface (@mediaminister)

v2.5.18 (2022-10-07)

  • Fix menu listings (@mediaminister)

v2.5.17 (2022-09-21)

  • Fix watching VRT MAX abroad (@mediaminister)
  • Fix 'My Programs' menu (@mediaminister)
  • Fix login issue on Raspberry Pi (@mediaminister)

v2.5.16 (2022-09-13)

  • Fix 'My Programs' menu (@mediaminister)
  • Hide resumepoints error messages (@mediaminister)
  • Implement new login api @mediaminister)

v2.5.15 (2022-08-31)

  • Fix add-on crash (@mediaminister)

v2.5.14 (2022-08-29)

  • VRT MAX rebranding (@mediaminister)

v2.5.13 (2022-08-05)

  • Support 1080p video on demand (@mediaminister)

v2.5.12 (2022-05-25)

  • Fix playing from TV guide (@mediaminister)
  • Fix listing programs with a single char in their name (@mediaminister)

v2.5.11 (2022-05-15)

  • Fix "All programs", "Categories","Most recent", "Soon offline" and "Channels" menu (@mediaminister)

v2.5.10 (2022-04-29)

  • Fix watching from the tv guide (@mediaminister)
  • Fix season menu labels (@mediaminister)

v2.5.9 (2022-04-20)

  • Fix broken menu listings (@mediaminister)

v2.5.8 (2022-04-14)

  • Fix watching VRT NU abroad (@mediaminister)
  • Fix webscraping video attributes (@mediaminister)

v2.5.7 (2022-01-31)

  • Fix watch later (@mediaminister)
  • Fix favorites (@mediaminister)

v2.5.6 (2021-12-22)

  • Fix watching VRT NU abroad (@mediaminister)
  • Fix resumepoints (@mediaminister)
  • Update featured menu (@mediaminister)

v2.5.5 (2021-09-09)

  • Fix broken menu listings (@mediaminister)

v2.5.4 (2021-07-21)

  • Fix login (@mediaminister)
  • Use Widevine DRM by default (@mediaminister)

v2.5.3 (2021-05-13)

  • Fix watching age restricted content (@mediaminister)

v2.5.2 (2021-04-21)

  • Fix broken menu listings (@mediaminister)

v2.5.1 (2021-04-07)

  • Fix season labels (@mediaminister)

v2.5.0 (2021-03-29)

  • Add new categories to featured menu (@mediaminister)

v2.4.5 (2021-02-05)

  • Fix watching livestreams with DRM enabled (@mediaminister)
  • Warn user that InputStream Adaptive is needed for timeshifting (@siemon-geeroms)

v2.4.4 (2021-01-25)

  • Fix watching VRT NU abroad (@mediaminister)

v2.4.3 (2021-01-22)

  • Add new channel "Podium 19" (@dagwieers)
  • Add livestream cache to speed up playback (@mediaminister)
  • Use InputStream Adaptive to play HLS (@mediaminister)
  • Don't log credentials in the Kodi debug log (@michaelarnauts)

v2.4.2 (2020-12-18)

  • Fix missing seasons (for 'Thuis') in TV Show menu (@mediaminister)
  • Fix missing favourite programs in 'My programs' menu (@mediaminister)
  • Allow IPTV Manager and Kodi Logfile Uploader installation from add-on settings (@michaelarnauts)
  • Updated Categories menu (@dagwieers)
  • Fix date parsing on Windows (@michaelarnauts)

v2.4.1 (2020-10-31)

  • Add new category "Nostalgia" (@dagwieers)
  • Add poster support (@dagwieers)
  • Add product placement and "kijkwijzer" metadata (@mediaminister)
  • Get categories from online JSON (@mediaminister)
  • Improvements to connection error handling (@dagwieers)
  • Improvements to virtual subclip support (@mediaminister)
  • Extend soon offline menu to seven days (@mediaminister)
  • Improve Up Next support (@mediaminister)

v2.4.0 (2020-07-18)

  • Show error messages when connections fail (@mediaminister, @dagwieers)
  • Improve user authentication cache (@mediaminister)
  • Fix missing "Worldview" category (@mediaminister)
  • Improve playing programs using the TV guide (@mediaminister)
  • Improve IPTV Manager support (@michaelarnauts)
  • Add user setting to update the VRT NU add-on easily (@dagwieers)

v2.3.5 (2020-05-27)

  • Fix watching VRT NU abroad (@mediaminister)
  • Improve and fix user authentication (@mediaminister, @dagwieers)
  • Add support for playing from the Guide with IPTV Manager (@michaelarnauts)

v2.3.4 (2020-05-18)

  • Fix token issue caused by new cross-site request forgery (XSRF) checks (@mediaminister)
  • Add experimental IPTV Manager support (@dagwieers)
  • Always unescape HTML in outline and description (@mediaminister)

v2.3.3 (2020-04-30)

  • Fix Radio 1 livestream (@dagwieers)
  • Fix watching VRT NU abroad (@mediaminister)
  • Add support for Kodi 19 Matrix "pre-release" builds (@mediaminister)
  • Add colour preferences to accomodate light skins (@dagwieers @mediaminister)
  • Add a favourites music subsection (@dagwieers)
  • Allow editing a search query from search history (@dagwieers)
  • Expand TV guide range (@dagwieers)
  • Add livestreams for Radio 2 and Klara (@dagwieers @mediaminister)

v2.3.2 (2020-01-18)

  • Fix issues related to categories scraping and caching (@mediaminister)
  • Various improvements to TV guide (@dagwieers)

v2.3.1 (2020-01-14)

  • Fix an issue related to type-handling for settings (@dagwieers)
  • Fix an issue related to marking played videos as watched when using Up Next (@mediaminister)
  • Small fix for livestreams (@mediaminister)
  • Improvements to metadata handling specific to Kodi rendering (@dagwieers)
  • Support multiple YouTube links per channel (@dagwieers)

v2.3.0 (2020-01-01)

  • Add integration for Up Next add-on (@mediaminister)
  • Store resume points and watchlater at VRT NU (@dagwieers, @mediaminister)
  • Implement "Continue watching" (@mediaminister)
  • Implement "Watch later" (@dagwieers)
  • Fixes to "Go to program", "TV guide" and "Live TV" entries (@dagwieers)
  • Cosmetic changes to metadata and plot (@dagwieers)
  • Fix Python 3.5 support (@mediaminister)

v2.2.3 (2019-10-01)

  • Integrate new inputstreamhelper (@dagwieers)
  • Support user paths with unicode characters (@mediaminister)
  • Manage My favorites (@dagwieers)
  • Improve breadcrumbs support (@dagwieers)
  • Various translation fixes

v2.2.2 (2019-09-01)

  • "Go to program" will now got to "All seasons" listing (@dagwieers)
  • Rename "My programs" to "My favorites" (@dagwieers)

v2.2.1 (2019-08-16)

  • Small unicode fix in service handler (@mediaminister)
  • Implement Kodi-approved thumb removal (@mediaminister)
  • Fix broken streamservice webscraper (again) (@mediaminister)

v2.2.0 (2019-08-14)

  • Add breadcrumbs support (@dagwieers)
  • Support unicode characters in credentials (@mediaminister)
  • Add a 'Go to program' context menu (@mediaminister)
  • Fix the ordering of categories and features (@dagwieers)
  • New icon and fanart (@mediaminister)
  • Fixes to credentials, tokens, favorites and roaming (@mediaminister)
  • Fix broken streamservice webscraper (@mediaminister)
  • Fix play-by-airdate API interface (@mediaminister)
  • Add TV guide to channel menu (@dagwieers)
  • Add a context menu to remove search queries from history (@dagwieers)

v2.1.1 (2019-07-20)

  • Fix issue on Kodi v17 (@dagwieers)

v2.1.0 (2019-07-11)

  • Fix an issue with roaming VRT tokens (@mediaminister)
  • Start a video by channel/start time (@mediaminister)
  • Use notifications for various events related to tokens/cache/credentials (@dagwieers)
  • Add YouTube channel support (@dagwieers)
  • Add Radio 1 live stream (@dagwieers)
  • Improve credential input (@michaelarnauts)

v2.0.0 (2019-06-30)

  • Changes to API calls, THIS BREAKS EXISTING FAVOURITES AND WATCHED ITEMS
  • Added "Featured content" menu, with e.g. "Complete season" or "Last chance" (@dagwieers)
  • Added "My movies" and "My documentaries" menus (@dagwieers)
  • Added "Refresh" to context menu to refresh without cache (@dagwieers)
  • New API call to play latest episode of a program, i.e. home automation (@mediaminister)
  • Added Live TV entry at the top of channel-menu, convenient for favourites (@dagwieers)
  • Mix one-off programs with multi-episode programs (@dagwieers)
  • Indicate followed programs using the °-symbol (@dagwieers)
  • Improvements to the add-on settings and error messages (@mediaminister)
  • Store previous search queries (@dagwieers)
  • Small performance/efficiency improvements (@mediaminister)

v1.10.0 (2019-05-30)

  • Performance improvements by caching HTTP requests locally (@dagwieers)
  • Fix episode listings with more than 150 items (@mediaminister)
  • Add "Soon offline" functionality to track episodes that will be removed (@dagwieers)
  • Add TV guide schedule in live stream metadata (@dagwieers)
  • Add "My programs" functionality to track your favorite programs (@dagwieers)
  • Improvements to stream selection logic (@mediaminister)
  • Fix localized date strings for JeOS platforms (@dagwieers)
  • Add "Search" functionality in main menu (@dagwieers)
  • Add Ketnet Junior 24/7 live stream (@dagwieers)
  • Add Kodi "- All seasons" support in season listings (@dagwieers)
  • Add 720p live stream support (without DRM) (@dagwieers)
  • Extend the "Troubleshooting" settings with logging and caching options (@dagwieers)
  • Support bandwidth limitation (useful for mobile internet connections) (@mediaminister)

v1.9.0 (2019-05-04)

  • Add a Channels menu (@dagwieers)
  • Add page-browsing in Recent menu, 50 items per page (@dagwieers)
  • Fix general performance issue on Raspberry Pi (@mediaminister)
  • Add icon support to channel listings (@dagwieers)
  • Improvements to streamservice (@mediaminister)
  • Add fallback code for web scraping logic (@dagwieers)
  • Add Studio Brussel and MNM live streams (@dagwieers)

v1.8.0 (2019-04-27)

  • Fix the menu listings due to the urllib3 update (@dagwieers)
  • Add a TV guide menu entry (@dagwieers)
  • Add a permalink to the episode plot (optionally) (@dagwieers)
  • Avoid getting license url on every request (@mediaminister)
  • Improve menu listings order and add menu sort methods (@dagwieers)
  • Implement Kodi formatted text conversion (@pietje666)
  • Improved login handling (@mediaminister)
  • Improve thumbnail/fanart for menu listings (@dagwieers)
  • Fixes to remote play (@mediaminister)

v1.7.1 (2019-03-28)

  • Remove the inputstream.adaptive requirement for Krypton

v1.7.0 (2019-03-26)

  • Fix the categories web-scraping (@mediaminister)
  • Add full proxy support (@dagwieers)
  • Indicate when content will disappear in the next 3 months (@dagwieers)
  • Indicate when content is geo-blocked (@dagwieers)
  • Add fanart to menus (@dagwieers)
  • Fix issue related to missing sound (@mediaminister)
  • Improve main menu listing (@dagwieers)
  • Use VRT NU search API for most information gathering (@mediaminister)
  • Added Dutch translation (@mediaminister)
  • Added "Most recent" menu item (@mediaminister)
  • Fix roaming for live streams (@mediaminister)
  • Add Python 3 compatibility (@dagwieers)
  • Added automated testing using Travis CI (@dagwieers)

v1.6.0 (2019-03-07)

  • Use VRT search api (greatly improves stability)
  • Fix for users with Non ASCII compatible user path (@pietje666)
  • Fix for roaming token (@pietje666)

v1.5.2 (2019-01-28)

  • Bug fix where the vrt token would be stored in a wrong format (@pietje666)
  • Inputstream helper for easier widevine installation (@pietje666)
  • Token resets when settings are being changed (@pietje666)

v1.5.1 (2019-01-20)

  • Fixed subtitle issue where subtitles would always be visible (@mediaminister)
  • Fixed categories (@mediaminister)
  • Roaming support added (@mediaminister)

v1.5.0 (2018-12-27)

  • 720p Livestreams when enabling in settings + having kodi 18 + having widevine.dll present (@mediaminister)
  • Fixed bug where watched icon was not showing in Kodi 18 (@pietje666)
  • Implemented different way of working with subtitles (@mediaminister)

v1.4.3 (2018-11-07)

  • Livestreams working again (@pietje666)

v1.4.2 (2018-10-11)

  • Changed way of working with urls when a season is referring to href="#" (@pietje666)

v1.4.1 (2018-09-24)

  • Adapted plugin to new vrtnu layout for showing multiple seasons (@pietje666)

v1.4.0 (2018-09-20)

  • Using the new vrtnu login method and video services (@pietje666)
  • Fixed bug where some videos would not be able to play (@dagwieers)

v1.3.4 (2018-09-10)

  • Fixed A-Z menu to parse the new vrtnu layout (@pietje666)

v1.3.3 (2018-09-02)

  • Fixed bug where some items would not want to play (@pietje666)
  • Fixed bug where some videos would only show one episodes while multiple episodes are present (@pietje666)
  • Updated Requests and Beautifulsoup modules (@pietje666)

v1.3.2 (2018-08-03)

  • Changed way of selecting multiple episodes, this fixes a bug where the "active" episodes would not be shown (@pietje666)

v1.3.1 (2018-07-20)

  • Changed way of selecting item title for single videos (@pietje666)

v1.3.0 (2018-07-14)

  • Adapted code to new vrtnu website layout, this fixes a bug where only the first episode would be shown while multiple episodes are present (@pietje666)

v1.2.0 (2018-06-17)

  • Changed live streaming mechanism (@pietje666)

v1.1.2 (2018-06-14)

  • New stream links for live streaming (@yorickps)

v1.1.1 (2018-03-13)

  • Fixed bug where seasons do not show when there is one malfunctioning (@pietje666)

v1.1.0 (2017-12-15)

  • Refactored internal code (@pietje666)

v1.0.0 (2017-10-01)

  • Fixed issue where all the videos would not be able to play, implemented new way of getting the streaming urls (@pietje666)
  • Fixed bug where a single video would not be listed when there is also a part "ANDEREN BEKEKEN OOK" present (@pietje666)
  • New versioning system now starting from 1.0.0 (@pietje666)

v0.0.7 (2017-09-09)

  • Fixed bug where dates were not always shown (@pietje666)

v0.0.6 (2017-08-06)

  • Fixed ordering bug for videos (@pietje666)

v0.0.5 (2017-07-24)

  • Fixed broken Sporza logo (@pietje666)

v0.0.4 (2017-07-20)

  • Added Sporza livestream (@pietje666)
  • Added dates to videos (@stevenv)
  • Fixed bug where seasons did not get listed (@pietje666)

v0.0.3 (2017-05-22)

  • Fixed broken livestreams (@pietje666)

v0.0.2 (2017-05-07)

  • Fixed installation issue (@pietje666)

v0.0.1 (2017-05-01)

  • Initial working release (@pietje666)

Donating

paypal

plugin.video.vrt.nu's People

Contributors

dagwieers avatar mediaminister avatar michaelarnauts avatar pietje666 avatar siemon-geeroms avatar stevenvolckaert avatar yorickps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin.video.vrt.nu's Issues

Yatse support

Hey there!

I was wondering if it would be possible to add Yatse support to this plugin? With Youtube, TED and SoundCloud it is possible to send the video/music link from an Android phone through Yatse to Kodi. The video/music is then played on the TV.

What do you think? Would it be hard to implement this feature? If I wanted to do it myself, where should i start?

Great plugin by the way!

Thanks!

Categories no longer works

Describe the bug
Probably a parsing bug because the website changed again.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Categories'
  2. Click on '.Categories'
  3. See empty listing

Expected behavior
See the category list.

(please complete the following information):

  • LibreELEC v8.95.002
  • Kodi v18.0-RC4

Log (if available)
There is no error in the logs.

Addon stopped working on content.find('h1').text

Describe the bug
In between watching "De klas" and wanting to watch "Iedereen kiest" the addon stopped working. Nothing works at the moment, except livestreams.

It seems that the formatting has changed again, so we can't fall back on older expectations.

(please complete the following information):

  • LibreELEC 8.90.006
  • Kodi 18.0-BETA3

Log (if available)

01:14:54.933 T:1427108720   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-
-
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'NoneType' object has no attribute 'find'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/addon.py", line 43, in <module>
                                                router(sys.argv[2][1:])
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/addon.py", line 32, in router
                                                vrt_player.show_videos(params['video'])
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", 
line 124, in show_videos
                                                title_items.extend(self.__get_single_video(relevant_path.url, soup))
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", 
line 178, in __get_single_video
                                                list_item_title = content.find('h1').text
                                            AttributeError: 'NoneType' object has no attribute 'find'
                                            -->End of Python script error report<--

Failes to play

21:10:24.006 T:1563423728 ERROR: CCurlFile::FillBuffer - Failed: Timeout was r eached(28)
ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
21:10:55.937 T:1958777776 NOTICE: VideoPlayer: Opening: http://ondemand-w.lwc.v rtcdn.be/content/vod/vid-dis-f3434b00-112d-46e3-bba4-a3792e10eba1_2/vid-dis-f343 4b00-112d-46e3-bba4-a3792e10eba1_2_nodrm_47b7d5bd-4010-4f74-a8fd-3ee63189bfd0.is m/.m3u8
21:10:55.937 T:1958777776 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIA LIZED
21:11:07.965 T:1958777776 ERROR: CCurlFile::Stat - Failed: Timeout was reached (28) for http://ondemand-w.lwc.vrtcdn.be/content/vod/vid-dis-f3434b00-112d-46e3- bba4-a3792e10eba1_2/vid-dis-f3434b00-112d-46e3-bba4-a3792e10eba1_2_nodrm_47b7d5b d-4010-4f74-a8fd-3ee63189bfd0.ism/.m3u8
21:11:07.966 T:1571812336 NOTICE: Creating InputStream
21:11:20.057 T:1571812336 NOTICE: Creating Demuxer
21:11:50.752 T:1571812336 ERROR: OpenDemuxStream - Error creating demuxer
21:11:50.753 T:1571812336 NOTICE: CVideoPlayer::OnExit()
21:11:50.754 T:1958777776 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vrt.nu/?action=play&video=https%3A%2F%2Fwww.vrt.be% 2Fvrtnu%2Fa-z%2Fmarlene-dietrich--le-crepuscule-d-un-ange%2F2012%2Fmarlene-dietr ich--le-crepuscule-d-un-ange-s2012%2F]
21:11:50.755 T:1958777776 NOTICE: CVideoPlayer::CloseFile()
21:11:50.756 T:1958777776 NOTICE: VideoPlayer: waiting for threads to exit
21:11:50.756 T:1958777776 NOTICE: VideoPlayer: finished waiting
21:11:50.757 T:1958777776 NOTICE: CVideoPlayer::CloseFile()
21:11:50.757 T:1958777776 NOTICE: VideoPlayer: waiting for threads to exit
21:11:50.757 T:1958777776 NOTICE: VideoPlayer: finished waiting
21:12:02.475 T:1580200944 ERROR: CCurlFile::Stat - Failed: Timeout was reached (28) for http://download.osmc.tv/kodi/addons/krypton/plugin.video.wdrmediathek/i con.png

Some Items wont play

Describe the bug
Some items wont play for instance Dagelijkse Kost. When looking in the log we can see that he url to play the items is different then usual. It starts with "Remix" => http://remix.aka.vrtcdn.be/remix/121c2b8e-6369-441b-8efa-d3cd6c79e744/remix.ism/.m3u8

To Reproduce
Steps to reproduce the behavior:
1.Select A-Z
2. Select Dagelijkse Kost
3. Select the first item
4. Application gives loading screen but does not play the item

Expected behavior
The item should be played

(please complete the following information):

  • Operating system: Libreelec
  • Kodi Version: 17.6

Additional context

  • Using a VPN: No
  • Country you are using the addon from: BE

Livestreams fail to start

Please use this template, it really helps me to tackle bugs more easily when everything is filled in a structural manner

Describe the bug
Livestreams not working anymore. Apparently you need to be logged in now.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Livestreams
  2. Click on Canvas
  3. See error

Expected behavior
Livestream starts to play

(please complete the following information):

  • Operating system: Windows
  • Kodi Version: 17.6

Additional context

  • Using a VPN: No
  • Country you are using the addon from: Spain (Tenerife) but normally from Belgium

check that an episode has been watched not there on kodi 18.0

I know that kodi 18 is just in alfa so it could be that you want to ignore this for now, but as you can see in attached printscreen, when I use retrospect in kodi 18 (latest version) on raspberry PI 2, a small icon is shown before each episode. With kodi 17 this is not the case. However probably because of this, the checkbox that an episode has been watched is not there anymore and that is quite enoying. Is it by purpose that this small icon is shown in the episode list and
screenshot049
could it be that this makes the 'has been seen' check is not there anymore? If so, would you also not prefer to have the check instead of the icon? An example is vrt.nu, professor T

Addon forgets what was already seen

Describe the bug
I don't know yet what caused this, and I can't remember having seen this in the past usage of the addon. But stuff I have already seen is no longer marked as such, especially if it's been some time.

I would expect every item has a unique identifier and this identifier is used to recognize if it was seen before (stored somewhere in an internal database). But I don't think we store such an identifier, so at some point it gets lost if the content is "rewritten".

Problem playing streams including livestreams

Currently running 1.4.0 on an updated osmc.

I checked the logs and see the following error:

19:48:37.701 T:1353708288   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'NoneType' object has no attribute 'text'
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.vrt.nu/addon.py", line 43, in <module>
                                                router(sys.argv[2][1:])
                                              File "/home/osmc/.kodi/addons/plugin.video.vrt.nu/addon.py", line 32, in router
                                                vrt_player.show_videos(params['video'])
                                              File "/home/osmc/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", line 116, in show_videos
                                                episode_items = self.__get_episodes(li_tags)
                                              File "/home/osmc/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", line 137, in __get_episodes
                                                title = statichelper.replace_newlines_and_strip(a_tag.text)
                                            AttributeError: 'NoneType' object has no attribute 'text'
                                            -->End of Python script error report<--

I have the suspicion that this occurs when trying to display more than one 'stream' in a folder.
Displaying subfolders for seasons doesn't result in an error.
Also displaying folders with only 1 stream in them (like most movies and some docu's), also is no problem.

Livestreams have a different error message:

19:57:14.368 T:1926318592    INFO: easy_aquire - Created session to https://live-vrt.akamaized.net
19:57:14.401 T:1362096896    INFO: Python script stopped
19:57:14.402 T:1362096896   DEBUG: Thread LanguageInvoker 1362096896 terminating
19:57:20.139 T:1926318592   DEBUG: CCurlFile::GetMimeType - https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/.m3u8 -> application/x-mpegURL
19:57:20.173 T:1926318592   DEBUG: Loading settings for https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/.m3u8
19:57:20.189 T:1926318592   DEBUG: CPlayerCoreFactory::GetPlayers(https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/.m3u8)
19:57:20.190 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
19:57:20.190 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
19:57:20.190 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
19:57:20.190 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
19:57:20.190 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
19:57:20.191 T:1926318592   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
19:57:20.192 T:1926318592   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
19:57:20.192 T:1926318592   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
19:57:20.192 T:1926318592   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
19:57:20.192 T:1926318592   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
19:57:20.192 T:1926318592   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
19:57:20.199 T:1926318592   DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData
19:57:20.199 T:1926318592  NOTICE: VideoPlayer: Opening: https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/.m3u8
19:57:20.199 T:1926318592 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:57:20.219 T:1926318592   DEBUG: CCurlFile::GetMimeType - https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/.m3u8 -> application/x-mpegURL
19:57:20.219 T:1926318592   DEBUG: CMMALRenderer::CMMALRenderer
19:57:20.219 T:1926318592   DEBUG: CMMALRenderer::UnInitMMAL
19:57:20.219 T:1353708288   DEBUG: Thread MMALProcess start, auto delete: false
19:57:20.219 T:1926318592   DEBUG: CMMALRenderer::PreInit
19:57:20.219 T:1353708288   DEBUG: CMMALRenderer::Run - starting
19:57:20.220 T:1362096896   DEBUG: Thread VideoPlayer start, auto delete: false
19:57:20.221 T:1362096896  NOTICE: Creating InputStream
19:57:20.222 T:1362096896   DEBUG: CurlFile::Open(0x512fe610) https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/.m3u8
19:57:20.720 T:1926318592   DEBUG: ------ Window Init (DialogBusy.xml) ------
19:57:28.538 T:1370485504   DEBUG: Thread JobWorker 1370485504 terminating (autodelete)
19:57:28.538 T:1404039936   DEBUG: Thread JobWorker 1404039936 terminating (autodelete)
19:57:28.548 T:1412428544   DEBUG: Thread JobWorker 1412428544 terminating (autodelete)
19:57:35.544 T:1362096896  NOTICE: Creating Demuxer
19:57:40.890 T:1362096896    INFO: ffmpeg[512FF300]: [hls,applehttp] Opening 'https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/live_aes-audio_t$
19:57:46.274 T:1362096896    INFO: ffmpeg[512FF300]: [hls,applehttp] Opening 'https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/live_aes-audio_t$
19:57:51.645 T:1362096896    INFO: ffmpeg[512FF300]: [hls,applehttp] Opening 'https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/live_aes-audio_t$
19:57:46.274 T:1362096896    INFO: ffmpeg[512FF300]: [hls,applehttp] Opening 'https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/live_aes-audio_t$
19:57:51.645 T:1362096896    INFO: ffmpeg[512FF300]: [hls,applehttp] Opening 'https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/live_aes-audio_t$
19:57:57.009 T:1362096896    INFO: ffmpeg[512FF300]: [hls,applehttp] Opening 'https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/live_aes-audio_t$
19:58:02.373 T:1362096896    INFO: ffmpeg[512FF300]: [hls,applehttp] Opening 'https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/live_aes-audio_t$
19:58:06.095 T:1926318592    INFO: CheckIdle - Closing session to https://live-vrt.akamaized.net (easy=0x6304550, multi=0x5981e430)
19:58:07.445 T:1362096896   DEBUG: Error, could not open file https://live-vrt.akamaized.net/groupc/live/***replaced***/live_aes.isml/.m3u8

Use new VRT Media Services

VRT is using new Media Services api to be called with the following url
"https://media-services-public.vrt.be/vualto-video-aggregator-web/rest/external/v1/videos/pbs-pub-a653dbcc-9a1d-49ea-8359-4815755688b9%24vid-86a6358a-46dc-4fd3-abdd-d4e2a20bc2f5?vrtPlayerToken=b1%402113adcf43f8a6ed7ffb0c70d64b8a9468b6347f73a5ae17f1d4fba88a58aba&client=vrtvideo"

I can get together all elements needed to retrieve a succesful url except for the vrtPlayertoken, i always get a token back starting with b0 (which i believe needs to be b1).

I believe i need a post request to "https://login.vrt.be/perform_login" with certain headers/data/cookies to retrieve a correct cookie which i then can pass to call "https://media-services-public.vrt.be/vualto-video-aggregator-web/rest/external/v1/tokens" which will give back a correct token.

Unfortunately so far i can not make a correct call to "https://login.vrt.be/perform_login" that should give me back the correct cookies to call "https://media-services-public.vrt.be/vualto-video-aggregator-web/rest/external/v1/tokens"

Live stream URLS not working anymore

Since few days live url streams are not working anymore. Apparently due to DRM

(changed title and content since, everyone is talking about the live streams. While actually that is a seperate issue not related to the original)

Add video release date to list views

At the moment, the release date of videos is not visible in list views. Adding the release date would make it much easier to identify the most recent video.

inputstream.adaptive version 2.0.19 needed but not available

Describe the bug
Plugin does not want to install because it needs inputstream.adaptive version 2.0.19 but this plugin is not available

To Reproduce
Try to install the addon on Windows 10 in Kodi 17.6.

Context

  • Operating system: Windows 10
  • Kodi Version: 17.6 (stable)
  • Using a VPN: No
  • Country you are using the addon from: Belgium

Log (if available)

11:09:17.293 T:5512   DEBUG: CAddonInstallJob[plugin.video.vrt.nu]: requires inputstream.adaptive version 2.0.19 which is not available
11:09:17.293 T:5512   ERROR: CAddonInstallJob[plugin.video.vrt.nu]: The dependency on inputstream.adaptive version 2.0.19 could not be satisfied.

vrt.nu plugin ignores Kodi's HTTP proxy settings

vrt.nu plugin ignores Kodi's HTTP proxy settings

To Reproduce
Steps to reproduce the behavior:
Go to Kodi settings > System > Internet connection
Enable a proxy server, protocol HTTP
use tcpdump to see vrt.nu plugin does not use the HTTP proxy

Expected behavior
vrt.nu plugin does use the HTTP proxy

(please complete the following information):

  • Operating system: Debian 8 on Rpi3
  • Kodi Version: 17,4

Additional context

  • Using a VPN: None
  • Country you are using the addon from: CH

Logo update?

Would you mind if we update the logo to one of these? They would look better on the TV next to the other logos like Auvio, Arte, TED, Youtube, SoundCloud ...

image

image

geen vrt Nu

VRT NU werkt op dit moment niet de live uitzendingen

no sound in video

Firstt of all, great app! Thank you for this.
We've been using it for a while now.

Describe the bug
Since a few days though, we are not hearing any sound in the video's.
If i go to sound settings and check "geluidskanaal" it says none
All other non vrt.nu video's work fine.

I was on kodi 17. I just now upgraded tot 18 to check if it would resolve anything but no luck.

To Reproduce
Steps to reproduce the behavior:

  1. just play a video

(please complete the following information):

  • Operating system: windows 10 v1809
  • Kodi Version: 17 & 18

Additional context

  • Using a VPN: nope
  • Country you are using the addon from: belgium

Log (if available)
kodi.log

any idea's?
kind regards

error bij opvragen loslopend wild lijst

Wanneer ik vrt nu de lijst van loslopend wild wil opvragen krijg ik volgende error:

                                          File "/home/osmc/.kodi/addons/plugin.video.vrt.nu/addon.py", line 32, in router
                                            vrt_player.show_videos(params['video'])
                                          File "/home/osmc/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", line 116, in show_videos
                                            episode_items = self.__get_episodes(li_tags)
                                          File "/home/osmc/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", line 137, in __get_episodes
                                            title = statichelper.replace_newlines_and_strip(a_tag.text)
                                        AttributeError: 'NoneType' object has no attribute 'text'
                                        -->End of Python script error report<--

21:29:18.729 T:1926130176 ERROR: GetDirectory - Error getting plugin://plugin.video.vrt.nu/?action=listingvideos&video=vrtnu%2fa-z%2floslopend-wild---gevogelte.relevant%2f
21:29:18.731 T:1926130176 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/?action=listingvideos&video=vrtnu%2fa-z%2floslopend-wild---gevogelte.relevant%2f) failed

List videos of multiple seasons if there's more than a single season

I noticed today that series which have multiple seasons, only the episodes of a single season is listed (the least recent one, it seems).

For example, selecting the Tomtesterom series from the the A-Z or Categories view, only shows the episode of season 2, while there's also an episode in season 3 (as of today, June 24, 2017).

Videos are no longer listed by date (most recent on top)

Videos of a specific series (e.g. Het journaal) used to be listed in the order that they appeared on VRT.NU. This was quite useful, as the most recent video would always appear at the top of the list.

Since commit fa79423, which fixed issue #2, the videos seem to be sorted alphabetically. When the episode list of a series that has a lot of episodes (e.g. Het journaal contains around 90 episodes), the user needs to scroll down, searching for the most recent episode.

Notes

  • I couldn't immediately find the cause of this behavior change in commit fa79423. It could have been introduced to changes in Kodi or the VRT.NU website.
  • I didn't have the chance yet to check if HEAD of master has this problem too.

[Visual] Playing one video marks all videos as playing

Describe the bug
I noticed that when you are playing one stream in the VRT.NU addon, and while playing return to (any) menu you will see that it appears as if every file is being played.

This is when using the v1.7.0 master branch.

Migration to Python 2/3-compatible addon

In this issue we can discuss the migration proces to a Python 2-3 compatible addon.

I think we definitely need to add the kodi.six library. Any ideas on this? https://github.com/romanvm/kodi.six

Secondly we need to import the Future library like this:

#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from future import standard_library
standard_library.install_aliases()
from builtins import str

We can look at https://github.com/skipmodea1/plugin.video.tweakers as an example

Subtitles (TXT 888) for the hearing impaired?

Hi,

I tried the vrt.nu plugin. Works great! Many thanks!
Can it be possible there are no subtitles for the hearing impaired?
It can a big issue for the people that are older/hearing impaired.
Would you want to add it in a future update?
Maybe I overlooked it, and it's already added? I clicked on the subtitle icon when playing the
livestream of één during the VRTnews. Got no subtitles.

Greeting and thanks!

Broken links Ketnet videos

There are a lot of broken links in the Ketnet content. Most of the Movies just won't start playing. Can it be cache related?

Opent niet meer

Sinds de update opent de vrtnu-addon niet meer. Kodi 18 geïnstalleerd, zelfde probleem. Terug naar 17.6, nog steeds. Draait op Rbpi3, LibreElec.
Bij openen kom ik op pagina Series/VRT Nu: Bekeken
Geen inhoud op te zien...

Non-breaking whitespace in descriptions

Describe the bug
In the descriptions of the following programs we can find HTML entities, like &amp;, &nbsp; or &#39;

  • My brilliant friend extra's
  • Pano
  • Pantani - The accidental death of a cyclist
  • R.K.eredienst
  • The spirit of Hannah Arendt
  • Van Gils & gasten muziek
  • Villa Politica

I could not detect any in the plots of episodes.

Watch anonymously using `youtube-dl`

On any GNU/Linux platform it is possible to watch the live VRT Akamai streams (almost) anonymously.
That is, one's IP-address might still be recorded.

Nonetheless, watching without logging in is done by opening the live Akamai .m3u8 stream using the Python youtube-dl -o - "akamai_stream_url" command and piping its output to a media player like | vlc -

Would it be possible to implement this solution in your Kodi plugin?
It might be that this also solves your overheating problems.

In my opinion, it is none of the VRT's business to know my e-mail address, whether I am watching or what I am watching. Watching with DVB-T or analogue cable happened anonymously. This is no longer the case with VRT NU or the overly expensive Telenet.

Radio Gaga not playing

This issue will be present for all videos, that have a single episode to show on the website. And when there is also a section present "ANDEREN KEKEN OOK NAAR" then the video will not be able to be listed.

Error when starting plugin on Android

After installing the dependencies on a Kodi Android box we're unable to start the plugin.

The error log show some fatal errors in parsing the URL / Streams. (invalid syntax)
img_20180909_114629

Skipping unplayable item

Describe the bug
Video's are unable to play.
This problem has been occurring for a while now, despite the upgrade to 1.4.2 and a complete reinstall of kodi.

To Reproduce
Steps to reproduce the behavior:

  1. try to play any video

(please complete the following information):

  • Operating system: Raspbian (jessie)
  • Kodi Version: 17.3

Additional context

  • Using a VPN: no
  • Country you are using the addon from: Belgium

Log (if available)

16:46:29.600 T:1637872560   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('targetUrls',)
                                            Traceback (most recent call last):
                                              File "/root/.kodi/addons/plugin.video.vrt.nu/addon.py", line 43, in <module>
                                                router(sys.argv[2][1:])
                                              File "/root/.kodi/addons/plugin.video.vrt.nu/addon.py", line 36, in router
                                                vrt_player.play_vrtnu_video(params['video'])
                                              File "/root/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", line 79, in play_vrtnu_video
                                                stream = self._url_toStream_service.get_stream_from_url(url)
                                              File "/root/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/urltostreamservice.py", line 75, in get_stream_from_url
                                                hls = self.__get_hls(stream_response.json()['targetUrls'])
                                            KeyError: ('targetUrls',)
                                            -->End of Python script error report<--
16:46:29.642 T:1945694880   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vrt.nu/?action=play&video=%2Fvrtnu%2Fa-z%2Fthuis%2F24%2Fthuis-s24a4477%2F]

Your help is much appreciated!

Refactor code

Let's use this ticket to discuss code structure and design briefly.

Livestreams do not play anymore

Hi,

As of today the live streams 'een, canvas, ketnet) do not play any more
Red Cross: "VRT.nu error, check log"
OS: Android TV Box

Not changed anything.
The items in the categories still work and play fine.

Greetings

Roaming issue

I am in NL. My vrt account is verified, including Belgian phone number and allows me to stream content from the vrt nu website. However, in the kodi addon, whenever I select a stream I get a message:

Roaming settings are incomplete, to enable watching geo-blocked content while roaming please add additional information to the user profile

Can you please advise?

Thanks

Please add Channels list

Retrospect has a channel list, it would be nice if one could select a program by channel name.

Why ?

Because you can add Ketnet and Ketnet Junior as favorites to for a separate Children user in Kodi, and they would go directly to all the children's section.

plugin stopped working on arm64 kszaq LE Kodi

22:42:22.350 T:546266149088   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'simplejson.scanner.JSONDecodeError'>
                                            Error Contents: Expecting value: line 2 column 1 (char 1)
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/addon.py", line 37, in <module>
                                                router(sys.argv[2][1:])
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/addon.py", line 30, in router
                                                kodi_wrapper.play_video(params['video'])
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/kodiwrappers/kodiwrapper.py", li
ne 42, in play_video
                                                stream = stream_service.get_stream_from_url(path)
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/urltostreamservice.py"
, line 49, in get_stream_from_url
                                                json = securevideo_response.json()
                                              File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 850, in json
                                                return complexjson.loads(self.text, **kwargs)
                                              File "/usr/lib/python2.7/site-packages/simplejson/__init__.py", line 516, in loads
                                              File "/usr/lib/python2.7/site-packages/simplejson/decoder.py", line 370, in decode
                                              File "/usr/lib/python2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
                                              File "/usr/lib/python2.7/site-packages/simplejson/scanner.py", line 127, in scan_once
                                              File "/usr/lib/python2.7/site-packages/simplejson/scanner.py", line 118, in _scan_once
                                            JSONDecodeError: Expecting value: line 2 column 1 (char 1)
                                            -->End of Python script error report<--
22:42:22.600 T:547861798912   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vrt.nu/?action=play&video=%2F
vrtnu%2Fa-z%2Fde-afspraak%2F2017%2Fde-afspraak-d20170928%2F]

Use VRT NU API instead of scraping

As the title says, it would be alot nicer to use an API instead of scraping from the VRT.NU site.
It would make the addon more stable and most likely be faster.

The problem is, we (or atleast i) do not know which API, nor how to call it.
So any help is welcome!

Aflevering van reeks verschijnt soms niet in de lijst

Eerst en vooral: bedankt voor de add-on. Wij zijn grote fan!

Describe the bug
Een aflevering uit een reeks verschijnt soms niet in de lijst in de VRT Nu add-on.

Voorbeeld: "Iedereen beroemd" op https://www.vrt.be/vrtnu/a-z/iedereen-beroemd/2018/iedereen-beroemd-d20180714/. De website toont als meest recente aflevering die van 14/7, maar op Kodi verschijnt deze aflevering niet (meest recente aflevering in de VRT Nu add-on is die van 13/7).

Een ander voorbeeld uit de programma's die VRT Nu momenteel aanprijst op haar home pagina: bij "Flikken" zie ik 13 afleveringen op https://www.vrt.be/vrtnu/a-z/flikken/2002/flikken-s2002a1-vluchtmisdrijf/, maar de VRT Nu add-on toont er 12 ("Vluchtmisdrijf" ontbreekt).

Desktop (please complete the following information):
Kodi 17.3 / LibreElec op RPi 2
VRT Nu 1.3.1

DRM streams on android

Great work on the DRM streams but I could only get these to work without modification on Windows, not on Android (tv) devices with L1 widevine support.

The issue is caused by the check_widevine function in kodiwrapper.py not returning True on Android devices with widevine support. Hardcoding this function to True indeed enables the 720p DRM stream on tested Android devices. Not sure how to do the actual check for widevine support on Android...

Fail to start serie, for example: Escape to the chateau

When I try to play for example: Escape to the chateau it does not start.
Most other content works to play:

21:47:03.622 T:1405088512 NOTICE: Creating Demuxer
21:47:07.243 T:1405088512 ERROR: OpenDemuxStream - Error creating demuxer
21:47:07.243 T:1405088512 NOTICE: CVideoPlayer::OnExit()
21:47:07.253 T:1926162944 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vrt.nu/?action=play&video=%2Fvrtnu%2Fa-z%2Fescape-t o-the-chateau%2F2%2Fescape-to-the-chateau-s2a3%2F]
21:47:07.275 T:1926162944 NOTICE: CVideoPlayer::CloseFile()
21:47:07.275 T:1926162944 NOTICE: VideoPlayer: waiting for threads to exit
21:47:07.275 T:1926162944 NOTICE: VideoPlayer: finished waiting
21:47:07.275 T:1926162944 NOTICE: CVideoPlayer::CloseFile()
21:47:07.275 T:1926162944 NOTICE: VideoPlayer: waiting for threads to exit
21:47:07.275 T:1926162944 NOTICE: VideoPlayer: finished waiting

The serie does work when I play it from te vrt nu website.

Addon fails to work

Describe the bug
I noticed yesterday-evening that this addon no longer worked.
After reproducing this on a second set, I noticed the logs show: ERROR: ADDON: Could not locate inputstream.adaptive.so.2.3.15

The same happens for any other stream and also happens on a second setup.
It seems to be related to a recent adaptive inputstream update ?

Netflix addon is still working fine.
It was the Netflix addon that triggered the update of the adaptive inputstream on this system IIRC.

(please complete the following information):

  • Operating system: LibreELEC (official): 9.0.0, kernel: Linux ARM 32-bit version 4.19.17
  • Kodi Version: Kodi (18.0 Git:newclock5_18.0-Leia). Platform: Linux ARM 32-bit

Additional context

  • Using a VPN: No
  • Country you are using the addon from: BE

Log (if available)

15:17:03.899 T:1420817264  NOTICE: /storage/.kodi/userdata/addon_data/plugin.video.vrt.nu/XVRTToken
15:17:03.900 T:1420817264  NOTICE: /storage/.kodi/userdata/addon_data/plugin.video.vrt.nu/ondemand_vrtPlayerToken
15:17:04.234 T:1420817264  NOTICE: protocol: mpeg_dash
15:17:04.355 T:1937694736  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.vrt.nu/?action=play&video=%2Fvrtnu%2Fa-z%2Fde-zevende-dag%2F2019%2Fde-zevende-dag-d20190224%2F
15:17:04.356 T:1757098864  NOTICE: Creating InputStream
15:17:04.357 T:1757098864   ERROR: ADDON: Could not locate inputstream.adaptive.so.2.3.15
15:17:04.358 T:1757098864   ERROR: IAddonInstanceHandler::CreateInstance: inputstream.adaptive returned bad status "Permanent failure" during instance creation
15:17:04.358 T:1757098864   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.vrt.nu/?action=play&video=%2Fvrtnu%2Fa-z%2Fde-zevende-dag%2F2019%2Fde-zevende-dag-d20190224%2F]
15:17:04.358 T:1757098864  NOTICE: CVideoPlayer::OnExit()
15:17:04.564 T:1937694736  NOTICE: CVideoPlayer::CloseFile()
15:17:04.564 T:1937694736  NOTICE: VideoPlayer: waiting for threads to exit
15:17:04.564 T:1937694736  NOTICE: VideoPlayer: finished waiting

Idea: Implement more resilience into the scraper/parser

Describe the bug
It's unfortunate that there is no better API to VRT.NU (especially since we all pay for this service anyway and the VRT is ending DVB-T free-to-air soon).

But that doesn't mean we cannot improve the experience for end-users:

  • If the parser fails, dump the payload and URL so people have an easier time understanding what we expect and what changed, and offer a fix.

  • If the parser fails, on non-critical metadata (and I guess most is) we could replace it with a stub identifier, but still offer the video's. In this case the end-user may not see e.g. the titles, but can still select a video to play

  • If the parser fails, provide a warning (in case we do continue) or an error (in case we cannot) with some more information:

    • This issue is caused by the VRT changing the web interface (the only interface to VRT.NU that currently exists).

    • Please check http://github.com/pietje666/plugin.video.vrt.nu/issues for known issues and fixes.

    • Or investigate the logs to fix this yourself and contribute the fix.

  • Maybe we can have a better/faster distribution mechanism for this add-on. E.g. we can create our own repository that would automatically get the latest version. Which means if we release a new version, it could be a matter of minutes/hours to have Kodi update the add-on, rather than days.

Autostart VRT.nu plugin with autoexec.py

Describe the bug
To make it easier for watching TV We want Kodi to start the Vrt.nu Plugin automatically.

To Reproduce
Create file "autoexec.py" in folder: \Kodi\userdata
https://kodi.wiki/view/Autoexec.py
Add the follwing text to "autoexec.py":

import xbmc
xbmc.executebuiltin("RunScript(plugin.video.vrt.nu)")

Expected behavior
Kodi lauches and VRT.nu plugin started
Instead: Kodi starts and gives 'VRT.nu Error"

Would you be so kind to have a look?
Thanks in advance!

Here is the output from Kodi.log
Happens on Windows and Android
(same message - just different paths)

12:00:28.621 T:3000 WARNING: RunScript called for a non-script addon 'plugin.video.vrt.nu'. This behaviour is deprecated.
12:00:33.313 T:3324 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "C:\Users\Beheerder\AppData\Roaming\Kodi\addons\plugin.video.vrt.nu\addon.py", line 12, in
_handle = int(sys.argv[1])
IndexError: list index out of range
-->End of Python script error report<--

Subtitles always shown even when disabled in the add-in

Describe the bug
For example "Het journaal" always shows subtitles (with an extra empty line as described in another issue) even when in settings "Show subtitles if available" is off.

To Reproduce
Steps to reproduce the behavior:

  1. A-Z
  2. "Het journaal"
  3. play any (I do one on 19h)

Expected behavior
Since I set "Show subtitles if available" to off, I do not expect subtitles but they are shown.
However when I go to kodi settings, Player, Language, "Preferred subtitle language" which is on Dutch and I change this to None then no subtitles are shown.

(please complete the following information):

  • Operating system: LibreELEC with Kodi 18 latest release candidate
  • Kodi Version: 18

Additional context

  • Using a VPN: yes (BE)
  • Country you are using the addon from: Belgium

Log (if available)

Unable to play anything

Please use this template, it really helps me to tackle bugs more easily when everything is filled in a structural manner

Describe the bug
Unable to play back anything

To Reproduce
Steps to reproduce the behavior:
Select any video/episode

Expected behavior
Episode start playing

(please complete the following information):

  • Operating system: Ubuntu LTS 16.04
  • Kodi Version: 17.6

Log (if available)

19:13:51.829 T:139932420916992   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('targetUrls',)
                                            Traceback (most recent call last):
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/addon.py", line 43, in <module>
                                                router(sys.argv[2][1:])
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/addon.py", line 36, in router
                                                vrt_player.play_vrtnu_video(params['video'])
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", line 79, in play_vrtnu_video
                                                stream = self._url_toStream_service.get_stream_from_url(url)
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/urltostreamservice.py", line 75, in get_stream_from_url
                                                hls = self.__get_hls(stream_response.json()['targetUrls'])
                                            KeyError: ('targetUrls',)
                                            -->End of Python script error report<--
19:13:51.847 T:139935353534848   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vrt.nu/?action=play&video=%2Fvrtnu%2Fa-z%2Ftomorrowland%2F2018%2Ftomorrowland-s2018-studio-brussel-brengt-eerbetoon-aan-avicii-op-tomorrowland%2F]
19:14:08.156 T:139935353534848   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
19:14:21.880 T:139932274243328   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('targetUrls',)
                                            Traceback (most recent call last):
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/addon.py", line 43, in <module>
                                                router(sys.argv[2][1:])
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/addon.py", line 36, in router
                                                vrt_player.play_vrtnu_video(params['video'])
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/vrtplayer.py", line 79, in play_vrtnu_video
                                                stream = self._url_toStream_service.get_stream_from_url(url)
                                              File "/home/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer/urltostreamservice.py", line 75, in get_stream_from_url
                                                hls = self.__get_hls(stream_response.json()['targetUrls'])
                                            KeyError: ('targetUrls',)
                                            -->End of Python script error report<--
19:14:21.907 T:139935353534848   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vrt.nu/?action=play&video=%2Fvrtnu%2Fa-z%2Fthuis%2F24%2Fthuis-s24a4461%2F]
19:14:24.583 T:139935353534848   ERROR: GetDirectory - Error getting plugin://plugin.video.vrt.nu/?action=listingvideos&video=%2fvrtnu%2fa-z%2fthuis.relevant%2f
19:14:24.584 T:139935353534848   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/?action=listingvideos&video=%2fvrtnu%2fa-z%2fthuis.relevant%2f) failed
19:14:25.091 T:139935353534848   ERROR: GetDirectory - Error getting plugin://plugin.video.vrt.nu/?action=listingaz
19:14:25.092 T:139935353534848   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/?action=listingaz) failed
19:14:25.613 T:139935353534848   ERROR: GetDirectory - Error getting plugin://plugin.video.vrt.nu/
19:14:25.613 T:139935353534848   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/) failed

Subtitles show an extra empty line

Describe the bug
The subtitles show an extra empty line between subtitles.
Most likely this is an issue with DOS (\r\n) vs Unix text-files (\n).
(And this issue is likely in Kodi's subtitle handling, not in the addon)

(please complete the following information):

  • Operating system: LibreELEC v8.90.009 on RPi3
  • Kodi Version: v18.0-RC2

cannot enter @ sign user name

Sorry if this is an issue related to Kodi, not the plugin, but when I want to enter the Username I cannot enter my e-mail address because the on-screen keyboard does not have any @ key. Even when plugging in a USB keyboard into my Rasberry Pi that runs Kodi, typing @ displays nothing in the Username field.

Kodi addon proxy support

I would like to be able to use a proxy specific for this addon. So that other addons can work without a proxy. This is to better make use of the bandwidth for an elementary school's Internet connection. Classes usually visit the same streams every day e.g. Karrewiet etc.

We currently plan to do this on the proxy-level, but that makes us dependent on the proxy for everything. So if there's an issue with the proxy, everything is impacted also the stuff that we don't need proxied. It would be more efficient and a better design if we can do this just for this addon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.