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 - Huxely - 2016-03-10

Mee tooo...

I can't find any videos that dont work anymore. Everything seems to work perfectly as long as the resolution is fixed (tested only 720). OE 6.0.3 legacy nvidia.

Absolutely splendid work hirsivaja and big thanks to all who have participated.


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

(2016-03-09, 23:42)hirsivaja Wrote: I updated to OpenElec 6.0.3 and was able to get all the videos working. This is fixed in the add-on version 2.2.0 . To get the videos working on OE 6.x change 'Max resolution' from Settings to something other than 'Automatic'.

Thanks for your work!

I'll try to create a reproducible bug report for Kodi.

EDIT: I tested 14.2, 15.2, 16.1 and 17.0 and only one that didn't work was 15.2. This was on Windows 10.


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

Good that fix is working with other people too.

(2016-03-10, 20:45)teepean Wrote: I'll try to create a reproducible bug report for Kodi.

EDIT: I tested 14.2, 15.2, 16.1 and 17.0 and only one that didn't work was 15.2. This was on Windows 10.

Are you saying that the plugin works with 16.1 and 17.0 with the Automatic resolution setting? That would be great. But I think Huxely posted logs in GitHub reporting that Kodi 17 did not work. Well it is of course possible that there are differences between OSes or something like that...


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

(2016-03-10, 21:40)hirsivaja Wrote: Good that fix is working with other people too.

(2016-03-10, 20:45)teepean Wrote: I'll try to create a reproducible bug report for Kodi.

EDIT: I tested 14.2, 15.2, 16.1 and 17.0 and only one that didn't work was 15.2. This was on Windows 10.

Are you saying that the plugin works with 16.1 and 17.0 with the Automatic resolution setting? That would be great. But I think Huxely posted logs in GitHub reporting that Kodi 17 did not work. Well it is of course possible that there are differences between OSes or something like that...

That is strange unless Openelec has a local patch that screws up cookie handling. I can't seem to find Milhouse's code from anywhere so I cannot check.

Maybe somebody could test different versions of Kodi on Linux?

EDIT: Found it

https://github.com/MilhouseVH/OpenELEC.tv


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

I only used OpenELEC versions, so the bug is found on kodi 15.2 on windows 10 by teepean and at least in OE 6.0.3 kodi 15.2 by me and hirsivaja and in OE 7 kodi 17 alpha by me. Maybe the bug was in the version 15.2 and is fixed in kodi by 16.1 and 17, but the fix was not in the OE millhouse build I tested. Should we look up the closed kodi bugs in 15.2 -> 16.1 upgrade?


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

I found this closed bug which points to the ffmpeg bug we discussed earlier.

http://trac.kodi.tv/ticket/16259


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

I tried few other Millhouse builds for OE, some with kodi 17 alpha and some with 16 beta and it seems that all OE versions after the 5.x have the bug.

Ps. when I posted logs of the OE8 kodi 17 alpha to Github about the bug, i noticed that the start of the log reads that the version of the Ffmpeg is unsupported (you can find it in the start of my later log paste).

12:23:10 14.333481 T:140607022979200 NOTICE: FFmpeg version: 2.8.6
12:23:10 14.333492 T:140607022979200 NOTICE: WARNING: unsupported ffmpeg version detected

Teepean posted only relevant parts of the log to Github, so I don't know if he got the same warning. Is it possible that the Ffmpeg in later OE builds is fixed, but the OE/Kodi somehow can't use the fixed part, because it is somehow unsupported?


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

(2016-03-09, 23:42)hirsivaja Wrote: I updated to OpenElec 6.0.3 and was able to get all the videos working. This is fixed in the add-on version 2.2.0 . To get the videos working on OE 6.x change 'Max resolution' from Settings to something other than 'Automatic'.
I was scratching my head with OSMC on RasPi as no videos would work. But changing the Max resolution fixed this also in my case.


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

@Poro, which version of kodi your Osmc installation has?


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

(2016-03-11, 19:31)Huxely Wrote: @Poro, which version of kodi your Osmc installation has?
Kodi 15.2.

Edit: Started to wonder why it was not 16.0. It seems that the automatic update has failed. I upgraded OSMC from command line and now Kodi is 16.0. I will report if there is something worth reporting about the Areena add on Smile


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

(2016-03-11, 12:43)Huxely Wrote: I tried few other Millhouse builds for OE, some with kodi 17 alpha and some with 16 beta and it seems that all OE versions after the 5.x have the bug.

Ps. when I posted logs of the OE8 kodi 17 alpha to Github about the bug, i noticed that the start of the log reads that the version of the Ffmpeg is unsupported (you can find it in the start of my later log paste).

12:23:10 14.333481 T:140607022979200 NOTICE: FFmpeg version: 2.8.6
12:23:10 14.333492 T:140607022979200 NOTICE: WARNING: unsupported ffmpeg version detected

Teepean posted only relevant parts of the log to Github, so I don't know if he got the same warning. Is it possible that the Ffmpeg in later OE builds is fixed, but the OE/Kodi somehow can't use the fixed part, because it is somehow unsupported?

I didn't get such error.

I decided to build Openelec from git so here it is if anyone wants to test it. I don't have time during the weekend. This version doesn't have any patches that Milhouse's version has.

https://mega.nz/#!WcwUhSAR!BwuzyoMTORqUVjqmKG1aDkUnHwSWXWi_4Kso9gzprf4


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

(2016-03-11, 18:49)Poro Wrote:
(2016-03-09, 23:42)hirsivaja Wrote: I updated to OpenElec 6.0.3 and was able to get all the videos working. This is fixed in the add-on version 2.2.0 . To get the videos working on OE 6.x change 'Max resolution' from Settings to something other than 'Automatic'.
I was scratching my head with OSMC on RasPi as no videos would work. But changing the Max resolution fixed this also in my case.
I have also OE 6.0.3 in my RPi2 and I tried with Max resolution=HD720. I put my appId, appKey and secretKey with Kodi GUI but I cannot stream Yle Areena programs still. I tried some children program, here is log part of it.

Code:
09:41:33 39704.238281 T:1679569984   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'utf8' codec can't decode byte 0xd2 in position 16: invalid continuation byte
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 751, in <module>
                                                router(sys.argv[2][1:])
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 703, in router
                                                play_stream(params['stream'])
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 319, in play_stream
                                                log("decrypted path: " + path)
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 40, in log
                                                txt = txt.decode("utf-8")
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi2.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
                                            UnicodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position 16: invalid continuation byte
                                            -->End of Python script error report<--
09:41:33 39704.335938 T:1967407104   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.areena/?action=play&stream=1-2158348]



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

I found a patch for ffmpeg master that fixes the issue with cookies. It has to be backported to ffmpeg 2.6.

https://github.com/FFmpeg/FFmpeg/commit/770dd105044d00263da041f509a08b316296a78e?diff=unified

EDIT: NVM, I am trying to get the functionality from ffmpeg 2.4.6 working with ffmpeg 2.6.4.


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

Hi,

Thank for the new API version. It works perfectly on my computer (Ubuntu) but I got error message when I try to use it on my new Android TV Box.
When I check the log file, I can see that.

Code:
21:32:23 T:18446744072290362680   ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://plugin.video.areena/?action=settings
21:32:23 T:18446744072290362680   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.areena/?action=settings) failed
21:32:28 T:18446744072307892352   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: zero length field name in format
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.areena-master/main.py", line 761, in <module>
router(sys.argv[2][1:])
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.areena-master/main.py", line 705, in router
streams = get_streams(params['category'], offset)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.areena-master/main.py", line 70, in get_streams
"&app_id=" + get_app_id() + "&app_key=" + get_app_key()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.areena-master/main.py", line 626, in get_sort_method
return '{}:{}'.format(sort_method, asc_or_desc)
ValueError: zero length field name in format
-->End of Python script error report<--
21:32:28 T:18446744072290362680   ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://plugin.video.areena/?action=listing&category=5-131
21:32:28 T:18446744072290362680   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.areena/?action=listing&category=5-131) failed

So, after first error message, I installed python for Android. But anyway, I still got the same error and the same message.
Any one has idea how to fix that? No body as used yet this add-on on an Android box?
Thank by advance.


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

(2016-03-12, 09:50)savis21 Wrote: I have also OE 6.0.3 in my RPi2 and I tried with Max resolution=HD720. I put my appId, appKey and secretKey with Kodi GUI but I cannot stream Yle Areena programs still. I tried some children program, here is log part of it.

Code:
09:41:33 39704.238281 T:1679569984   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'utf8' codec can't decode byte 0xd2 in position 16: invalid continuation byte
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 751, in <module>
                                                router(sys.argv[2][1:])
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 703, in router
                                                play_stream(params['stream'])
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 319, in play_stream
                                                log("decrypted path: " + path)
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 40, in log
                                                txt = txt.decode("utf-8")
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi2.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
                                            UnicodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position 16: invalid continuation byte
                                            -->End of Python script error report<--
09:41:33 39704.335938 T:1967407104   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.areena/?action=play&stream=1-2158348]

I had same issue and tried to debug it for days without much success. URL decryption just wasn't working causing that exception when path wasn't UTF-8. I double checked my secret keys multiple times but it was what I got from YLE.

Then I requested another set of keys from YLE and after that everything was working perfectly. Tested with same programs that weren't working with first keys and they played just fine.