Hi everyone
[/code]I'm afraid this won't be an easy fix this time.
The problem is, technically speaking, that the SRF-Portal is now generating content with JavaScript, on which we don't have access in the plugin, as the plugin simply gets the "base" html without javascript-generated content. Instead of being in the base html, the video links are now in the javascript-generated part, so it is not possible to get them with BeautifulSoup from Python.
However, I have a working solution on my Ubuntu installation, but it's a real hack. I modified the plugin script to "run" the javascript stuff using selenium and PhantomJS before downloading the html. In order to work, I had to install python-selenium on my ubuntu system, and download PhantomJS.
To all Xbmc-Devs out there: is there a way to "force" the installation of a python library, as I did per hand? The documentation of addon-dependencies isn't clear on this subject.
Anyway, this is working for me,
based on an XBMCbuntu install:
- Connect to your box by SSH
- Install the python setuptools:
Code:
sudo apt-get install python-setuptools python-dev build-essential
- Install pip:
Code:
sudo easy_install pip
- Install selenium:
Code:
sudo pip install selenium
- Download the suitable PhantomJS zip from
http://phantomjs.org/download.html
- Open the zip, and extract the /bin/phantomjs file.
- Depose the phantomjs file to the plugin resources directory ( /home/marbot/.kodi/addons/plugin.video.sf-videoportal/resources in my case)
- Finally, replace the videoportal.py file with the one from my github-repo:
https://github.com/marbot/xbmc-addon-sfv...oportal.py
The fix only works for the "Sendung verpasst"-Stuff, for some reason... It's more of a workaround until someone comes up with a better solution.
Cheers from Rapperswil
marbot