[RELEASE] SF Videoportal Addon
#16
I've been a happy user for some time, but the SF VideoPortal source has changed recently. The plugin does not work anymore.

Skandi, are you looking at it? ...I've forked the addon source on github ( https://github.com/skandi/xbmc-addon-sfvideoportal ) and I'll have a quick look at it myself. Please tell me if you're already working on it.

Greetings from Jona
marbot

Edit: fixed link.
Reply
#17
page not found problem
Reply
#18
Hi there

I just finished fixing the addon. The source is on github, here.

Unfortunately, I have not been able to contact andi (skandi), so I cannot "officially" release the addon through automated update.

If you want to use the new version, simply copy the "videoportal.py" script your XBMC/addons/plugin.video.sf-videoportal folder, replacing the old version.

Greetings from Jona & schöni Wiehnachtä

marbot
Reply
#19

hey all,

had a very busy christmas time, there was no time left to take care of the new srf website.
marbot, thank you very much for your work, I will pull your patch, do a short review, and release a new version in the next days. stay tuned.

cheers,
skandi
mindmade XBMC Addons repository:
http://www.mindmade.org/xbmc.php
Reply
#20
Wink 
new working version 0.6.0 is out. Big Grin

big credits go to marbot who did the actual work of reverse engineering the new website structure. thank you.

cheers,
skandi
mindmade XBMC Addons repository:
http://www.mindmade.org/xbmc.php
Reply
#21
Can it be, that "Sendung verpasst?" doesn't work anymore? It used to have troubles before, but now I just get an empty list with every day. Rest works like a charm though.
Reply
#22
hi frozenbubbl,

you're right. with the last update, "Sendung verpasst?" lost a bit of its capabilities.
currently, only shows that where broadcasted within the last 10 days are browseable.
a fix is in progress...

cheers, skandi
mindmade XBMC Addons repository:
http://www.mindmade.org/xbmc.php
Reply
#23
Hi skandi

Your addon worked with Eden for me perfect. Thank you for your effort. Now with Frodo the addon generate the error "Script-Fehler!:videoportal.py"

Here is the log:
Code:
11:29:15 T:4328  NOTICE: Thread XBPyThread start, auto delete: false
11:29:15 T:3812   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
11:29:15 T:4328  NOTICE: -->Python Interpreter Initialized<--
11:29:15 T:6252  NOTICE: Thread Background Loader start, auto delete: false
11:29:18 T:4900  NOTICE: Thread Jobworker start, auto delete: true
11:29:18 T:6432  NOTICE: Thread XBPyThread start, auto delete: false
11:29:18 T:6432  NOTICE: -->Python Interpreter Initialized<--
11:29:18 T:6432  NOTICE: ### fetchHttp(GET): http://www.srf.ch/player/tv/sendungen
11:29:19 T:5528  NOTICE: Thread Background Loader start, auto delete: false
11:29:21 T:4952  NOTICE: Previous line repeats 1 times.
11:29:21 T:4952  NOTICE: Thread XBPyThread start, auto delete: false
11:29:22 T:4952  NOTICE: -->Python Interpreter Initialized<--
11:29:22 T:4952  NOTICE: ### fetchHttp(GET): http://www.srf.ch//player/tv/sendung/10vor10
11:29:22 T:4952  NOTICE: ### args: {'id': 'c38cc259-b5cd-4ac1-b901-e3fddd901a3d'}
11:29:22 T:4952   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 "C:\Users\dachwasser\AppData\Roaming\XBMC\addons\xbmc-addon-sfvideoportal-master\videoportal.py", line 311, in <module>
                                                ok = show_sendung(params)
                                              File "C:\Users\dachwasser\AppData\Roaming\XBMC\addons\xbmc-addon-sfvideoportal-master\videoportal.py", line 214, in show_sendung
                                                title = show.find( "div", "title").text
                                            AttributeError: 'NoneType' object has no attribute 'text'
                                            -->End of Python script error report<--
11:29:22 T:3812   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.sf-videoportal/?id=c38cc259-b5cd-4ac1-b901-e3fddd901a3d&mode=sendung&title=10vor10&url=%2fplayer%2ftv%2fsendung%2f10vor10%3fid%3dc38cc259-b5cd-4ac1-b901-e3fddd901a3d
11:29:22 T:3812   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sf-videoportal/?id=c38cc259-b5cd-4ac1-b901-e3fddd901a3d&mode=sendung&title=10vor10&url=%2fplayer%2ftv%2fsendung%2f10vor10%3fid%3dc38cc259-b5cd-4ac1-b901-e3fddd901a3d) failed
11:29:22 T:2604  NOTICE: Thread XBPyThread start, auto delete: false
11:29:22 T:2604  NOTICE: -->Python Interpreter Initialized<--
11:29:22 T:2604  NOTICE: ### fetchHttp(GET): http://www.srf.ch/player/tv/sendungen
11:29:23 T:5764  NOTICE: Thread Background Loader start, auto delete: false
11:29:26 T:3800  NOTICE: Previous line repeats 1 times.
11:29:26 T:3800  NOTICE: Thread Jobworker start, auto delete: true
11:29:26 T:1820  NOTICE: Thread CFileCache start, auto delete: false
11:29:28 T:776  NOTICE: Thread Jobworker start, auto delete: true
11:29:29 T:1404  NOTICE: Previous line repeats 1 times.
11:29:29 T:1404  NOTICE: Thread CFileCache start, auto delete: false

I think with Frodo came some changes for the addons. Hope you can help and update your addon.

greetings
dachwasser
Reply
#24
(2013-04-05, 11:45)dachwasser Wrote: Hi skandi

Your addon worked with Eden for me perfect. Thank you for your effort. Now with Frodo the addon generate the error "Script-Fehler!:videoportal.py"

Here is the log:
Code:
11:29:15 T:4328  NOTICE: Thread XBPyThread start, auto delete: false
11:29:15 T:3812   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
11:29:15 T:4328  NOTICE: -->Python Interpreter Initialized<--
11:29:15 T:6252  NOTICE: Thread Background Loader start, auto delete: false
11:29:18 T:4900  NOTICE: Thread Jobworker start, auto delete: true
11:29:18 T:6432  NOTICE: Thread XBPyThread start, auto delete: false
11:29:18 T:6432  NOTICE: -->Python Interpreter Initialized<--
11:29:18 T:6432  NOTICE: ### fetchHttp(GET): http://www.srf.ch/player/tv/sendungen
11:29:19 T:5528  NOTICE: Thread Background Loader start, auto delete: false
11:29:21 T:4952  NOTICE: Previous line repeats 1 times.
11:29:21 T:4952  NOTICE: Thread XBPyThread start, auto delete: false
11:29:22 T:4952  NOTICE: -->Python Interpreter Initialized<--
11:29:22 T:4952  NOTICE: ### fetchHttp(GET): http://www.srf.ch//player/tv/sendung/10vor10
11:29:22 T:4952  NOTICE: ### args: {'id': 'c38cc259-b5cd-4ac1-b901-e3fddd901a3d'}
11:29:22 T:4952   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 "C:\Users\dachwasser\AppData\Roaming\XBMC\addons\xbmc-addon-sfvideoportal-master\videoportal.py", line 311, in <module>
                                                ok = show_sendung(params)
                                              File "C:\Users\dachwasser\AppData\Roaming\XBMC\addons\xbmc-addon-sfvideoportal-master\videoportal.py", line 214, in show_sendung
                                                title = show.find( "div", "title").text
                                            AttributeError: 'NoneType' object has no attribute 'text'
                                            -->End of Python script error report<--
11:29:22 T:3812   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.sf-videoportal/?id=c38cc259-b5cd-4ac1-b901-e3fddd901a3d&mode=sendung&title=10vor10&url=%2fplayer%2ftv%2fsendung%2f10vor10%3fid%3dc38cc259-b5cd-4ac1-b901-e3fddd901a3d
11:29:22 T:3812   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sf-videoportal/?id=c38cc259-b5cd-4ac1-b901-e3fddd901a3d&mode=sendung&title=10vor10&url=%2fplayer%2ftv%2fsendung%2f10vor10%3fid%3dc38cc259-b5cd-4ac1-b901-e3fddd901a3d) failed
11:29:22 T:2604  NOTICE: Thread XBPyThread start, auto delete: false
11:29:22 T:2604  NOTICE: -->Python Interpreter Initialized<--
11:29:22 T:2604  NOTICE: ### fetchHttp(GET): http://www.srf.ch/player/tv/sendungen
11:29:23 T:5764  NOTICE: Thread Background Loader start, auto delete: false
11:29:26 T:3800  NOTICE: Previous line repeats 1 times.
11:29:26 T:3800  NOTICE: Thread Jobworker start, auto delete: true
11:29:26 T:1820  NOTICE: Thread CFileCache start, auto delete: false
11:29:28 T:776  NOTICE: Thread Jobworker start, auto delete: true
11:29:29 T:1404  NOTICE: Previous line repeats 1 times.
11:29:29 T:1404  NOTICE: Thread CFileCache start, auto delete: false

I think with Frodo came some changes for the addons. Hope you can help and update your addon.

greetings
dachwasser

The Problem is on line 214 in videoportal.py:

Code:
title = show.find( "div", "title").text

It seems this div tag no longer exists in the web source... If you delete it and the variable title in line 219:

Code:
addDirectoryItem( ITEM_TYPE_VIDEO, title + " " + titleDate, {PARAMETER_KEY_MODE: MODE_PLAY, PARAMETER_KEY_ID: id }, image)

, the plugin works again.
Reply
#25
Hi all

SRF changed their homepage once again, and I fixed the plugin (once again). The fixed videoportal.py python script is in my GitHub repository, here. Download it, replace your videoportal.py file with it, and the AddOn should work again.

I did not fix the "Themen", as it is nearly the same as "Sendungen nach Thema".

Enjoy!

marbot
Reply
#26
Hi marbot

Because of the problems i had with it, i deinstalled and deleted all about the sf videoportal addon.
Now when trying to install fresh from your git https://github.com/marbot/xbmc-addon-sfvideoportal i get the error "abhängigkeit nicht erfüllt".
I am on frodo 12.1.

dachwasser
Reply
#27
Any chance we could get some of the "Most Viewed" "Latest" "Currently Watched" categories? I'm no expert but it looks like they could be parsed from there:

http://www.srf.ch/player/tv/carouselvide.../mostviews
http://www.srf.ch/player/tv/carouselvideosajax/latest
http://www.srf.ch/player/tv/carouselvide...tlywatched
http://www.srf.ch/player/tv/carouselvideosajax/last24h
http://www.srf.ch/player/tv/carouselvide...lastchance
Reply
#28
It looks like srf completely switched to adobe hds now (and added 720p streams). Rendering the addon unusable in the process. Sad

I would guess you need a major rewrite to make this work again, there where some discussions about hds back when the bbc streamed olympia maybe you can find some inspiration there:

bluecops hds proxy http://forum.xbmc.org/showthread.php?tid=137245
bbc sports addon: http://code.google.com/p/bbcsports-addon/downloads/list
olympics discussion: http://forum.xbmc.org/showthread.php?tid=131525 (gets interesting a few pages in)

and ksv's hds downloader: http://stream-recorder.com/forum/adobe-h...14823.html You can download the srf hds streams with that, so in theory we should be able to play in xbmc too, at least some of the discussion in the olympics thread makes me believe so.

edit: I see marbot already worked on an update, will test that now https://github.com/marbot/xbmc-addon-sfv...its/master
edit2: It works! yay! If you're looking at this marbot, any chance on making my request in the post before possible?
Reply
#29
hi there!

i still get a error in videoportal.py....anyone else so?

cheers
Reply
#30
Get the update from marbot's git until it's fixed on the main repo: https://github.com/marbot/xbmc-addon-sfvideoportal
Reply

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