[RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins

  Thread Rating:
  • 5 Votes - 3.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
PasiZ Offline
Junior Member
Posts: 25
Joined: Nov 2010
Reputation: 1
Post: #301
(2014-08-27 14:21)juse Wrote:  How about katsomo and ruutu plugins are they working? At least most of the streams I've tried from katsomo have given me a script error.

In what platform, do you have logs of these events? How can I replicate this, could you name programs that i should try to play?

With Regards,

Pasi
find quote
shacal Offline
Junior Member
Posts: 2
Joined: Sep 2014
Reputation: 0
Post: #302
(2014-09-16 21:46)PasiZ Wrote:  
(2014-08-27 14:21)juse Wrote:  How about katsomo and ruutu plugins are they working? At least most of the streams I've tried from katsomo have given me a script error.

In what platform, do you have logs of these events? How can I replicate this, could you name programs that i should try to play?

With Regards,

Pasi

OpenElec, katsomo stopped working:

13:17:21 T:139841443362560 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomo.py", line 133, in <module>
katsomo.handle()
File "/storage/.xbmc/addons/plugin.video.katsomo/xbmcutil.py", line 54, in handle
self.playVideo(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/xbmcutil.py", line 72, in playVideo
resolvedVideoLink = self.handleVideo(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomo.py", line 97, in handleVideo
vid = self.scrapper.scrapVideoLink(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomoscraper.py", line 106, in scrapVideoLink
ret = str((common.parseDOM(response.read(), "source", {'type': 'video/mp4'}, ret="src"))[0]) + FFMPEG_PARAMETERS
IndexError: list index out of range
-->End of Python script error report<--

Not the most elegant way to parse?
ret = str((common.parseDOM(response.read(), "source", {'type': 'video/mp4'}, ret="src"))[0]) + FFMPEG_PARAMETERS

Should check the array length before using it.
(This post was last modified: 2014-09-22 12:53 by shacal.)
find quote
PasiZ Offline
Junior Member
Posts: 25
Joined: Nov 2010
Reputation: 1
Post: #303
(2014-09-22 12:44)shacal Wrote:  
(2014-09-16 21:46)PasiZ Wrote:  
(2014-08-27 14:21)juse Wrote:  How about katsomo and ruutu plugins are they working? At least most of the streams I've tried from katsomo have given me a script error.

In what platform, do you have logs of these events? How can I replicate this, could you name programs that i should try to play?

With Regards,

Pasi

OpenElec, katsomo stopped working:

13:17:21 T:139841443362560 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomo.py", line 133, in <module>
katsomo.handle()
File "/storage/.xbmc/addons/plugin.video.katsomo/xbmcutil.py", line 54, in handle
self.playVideo(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/xbmcutil.py", line 72, in playVideo
resolvedVideoLink = self.handleVideo(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomo.py", line 97, in handleVideo
vid = self.scrapper.scrapVideoLink(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomoscraper.py", line 106, in scrapVideoLink
ret = str((common.parseDOM(response.read(), "source", {'type': 'video/mp4'}, ret="src"))[0]) + FFMPEG_PARAMETERS
IndexError: list index out of range
-->End of Python script error report<--

Not the most elegant way to parse?
ret = str((common.parseDOM(response.read(), "source", {'type': 'video/mp4'}, ret="src"))[0]) + FFMPEG_PARAMETERS

Should check the array length before using it.

What connection you are using? Must also expect something from katsomo servers. What to do if array is empty? Tell you that you have buggy internet connection or katsomo have difficulties?

I'm open to suggestions what we should do about it? Try catch block or what you prefer?
find quote
Trasher83 Offline
Junior Member
Posts: 6
Joined: Jan 2013
Reputation: 0
Post: #304
Would It be possible to get Sonera Viihde working via an addon? Or the easy way, open for example internet explorer in fullscreen from within XBMC?
find quote
PasiZ Offline
Junior Member
Posts: 25
Joined: Nov 2010
Reputation: 1
Post: #305
(2014-09-22 17:17)Trasher83 Wrote:  Would It be possible to get Sonera Viihde working via an addon? Or the easy way, open for example internet explorer in fullscreen from within XBMC?

Maybe it is, i don't have subscription and not interested. And I guess there are some drm on that interface
find quote
shacal Offline
Junior Member
Posts: 2
Joined: Sep 2014
Reputation: 0
Post: #306
(2014-09-22 13:02)PasiZ Wrote:  What connection you are using? Must also expect something from katsomo servers. What to do if array is empty? Tell you that you have buggy internet connection or katsomo have difficulties?

I'm open to suggestions what we should do about it? Try catch block or what you prefer?

Elisa 100/100 broadway Wink (finland)

Best solution would be showing proper error, telling problem with inproper content or something like that. Wife is not happy with the script error.. and well, script error tells that script has problems...
Because, atm opening katsomo works, but that array is empty somedays because in that site is no any "source" with "%mp4%"..., why? I dont know.
Maybe some more logging also, that logs the content of the site, makes easier to debug and it more useful.
Some days it works and it is there, some days not... and it sucks...

Well, I think must make my hands dirty with this also... duh...
find quote
plait Offline
Junior Member
Posts: 2
Joined: Dec 2013
Reputation: 0
Location: Finland
Post: #307
Hi, thanks for the great plugins.

Is Ruutu working correctly? If I try to watch anything or even see a list of the episodes, for example >>Progams/Suomen Tulli, I just get an error message saying "Error 'NoneType' object has no attribute 'strip'."

The options Newest, Most watched, News, Sport, Kids and Food give an error "Error: Script failed! : Ruutu.fi"

I have tried reinstalling the plugin and also tried to install two of the previous versions as well but couldn't get the plugin to work with them either.
find quote
savis21 Offline
Junior Member
Posts: 10
Joined: May 2013
Reputation: 0
Post: #308
Hi, thanks for the great plugins from here too.

I have Raspberry PI B-model.
I use Gotham 13.2 with Openelec 4.2.0 and Yle Areena plugin starts playback video but after couple of minutes it stops. I can start it again but again it stops to play it again. Is this related to problem of http streams playback problem in openelec 4.2.0 generally or is this Yle Areena plugin problem. I will try to attach xbmc.log later if needed.

Does someone else have similar problem with openelec 4.2.0 and Yle Areena plugin? Openelec 4.0.7 and Gotham 13.1 worked fine.

http://openelec.tv/forum/124-raspberry-p...n-playback
http://openelec.tv/forum/124-raspberry-p...ttp-stream

EDIT: Hmm, I tried to debug this but somehow now it's working ok Blush So if problem still exists, I will get back to the issue.
(This post was last modified: 2014-10-01 16:57 by savis21.)
find quote
Wild Penguin Offline
Junior Member
Posts: 8
Joined: Jul 2013
Reputation: 0
Post: #309
Hi all,

Thanks for the great plugins!

I had problems (on Gentoo) using the YLE Areena plugin. Most users probably won't find the same issue, which was caused by my XBMC not being compiled with rtmp support (on Gentoo, rtmp use flag needs to be enabled). I was able to browse all the videos, but none would start or download. This is what I got on xbmc.log:

Code:
20:59:36 T:140619611617024 WARNING: CreateLoader - unsupported protocol(rtmp) in rtmp://cp215716.live.edgefcs.net/live playpath=yletv1rtmp@103056 swfUrl=http://areena.yle.fi/static/player/1.3.14/flowplayer/flowplayer.commercial-3.2.16-encrypted.swf app=live?_fcs_vhost=cp215716.live.edgefcs.net& live=1 pageUrl=http://areena.yle.fi/tv/suora/tv1 tcUrl=rtmp://92.123.155.199/live?_fcs_vhost=cp215716.live.edgefcs.net&
20:59:36 T:140619611617024   ERROR: Open - failed to open source <rtmp://cp215716.live.edgefcs.net/live playpath=yletv1rtmp@103056 swfUrl=http://areena.yle.fi/static/player/1.3.14/flowplayer/flowplayer.commercial-3.2.16-encrypted.swf app=live?_fcs_vhost=cp215716.live.edgefcs.net& live=1 pageUrl=http://areena.yle.fi/tv/suora/tv1 tcUrl=rtmp://92.123.155.199/live?_fcs_vhost=cp215716.live.edgefcs.net&>
20:59:36 T:140619611617024   ERROR: CDVDPlayer::OpenInputStream - error opening [rtmp://cp215716.live.edgefcs.net/live playpath=yletv1rtmp@103056 swfUrl=http://areena.yle.fi/static/player/1.3.14/flowplayer/flowplayer.commercial-3.2.16-encrypted.swf app=live?_fcs_vhost=cp215716.live.edgefcs.net& live=1 pageUrl=http://areena.yle.fi/tv/suora/tv1 tcUrl=rtmp://92.123.155.199/live?_fcs_vhost=cp215716.live.edgefcs.net&]
20:59:36 T:140619611617024  NOTICE: CDVDPlayer::OnExit()
20:59:36 T:140620950546304   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.yleareena/?view=video&link=http%3A%2F%2Fareena.yle.fi%2Ftv%2Fsuora%2Ftv1]

So, compiling with rtmp use flag solved the issue (on other distributions you probably have binary packages which should work, unless compiling xbmc by yourself, in which case you should look for librtmp or rtmpdump to get a working binary).

Just wanted to share here, since it might save someones time. It took me a while to figure it out, and Google didn't help me.

Cheers!
(This post was last modified: 2014-10-11 17:26 by Wild Penguin.)
find quote
mundus Offline
Junior Member
Posts: 19
Joined: Jul 2010
Reputation: 0
Post: #310
(2014-09-25 22:51)plait Wrote:  Is Ruutu working correctly? If I try to watch anything or even see a list of the episodes, for example >>Progams/Suomen Tulli, I just get an error message saying "Error 'NoneType' object has no attribute 'strip'."

The options Newest, Most watched, News, Sport, Kids and Food give an error "Error: Script failed! : Ruutu.fi"

I have now the same problem. Plugin worked on Ubuntu 12.04 but when I upgraded to 14.04 I the same error.

Code:
16:58:50 T:2639264576   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 'strip'
                                            Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/plugin.video.ruutu/ruutu.py", line 410, in <module>
                                                ruutu.handle()
                                              File "/home/xbmc/.xbmc/addons/plugin.video.ruutu/xbmcutil.py", line 65, in handle
                                                hdlFunc(int(pg), params)
                                              File "/home/xbmc/.xbmc/addons/plugin.video.ruutu/ruutu.py", line 306, in handleCategory
                                                items = scrapPager(link)
                                              File "/home/xbmc/.xbmc/addons/plugin.video.ruutu/ruutu.py", line 137, in scrapPager
                                                return scrapPagerContent(content)
                                              File "/home/xbmc/.xbmc/addons/plugin.video.ruutu/ruutu.py", line 155, in scrapPagerContent
                                                title = trimFromExtraSpaces(it.select('h2 a')[0].string)
                                              File "/home/xbmc/.xbmc/addons/plugin.video.ruutu/ruutu.py", line 143, in trimFromExtraSpaces
                                                text = text.strip().replace('\n', '')
                                            AttributeError: 'NoneType' object has no attribute 'strip'
                                            -->End of Python script error report<--
16:58:50 T:3001677632   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:58:50 T:2639264576 WARNING: CPythonInvoker(24, /home/xbmc/.xbmc/addons/plugin.video.ruutu/ruutu.py): the python script "/home/xbmc/.xbmc/addons/plugin.video.ruutu/ruutu.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
16:58:50 T:2639264576    INFO: Python script stopped
16:58:50 T:2639264576   DEBUG: Thread LanguageInvoker 2639264576 terminating
16:58:50 T:2765232960   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
16:58:50 T:3001677632   ERROR: GetDirectory - Error getting plugin://plugin.video.ruutu/?grouping=True&link=http%3a%2f%2fwww.ruutu.fi%2fviews_cacheable_pager%2fvideos%2fblock_2%3f​page%3d0%252C&pg=1&pg-size=10&view=category
16:58:50 T:3001677632   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.ruutu/?grouping=True&link=http%3a%2f%2fwww.ruutu.fi%2fviews_cacheable_pager%2fvideos%2fblock_2%3f​page%3d0%252C&pg=1&pg-size=10&view=category) failed
find quote
mundus Offline
Junior Member
Posts: 19
Joined: Jul 2010
Reputation: 0
Post: #311
(2014-10-12 17:02)mundus Wrote:  I have now the same problem. Plugin worked on Ubuntu 12.04 but when I upgraded to 14.04 I the same error.

I spent some time looking into this, but didn't figure it out. Seems to me that the html content that the plugin parses differs from the one I get with a browser. I printed out in the log the HTML and there all content was missing

What plugin gets
Code:
<h2 class="node-title">
                                             <a href="/ohjelmat/nfl/1210-live-seattle-seahawks-dallas-cowboys">
                                             </a>
                                            </h2>

And what browser gets
Code:
lass="node-title">

    <a href="/ohjelmat/nfl/1210-live-seattle-seahawks-dallas-cowboys">

        12.10. LIVE Seattle Seahawks - Dallas Cowboys

    </a>

</h2>

The content (title) seems not to be availabe for the plugin. I don't know what happens there, but when the plugin tries to parse the title it failes. There bunch of other stuff the plugin cannot read either.

Is this my configuration. Something with the library Beuatiful SOAP? Or something else?[/quote]
find quote
Post Reply