Kodi Community Forum
[RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins (/showthread.php?tid=144457)



RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - JPXNET - 2012-11-08

Quote:Yes I'm using Frodo. If a plugin doesn't work with it yet it's about time to start fixing it since Frodo will be released relatively soon.

Just thoughts...

1. Frodo isn't even Beta...yet...they start to fix it.
2. Is the problem Frodo or plugin?
3. If you use it, can you track it and correct?


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - szymex - 2012-11-08

I just tried with latest Frodo, and in general both plugins work but with some videos, xbmc freezes. From logs it looks like xbmc is in a middle of opening stream. Must be some issue with handling rtmp streams.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - piipes - 2012-11-09

I made those bug report 4.11

http://trac.xbmc.org/ticket/13495

http://trac.xbmc.org/ticket/13496

Maybe you can add comment, if you find same issue.
Fredo can't survive rtmp stream problem. It just hangs.
Does anybody have that other problem? Video jumps does not work with ruutu, video starts lags after seek.
szymex says, that jumping works ok with linux, but i have same problem with fredo and eden.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - krola - 2012-11-10

Great to have these addons! Thank you very much!

May I suggest that you add the line below at the beginning of methods handleSerie and handleLive in yleareena.py and at the beginning of listItems in ruutu.py. At least some skins will IMO work better with your plugin with this change.

xbmcplugin.setContent(int(sys.argv[1]), 'episodes')

This will make the media info view available in Confluence and it will also help the Aeon Mq3 Large List view to show the thumbnail correctly. These views show both the program description and thumbnail while browsing programs.

If you don't understand what I am trying to say, please send me a private message. I can email you a screen shot.






RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - szymex - 2012-11-11

(2012-11-10, 23:04)krola Wrote: May I suggest that you add the line below at the beginning of methods handleSerie and handleLive in yleareena.py and at the beginning of listItems in ruutu.py. At least some skins will IMO work better with your plugin with this change.

xbmcplugin.setContent(int(sys.argv[1]), 'episodes')

Thanks, I will add it.
Those ideas are always welcome Smile.



RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - szymex - 2012-11-11

I made changes suggested by krola.
In also I made repository so updates will come automatically from now on.



RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - User 34959 - 2012-11-12

(2012-11-06, 23:03)szymex Wrote: For areena you need to install pycrypto.

Are you sure about this? Home come the plugins works on Win7, as far as i can tell pycrypto isn't included with OS? I already tried compiling and installing the pycrypto for OSX but it didn't do any good..

I don't code but it looks to me this if statement needs to be changed to check if we are using OSX.

Code:
#for windows add Crypto module folder
if sys.platform == 'win32':
    cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"win32")))
    if cmd_subfolder not in sys.path:
        sys.path.insert(0, cmd_subfolder)
    
try:
    #import yle-dl (version 2.0.1)
    yledl = __import__('lib.yle-dl', globals(), locals(), ['yle-dl'], -1)[/php]



RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - User 34959 - 2012-11-12

(2012-11-12, 12:08)toiva Wrote:
(2012-11-06, 23:03)szymex Wrote: For areena you need to install pycrypto.

Are you sure about this? Home come the plugins works on Win7, as far as i can tell pycrypto isn't included with OS? I already tried compiling and installing the pycrypto for OSX but it didn't do any good..

I don't code but it looks to me this if statement needs to be changed to check if we are using OSX.

Code:
#for windows add Crypto module folder
if sys.platform == 'win32':
    cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"win32")))
    if cmd_subfolder not in sys.path:
        sys.path.insert(0, cmd_subfolder)
    
try:
    #import yle-dl (version 2.0.1)
    yledl = __import__('lib.yle-dl', globals(), locals(), ['yle-dl'], -1)[/php]

sys.platform returns "darwin" for osx, so i copied the win32 directory and renamed it to darwin. I changed if statement to check for darwin and now it doesn't complain about crypto module anymore but

Code:
ERROR: cannot import name _AES

Huh


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - szymex - 2012-11-12

(2012-11-12, 12:08)toiva Wrote:
(2012-11-06, 23:03)szymex Wrote: For areena you need to install pycrypto.

Are you sure about this? Home come the plugins works on Win7, as far as i can tell pycrypto isn't included with OS? I already tried compiling and installing the pycrypto for OSX but it didn't do any good..

I don't code but it looks to me this if statement needs to be changed to check if we are using OSX.

Code:
#for windows add Crypto module folder
if sys.platform == 'win32':
    cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"win32")))
    if cmd_subfolder not in sys.path:
        sys.path.insert(0, cmd_subfolder)
    
try:
    #import yle-dl (version 2.0.1)
    yledl = __import__('lib.yle-dl', globals(), locals(), ['yle-dl'], -1)[/php]

OK, pycrypto for windows is included so there is no need for other installation (I just copied it from my installation). In fact, XBMC is running it's own python that is Independt from what is installed in OS
Now I need somebody with OSX to install pycrypto and send me installation files. In windows it was under: C:\Python26\Lib\site-packages\. It needs to be done this way because they are compiled for different platforms.
In code, I will then add new checking for OSX and import proper pycrypto.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - szymex - 2012-11-12

(2012-11-12, 18:22)toiva Wrote: sys.platform returns "darwin" for osx, so i copied the win32 directory and renamed it to darwin. I changed if statement to check for darwin and now it doesn't complain about crypto module anymore but

Code:
ERROR: cannot import name _AES

Huh

You can not just use same library as for win32. You have to use those from OSX because of OS depended compilation.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - User 34959 - 2012-11-12

I will compile pycrypto as soon as the xcode download finishes, should not take more than 15 minutes


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - User 34959 - 2012-11-12

(2012-11-12, 18:51)toiva Wrote: I will compile pycrypto as soon as the xcode download finishes, should not take more than 15 minutes

http://dl.dropbox.com/u/6561811/Crypto.zip

I copied it manually to addon dir and was able to watch videos.

Pycrypto version is 2.6 and was compiled on Python 2.7.2.



RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - szymex - 2012-11-12

(2012-11-12, 19:13)toiva Wrote:
(2012-11-12, 18:51)toiva Wrote: I will compile pycrypto as soon as the xcode download finishes, should not take more than 15 minutes

http://dl.dropbox.com/u/6561811/Crypto.zip

I copied it manually to addon dir and was able to watch videos.

Pycrypto version is 2.6 and was compiled on Python 2.7.2.

OK, I added. Let me know if it works. Get latest from here:
https://github.com/szymex/xbmc-finnish-tv


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - pumo - 2012-11-12

I installed finnish tv to my raspberry which is running openelec.
ruutu works but areena not, it tells that no module named crypto.cipher.
any idea how to add it ?

edit: with 1.0 ruutu worked with openelec but not anymore with 1.2


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - User 34959 - 2012-11-13

(2012-11-12, 19:35)szymex Wrote:
(2012-11-12, 19:13)toiva Wrote:
(2012-11-12, 18:51)toiva Wrote: I will compile pycrypto as soon as the xcode download finishes, should not take more than 15 minutes

http://dl.dropbox.com/u/6561811/Crypto.zip

I copied it manually to addon dir and was able to watch videos.

Pycrypto version is 2.6 and was compiled on Python 2.7.2.

OK, I added. Let me know if it works. Get latest from here:
https://github.com/szymex/xbmc-finnish-tv

It works thanks.

Here are new addon icons for both, they need to be 256x256 pixels as per official addon guidelines

http://personal.inet.fi/private/ato/ruutu.png
http://personal.inet.fi/private/ato/areena.png