New version of kwebhelper.py 1.2.5 available
This will go into the next version 1.3 of Minimal Kiosk Browser, but I thought I'll make it available separately for now. There are two big changes:
The website video part (youtube and many other websites) has been completely rewritten. Until now, youtube-dl was used to download the streams to a fifo buffer and omxplayer played the streams from that buffer. Now youtube-dl (still required!) is only used to extract the video urls and these urls are passed to omxplayer directly. There are a lot of advantages:
Youtube playlists, channels etc. are now also supported (playing a whole list of videos, one after the other).
Videos from a few websites that showed problems in the past (arte.tv, ZDF Mediathek ...) can also be played now. And no more hangings with these sites!
Less stress on the SD card (by not writing to the fifo buffer any more)
It needs less resources (memory)
In fact, both the old and new method are available now. The new method is selected by setting
ytdl_direct_mode = True (which is the default value)
Setting it to "False" will tell the program to use the old method.
The second important change was required by recent changes in omxplayer. If you use kweb and omxplayer, to watch live TV streams (like I do), omxplayer needs other options (at least the "--live" option). So there are two arrays for omxplayer options now. To enable the live options, you will have to add the first part of the live TV url(s) to the live_tv list like this:
live_tv = ['http://192.168.0.5:9082
For this to work you'll need the latest omxplayer build from http://omxplayer.sconde.net
And I've also enabled the cookie support for downloads, as proposed by derekdhaas.
The new version can be downloaded from here
. After unpacking the archive, open a terminal, cd into the kwebhelper-1.2.5 folder and run:
This will replace the 1.2 versions of kwebhelper.py and kwebhelper_settings.py with the new 1.2.5 versions.