I wrote my first Kodi video add on and everything works wonderfully. It navigates all the pages of the website it scrapes
finds all the videos etc. My issue is that the site doesn’t let you play videos if you don’t check a file called ad-preroll.html
first before playing a video. I have my add on check the link every time it generates a directory (listing of videos) so
everything works fine unless I use the play from here option where it plays videos one after another.
It will play a number of videos and then fail until I backspace to the previous pages then next again and start again
so the add on checks ad-preroll.html again. Is there a way I can set a command to run before the player
starts playing for example:
adspage = 'http://www.site.net/ad-preroll.html'
html = opener.open(adspage).read()