[RELEASE] SF Videoportal Addon
#46
Merci viel mol.

Thanks a lot for this.

Live abroad since over 4 years (in Bali currently) and really enjoy to watch some swiss TV again in my living room.
Too bad that internet here is soooo slow that I can not stream the 720p streams.

Thanks again and keep up the good work
Reply
#47
In case anyone is interested. Find a quick write up about the details of the SRF website.
There's a slightly altered version there as well, that includes the previous month(s) of any show.

Github

I recently saw, that there's another plugin out there, that parses the podcast streams. Just in case anyone is missing something.
Reply
#48
Sadly this broke with the latest rebrand of the srf videoportal to "play". Any chance of an update? I do miss it already. Smile
Reply
#49
This one is working for me right now: http://kodi.wiki/view/Add-on:SRF_Podcast_Plugin

I'm trying to get the other one working. There are several changes. For one it is the site, which changed, that I was able to fix. On the other hand also streaming changed. Still trying to figure out where to get the streaming URL from.

Ok, acutually I found it, it's in the header as tag
Code:
<meta property="og:video:secure_url" content="https://tp.srgssr.ch/p/flash?urn=urn:srf:ais:video:ac4d9dfe-4601-4fcd-9483-8cef9f46e902" />
Reply
#50
Thanks a lot, I always thought they had rather limited podcast content, but from a quick glance it looks like the most important stuff is there. Will be good enough to get me through the broken time of this addon. Big Grin
Reply
#51
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
Reply
#52
Thanks marbot, that works for me on ubuntu. Smile
Reply
#53
(2015-01-31, 21:29)marbot Wrote: 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.

You can actually construct the address yourself from the javascript part.
This shows you about 8 episodes of Aeschbacher starting from today. Scrapes exactly the same way as before(except you have to jump to the next <a href>.
http://www.srf.ch/play/tv/episodesfromsh...geNumber=1
The ID is the same as before, too. I guess you figured that out yourself. But I think it breaks right after the Episode "Heimatland". I guess this is when they introduced the new mechanism in the back.

From there you can extract the URN for the streaming content. But it would actually require you to load each episode individually, which costs a lot of time. But I don't know how to play that URN. It plays fine in the browser. So therefore I would actually try to extract the "Save" link to play. This way you can go back in time (which is an advantage over the Podcast Plugin)
Reply
#54
Hi all,

Some months before the rebrand to "play" I attended the "SRF Hackdays" where I got access to SRFs so called "integration layer". A JSON-based interface that provides most of the meta information we need to browse through their content.

I at some point did start to rewrite the plugin, basic stuff works, but it's not in a releasable state. As soon as I think it's ok to go public, I'll release a new plugin version. Maybe I even rebrand the plugin (to SRF Play) too since most "under the hood" stuff will change.

Stay tuned! Please do not send me E-Mails regarding the currently broken plugin. I'm aware of that. If you want to tell me how important it is to get a fixed plugin soon, write here. Or even consider clicking the "Donate" button on my website Wink.
The same applies, if you know of a functionality you always missed in the "old" plugin. Now is a good time to tell me.

Regards,
skandi
mindmade XBMC Addons repository:
http://www.mindmade.org/xbmc.php
Reply
#55
Great to hear, one thing I'd like as a feature would be the "most viewed" and "latest" categories. (There's also one for added in the "last 24h" and "soon offline" using the same system). With those you get a lot of the smaller clips that get added to random articles and never show up in one of the usual main series running on tv.

http://www.srf.ch/play/tv/carouselvideos...bcontainer
http://www.srf.ch/play/tv/carouselvideos...bcontainer

http://www.srf.ch/play/tv/carouselvideos...=startpage
http://www.srf.ch/play/tv/carouselvideos...=startpage
Reply
#56
There is a working alternative here:

https://bitbucket.org/basrieter/xbmc-onl...7/play-srf
Reply
#57
Official version released (containing SRF.ch)

http://www.rieter.net/content/
Reply
#58
Nevermind it wasnt you who postet the links sorry.


Hallo

hab auch auf n fix für das Addon gewartet, dem Link nach zu urteilen is da etzt aber was anderes draus geworden?
Legst Du noch n SRF-Play Addon nach? Wär angenehm zB. wieder Meteo zu gucken wann ich grad lust hab.

mfG.

English:

Hello

Did also wait for a Fixed SRF Play Addon, as it seems it become something different.
Will you Do a Fix for the SRF Addon as told before, or will what you have Postet compleatly replace the SRF Addon?, and there will be no "standalone" SRF-Player Addon available?

Regards.

(P.S.: I knew the SRF Podcast Addon already, and it sadly doesnt serve allt the Content as the "old" SRF-Player Addon does.)
Reply
#59
Hi all,

Initially I wanted to stop updating this plugin and go for the new "srf play" implementation.
Regrettably I find much less spare-time for development than I expected and therefore I decided to push out another fix for the current SRF Videoportal Addon.

Version 0.7.2 was released about 10 minutes ago. Enjoy!
The actual work was done by a friend of mine, thank you chitz!

Regards,
skandi
mindmade XBMC Addons repository:
http://www.mindmade.org/xbmc.php
Reply
#60
thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] SF Videoportal Addon1