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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - laurent-c - 2016-03-18

Hi,

Do the translation work for every body?
Actually, I configure the add-on in Finnish but it is still in English.
Maybe do I need to install full Finnish pack for Kodi?

EDIT: I found out.
It's because my Kodi is configured in French. So, it doesn't want to put me the add-on in Finnish but in English by default.
If I change to Finnish the configuration of my media center, no problem. All is in the good language.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - teemue - 2016-03-18

I can't access any category.

Code:
19:10:25 T:123145306673152   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\xe4' in position 4: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/Users/teemu/Library/Application Support/Kodi/addons/plugin.video.areena/main.py", line 775, in <module>
                                                router(sys.argv[2][1:])
                                              File "/Users/teemu/Library/Application Support/Kodi/addons/plugin.video.areena/main.py", line 724, in router
                                                list_streams(sub_categories, streams, url)
                                              File "/Users/teemu/Library/Application Support/Kodi/addons/plugin.video.areena/main.py", line 262, in list_streams
                                                get_translation(32055), light_tag_close))
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 4: ordinal not in range(128)
                                            -->End of Python script error report<--



RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - hirsivaja - 2016-03-18

(2016-03-18, 19:11)teemue Wrote: I can't access any category.

Yep, forgot to test with Finnish language and some encoding issues were left in the code. Uploaded a new version that I tested also with Finnish language.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - teemue - 2016-03-18

Thanks, it works.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - iikkak - 2016-03-19

RasPi 2, kodi 17 alpha #1204, 04-Dec-2015 , newest version.

I get the yle areena api error, i have the api-avaimet -thing done and i input all the keys there, they should be correctly inputted.

what debug file i should put in here?

any idea if this works with kodi 17 and raspberry pi 2?


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - Huxely - 2016-03-19

You should enable the debuggin on both Kodi settings and in the API plugin settings and then produce the error. After that the relevant error can be found in the Kodi.log. Below is the link to general Kodi guide where to find the log and where to paste it to others to read if you cant find the few specific lines where the error occurs. Do not paste the full log here as it is too big.

http://kodi.wiki/view/Log_file/Advanced


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - ikke-t - 2016-03-19

(2016-03-19, 00:34)iikkak Wrote: RasPi 2, kodi 17 alpha #1204, 04-Dec-2015 , newest version.

any idea if this works with kodi 17 and raspberry pi 2?

I use it on raspi2 with XBian, which is great Kodi distro for raspies. Have a try, I do recommend. I don't remember now the Kodi release, it's always very recent.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - ikke-t - 2016-03-19

http://www.xbian.org


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - durhamwasp - 2016-03-28

So, does the original post step by step guide, still work for getting Areena and Ruutu? kiitos


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - Huxely - 2016-03-29

As far as I know, the original unofficial method does not work anymore, because Yle and Nelonen changed something. The current method for Yle Areena is discussed from page 28 onwards and is based on the official Yle API that should be supported in the future, but requires you to register Yle account and request your own API-keys to use. You can download the latest plugin by selecting download zip from Hirsivajas github page

https://github.com/hirsivaja/plugin.video.areena

And I think nobody has done anything for the new Ruutu version, so I think the old version does not work.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - teepean - 2016-04-01

I have a sort of working version of Ruutu. Only sports isn't working afaik. Maybe hirsivaja could take a look?

https://github.com/teepean/xbmc-finnish-tv/tree/new-ruutu-addon


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - hirsivaja - 2016-04-01

(2016-04-01, 20:53)teepean Wrote: I have a sort of working version of Ruutu. Only sports isn't working afaik. Maybe hirsivaja could take a look?

https://github.com/teepean/xbmc-finnish-tv/tree/new-ruutu-addon
Nice work. I quickly tested your fix and most of the programs were indeed working.

When I tried to see "Children's programs" category the plugin threw an error.
File "plugin.video.ruutu/ruutu.py", line 474, in scrapCategory
seriesId = bs.find('div', attrs={ 'data-content-id': True }).get('data-content-id')
AttributeError: 'NoneType' object has no attribute 'get'

I tried a few sports program (ice hockey and rally) and they seemed to work.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - teepean - 2016-04-01

(2016-04-01, 21:27)hirsivaja Wrote:
(2016-04-01, 20:53)teepean Wrote: I have a sort of working version of Ruutu. Only sports isn't working afaik. Maybe hirsivaja could take a look?

https://github.com/teepean/xbmc-finnish-tv/tree/new-ruutu-addon
Nice work. I quickly tested your fix and most of the programs were indeed working.

When I tried to see "Children's programs" category the plugin threw an error.
File "plugin.video.ruutu/ruutu.py", line 474, in scrapCategory
seriesId = bs.find('div', attrs={ 'data-content-id': True }).get('data-content-id')
AttributeError: 'NoneType' object has no attribute 'get'

I think the category number might be wrong but I have no idea where to get the correct one.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - teepean - 2016-04-03

I found a correct category number for children's programs and added couple of new ones. The categories can be found from here:

http://structure-api.ruutu.fi/api/components/?clients=ruutufi&page_id=203&override_x-ua

But for some reason the main category for children doesn't work even when the link opens when using a web browser.

http://www.ruutu.fi/component/670/update?has_episode_videos=1&internalclass=2&orderby=ruutu&order_direction=desc&internalsubclass=1&limit=100


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - ikke-t - 2016-04-04

Hi,

how do you have Ruutu working? I'm running Xbian on RasPi2 with recent Kodi (16). I just git cloned teepean github repo, and copied the files over the default finnish-tv plugin ruutu addon directory. It doesn't show any programs in Ruutu menues Sad The categories like latest, favorites... show ok, but nothing behind the menues.

What could I be missing? This is all that gets into kodi.log

------------------------------------
20:12:23 290.153931 T:1544549296 NOTICE: >>> Running in Python 2.7.9 (default, Mar 1 2015, 14:07:13)
[GCC 4.9.2]
20:12:24 291.502258 T:1544549296 WARNING: CPythonInvoker(8, /home/xbian/.kodi/addons/plugin.video.ruutu/ruutu.py): the python script "/home/xbian/.kodi/addons/plugin.video.ruutu/ruutu.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE

------------------------------------