szymex / xbmc-finnish-tv

XBMC Video Plugins for playing Finnish television content containers.
GNU General Public License v3.0
31 stars 38 forks source link

Yle Areena can not play all content #72

Open jussike opened 9 years ago

jussike commented 9 years ago

Some videos are playable and some not. Error message: "One or more items failed to play. Check the log file for details."

Here is my kodi.log. It contains one success and one fail. My device is Raspberry Pi with latest Raspbmc build. https://db.tt/UWeHEKFh

szymex commented 9 years ago

Can you provide video title that did not work?

jussike commented 9 years ago

It's not difficult to find some video title which fails. In my log file, I used this path: Areena -> Programs -> Afrikan jako -> Afrikan jako

Similar failing item for example: Areena -> Programs -> 10 kirjaa rikoksesta -> 10 kirjaa rikoksesta episode 10.

In my log, successfully played title was Kaukasia 30 päivässä, episode 3. Issue is consistent between tries. Probably the plugin uses too old version of yle-dl library...?

szymex commented 9 years ago

I could not reproduce your problem. I was able to play both videos with Kodi on Windows and Raspberry PI.

jussike commented 9 years ago

That's little weird. These videos can be played on OS X too. Then I found title "Alamaailma" which stops every time after one second on OS X but works well on Raspberry Pi. I could try to debug that problem on Raspberry Pi when I have some time... Which distro and kodi version you have on Pi?

szymex commented 9 years ago

I use latest OpenELEC 5.0.0.

hemuli commented 9 years ago

Having the same yle areena issue with raspberry pi and latest raspbmc build running kodi (24 Dec 2014). Only programs marked as "viewable abroad" work. No similar issues with openelec though, but cannot use it for other hw compatibility issues.

szymex commented 9 years ago

Are you using it from abroad?

hemuli commented 9 years ago

Nope, I'm in Finland for sure. Also my dsl provider is one of the biggest ones. There was an update to raspbmc and kodi last night but no change to this. It's consistently refusing to play all areena contents which are for domestic use only. Strange.

szymex commented 9 years ago

That's weird. Are you able to play yle-areena videos from same computer through browser? Could there be some proxy configured?

hemuli commented 9 years ago

It's pretty vanilla raspbmc install on raspberry pi, so no browser option unfortunately. Most settings are default values. On same hw latest openelec works fine. But cannot use it as primary system due to hw compatibility issues.

Could there be differences in python-crypto versions (I used apt-get to install it). It's just about the only additional bit I've installed.

hemuli commented 9 years ago

I may have found a fix to the issue - changed line 75 in yleareena.py to "useSocks = int(settings.getSetting('socks-use'))" and now can stream all areena content without problems.

jussike commented 9 years ago

This really fixes the problem, thank you :) Python thinks that "0" > 0.

But casting to int is better to do after this if-block if useSocks == 'no':

hemuli commented 9 years ago

Fair point, this was quick 'n dirty :-)

anttitelio commented 9 years ago

Err, could you elaborate that, please? I can't get the fix working. The plugin works just as bad as before the change.

jussike commented 9 years ago

I'm using this simple patch.

--- yleareena.py.original   2015-02-15 22:51:50.221594305 +0200
+++ yleareena.py.patched    2015-02-15 22:53:00.298316393 +0200
@@ -76,6 +76,7 @@
    if useSocks == 'no':
        useSocks = 0

+   useSocks = int(useSocks)
    if useSocks > 0 and ( (clip != None and clip['international'] == False) or useSocks == 1):
        rtmpUrl += " socks=%s" % settings.getSetting('socks-server')
nuija1977 commented 9 years ago

For me patch above does not fix anything. Some videos work, some don't. For example all episodes of "Erikoisosasto Stuttgart" work, but none of the episodes of "Erämaan armoilla" work. No proxy is used. Videos work fine when using android tablet. (Same network)

Setup: Raspberry Pi + Raspbmc Yle areena plugin 1.7.2

anttitelio commented 9 years ago

I get the same results with those episodes and the patch.

RPi model B, OpenElec 5.0.3, Yle Areena plugin 1.7.2, Outside Finland = no, Use a SOCKS proxy = no.

amergin commented 9 years ago

Another example of content that cannot be played: Outlander - Matkantekijä (16) #13 (Script failed).

bzar commented 8 years ago

Ran into this today with the latest Uutisvuoto. Looking at the log it tried to use localhost:1080 as SOCKS proxy for some videos. Fixed like others have here, by casting useSocks to int before use.