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 - savis21 - 2016-04-10

(2016-03-17, 20:59)hirsivaja Wrote:
(2016-03-16, 21:43)savis21 Wrote: I tried like hirsivaja suggested but still any stream can not be opened.

Onko tuolla pluginin polutuksella merkitystä, kun lopussa on "-master", kun sen nimisen zipin latasin GitHubista?

Could you try again and enable debug logging in the addon settings? You also need to enable the debug for Kodi.
That path is fine.
Moi! I tried with version 2.2.6 of YLE Areena Plugin. Still problems with OE 6.0.3. My OE language is English, hope there is not any influence of localization.
Code:
16:46:15 100.731346 T:1967222784   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.areena/?action=play&stream=1-1495822]
16:46:15 100.732414 T:1779893312  NOTICE: Thread BackgroundLoader start, auto delete: false
16:46:22 107.046349 T:1779893312  NOTICE: Thread LanguageInvoker start, auto delete: false
16:46:22 107.187103 T:1779893312  NOTICE: -->Python Interpreter Initialized<--
16:46:23 108.777649 T:1779893312   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: [Errno url error] unknown url type: '%fdb'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 848, in <module>
                                                router(sys.argv[2][1:])
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 800, in router
                                                play_stream(params['stream'])
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 346, in play_stream
                                                path = get_resolution_specific_url(path)
                                              File "/storage/.kodi/addons/plugin.video.areena-master/main.py", line 385, in get_resolution_specific_url
                                                response = urllib.urlopen(path).read()
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi2.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib.py", line 86, in urlopen
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi2.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib.py", line 204, in open
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi2.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib.py", line 216, in open_unknown
                                            IOError: [Errno url error] unknown url type: '%fdb'
                                            -->End of Python script error report<--
16:46:24 108.885651 T:1967222784   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.areena/?action=play&stream=1-2894302]
16:46:24 108.886848 T:1779893312  NOTICE: Thread BackgroundLoader start, auto delete: false
16:46:51 136.677261 T:1700787264  NOTICE: Thread LanguageInvoker start, auto delete: false
16:46:52 136.817642 T:1700787264  NOTICE: -->Python Interpreter Initialized<--
16:46:52 136.818085 T:1700787264 WARNING: CPythonInvoker(19): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
16:46:52 137.031372 T:1700787264  NOTICE: iSTREAM: Playlists Code Update Service - Starting\Waking...
16:46:52 137.040375 T:1700787264  NOTICE: iSTREAM: -filestore- -Loading sqlite3 as DB engine version: 3.11.0
16:46:52 137.120789 T:1700787264  NOTICE: iSTREAM: Playlists Code Update Service - Sleeping... Sleep for 300 mins
16:47:01 146.594269 T:1700787264  NOTICE: Thread BackgroundLoader start, auto delete: false
16:47:02 147.585709 T:1700787264  NOTICE: Thread JobWorker start, auto delete: true
16:47:13 157.999283 T:1675621440  NOTICE: Previous line repeats 1 times.
16:47:13 157.999481 T:1675621440  NOTICE: Thread LanguageInvoker start, auto delete: false
16:47:13 158.137344 T:1675621440  NOTICE: -->Python Interpreter Initialized<--
16:47:13 158.588989 T:1675621440 WARNING: Could not decode to Unicode: decrypted path: ݥԶF|Ӿ׬cȲԊDnm̺B@ٖ Kմ]̾/]Ѫu¸߆,P.Oͅ)ǀÍ
16:47:14 158.826462 T:1967222784  NOTICE: DVDPlayer: Opening: ݥԶF|Ӿ׬cȲԊDnm̺B@ٖ Kմ]̾/]Ѫu¸߆,P.Oͅ)ǀÍ
16:47:14 158.826813 T:1967222784 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:47:14 158.827240 T:1675621440  NOTICE: Thread DVDPlayer start, auto delete: false
16:47:14 158.827606 T:1675621440  NOTICE: Creating InputStream
16:47:14 158.828094 T:1675621440   ERROR: CDVDPlayer::OpenInputStream - error opening [ݥԶF|Ӿ׬cȲԊDnm̺B@ٖ Kմ]̾/]Ѫu¸߆,P.Oͅ)ǀĝ
16:47:14 158.828247 T:1675621440  NOTICE: CDVDPlayer::OnExit()
16:47:14 158.828979 T:1967222784   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.areena/?action=play&stream=1-2892373]
16:47:14 158.836151 T:1967222784  NOTICE: CDVDPlayer::CloseFile()
16:47:14 158.836319 T:1967222784  NOTICE: DVDPlayer: waiting for threads to exit
16:47:14 158.836395 T:1967222784  NOTICE: DVDPlayer: finished waiting
16:47:14 158.836502 T:1967222784  NOTICE: CDVDPlayer::CloseFile()
16:47:14 158.836563 T:1967222784  NOTICE: DVDPlayer: waiting for threads to exit
16:47:14 158.836624 T:1967222784  NOTICE: DVDPlayer: finished waiting
16:47:16 160.837509 T:1675621440  NOTICE: Thread BackgroundLoader start, auto delete: false
16:47:51 196.637695 T:1723855936  NOTICE: Thread LanguageInvoker start, auto delete: false
16:47:52 196.807938 T:1723855936  NOTICE: -->Python Interpreter Initialized<--
16:47:52 196.808350 T:1723855936 WARNING: CPythonInvoker(21): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
16:47:52 197.027679 T:1723855936  NOTICE: iSTREAM: Cache Cleanup Service - Starting\Waking...
16:47:52 197.428207 T:1723855936  NOTICE: iSTREAM: -netcache- -Loading sqlite3 as DB engine version: 3.11.0
16:47:52 197.433792 T:1723855936  NOTICE: iSTREAM: -netcache- -DELETE FROM netcache WHERE cached < '2016-04-10'
16:47:52 197.434769 T:1723855936  NOTICE: iSTREAM: Cache Cleanup Service - Sleeping... Sleep for 300 mins
16:48:51 256.707611 T:1779893312  NOTICE: Thread LanguageInvoker start, auto delete: false
16:48:52 256.883667 T:1779893312  NOTICE: -->Python Interpreter Initialized<--
16:48:52 256.884033 T:1779893312 WARNING: CPythonInvoker(22): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
16:48:52 257.095917 T:1779893312  NOTICE: iSTREAM: -searchhistory- -Loading sqlite3 as DB engine version: 3.11.0
16:48:52 257.113556 T:1779893312  NOTICE: iSTREAM: Search History Cleanup Service - Starting\Waking...
16:48:52 257.124054 T:1779893312  NOTICE: iSTREAM: -searchhistory- -SELECT DISTINCT indexer_type FROM searchhistory
16:48:52 257.125061 T:1779893312  NOTICE: iSTREAM: -searchhistory- -DELETE FROM searchhistory WHERE indexer_type = ? AND id NOT IN (SELECT id FROM searchhistory WHERE indexer_type = ? ORDER BY tmstmp DESC LIMIT ?)
16:48:52 257.127930 T:1779893312  NOTICE: Previous line repeats 2 times.
16:48:52 257.128052 T:1779893312  NOTICE: iSTREAM: Search History Cleanup Service - Sleeping... Sleep for 300 mins
I tried my YLE API keys with link YLE gave when I requested them and they should be OK.
I put my keys to credentials.py script only.


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

EDIT: Sorry, wrong plugin.

The directory should be named plugin.video.areena. Looks like the URL for the program you tried to view is malformed for some reason.


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

Thanks for the new Yle Areena version. I have some strange issues with 2.2.6 plugin and OSMC (https://osmc.tv/). Some of the videos are working sometimes. Some of the videos not at all. Log is align with my experience:

Working log
18:43:08 2759.524414 T:3024204336 NOTICE: DVDPlayer: Opening: http://areenahdworld-vh.akamaihd.net/i/world/d9/d9cf6fee37d6c6572ffbe056058efdf4_,143360,399360,649216,947200,2601984,.mp4.csmil/master.m3u8?hdnea=st=1460389356~exp=1460389656~acl=/i/world/d9/d9cf6fee37d6c6572ffbe056058efdf4_*~hmac=d6282656384c40c875c9fdedf25cf6e3c453f6ec654535706206be4f1562c155
18:43:08 2759.526123 T:3024204336 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
18:43:08 2759.530518 T:2701128688 NOTICE: Creating InputStream
18:43:08 2759.738770 T:2701128688 NOTICE: Creating Demuxer
18:43:10 2761.115234 T:2701128688 NOTICE: Opening stream: 0 source: 256
18:43:10 2761.209229 T:2701128688 NOTICE: Creating video thread
18:43:10 2761.211426 T:2701128688 NOTICE: Opening stream: 1 source: 256
18:43:10 2761.232666 T:2701128688 NOTICE: Creating audio thread
18:43:10 2761.245605 T:2701128688 NOTICE: OMXClock using audio as reference
18:43:10 2761.281494 T:2786681840 NOTICE: Display resolution DESKTOP : 1920x1080 (1920x1080) @ 60.00 - Full Screen (16)
18:43:10 2761.394043 T:2786681840 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
18:43:15 2766.783447 T:3024204336 WARNING: Previous line repeats 2 times.
18:43:15 2766.784912 T:3024204336 NOTICE: CDVDPlayer::CloseFile()
18:43:15 2766.786865 T:3024204336 NOTICE: DVDPlayer: waiting for threads to exit
18:43:15 2766.791504 T:2701128688 NOTICE: CDVDPlayer::OnExit()
18:43:15 2766.793213 T:2701128688 NOTICE: Closing stream player 1
18:43:15 2766.802002 T:2483024880 NOTICE: thread end: OMXPlayerAudio::OnExit()

Error log
18:43:31 2782.795654 T:3024204336 NOTICE: DVDPlayer: Opening: http://areenahdfi-vh.akamaihd.net/i/fi/4c/4cbbe7531ddce0cd37e0953190582d9_,116736,307200,498688,782336,2240512,.mp4.csmil/master.m3u8?hdnea=st=1460389380~exp=1460389680~acl=/i/fi/4c/4cbbe7531ddce0cd37e0953190582d9_*~hmac=567f77fe9a737d9288c445c12daec7d0fd1c2de514180252848bebcb6aea1311
18:43:31 2782.797119 T:3024204336 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
18:43:31 2782.801758 T:2474636272 NOTICE: Creating InputStream
18:43:32 2783.015625 T:2474636272 NOTICE: Creating Demuxer
18:43:36 2787.238281 T:2474636272 ERROR: OpenDemuxStream - Error creating demuxer
18:43:36 2787.240479 T:2474636272 NOTICE: CDVDPlayer::OnExit()
18:43:36 2787.244385 T:3024204336 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.areena/?action=play&stream=1-3289454]
18:43:36 2787.335205 T:3024204336 NOTICE: CDVDPlayer::CloseFile()
18:43:36 2787.339844 T:3024204336 NOTICE: DVDPlayer: waiting for threads to exit
18:43:36 2787.342041 T:3024204336 NOTICE: DVDPlayer: finished waiting
18:43:36 2787.343994 T:3024204336 NOTICE: CDVDPlayer::CloseFile()
18:43:36 2787.345459 T:3024204336 NOTICE: DVDPlayer: waiting for threads to exit


Any idea?


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

(2016-04-11, 17:52)mize Wrote: Thanks for the new Yle Areena version. I have some strange issues with 2.2.6 plugin and OSMC (https://osmc.tv/). Some of the videos are working sometimes. Some of the videos not at all. Log is align with my experience:

Any idea?

Did you try setting the maximum resolution to something else than Automatic? The setting can be found from the Advanced tab of the settings menu.


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

(2016-04-10, 16:01)savis21 Wrote: I tried my YLE API keys with link YLE gave when I requested them and they should be OK.
I put my keys to credentials.py script only.
Are the keys typed exactly in the same way into the file? Lower and upper case matters. For some reason the encryption seems to fail. I tried deliberately typing my key slightly wrong and got similar results that you had.


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

(2016-04-12, 20:42)hirsivaja Wrote:
(2016-04-10, 16:01)savis21 Wrote: I tried my YLE API keys with link YLE gave when I requested them and they should be OK.
I put my keys to credentials.py script only.
Are the keys typed exactly in the same way into the file? Lower and upper case matters. For some reason the encryption seems to fail. I tried deliberately typing my key slightly wrong and got similar results that you had.

Could this be a CR/LF issue when credentials.py has been edited with Notepad?


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

Unable to get this work on Raspberry Pi 3 with RetroPie 3.6 / Kodi 16.0

Code:
23:54:35 1482.960449 T:1944797184   ERROR: GetDirectory - Error getting plugin://plugin.video.areena/?action=settings
23:54:35 1482.962891 T:1944797184   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.areena/?action=settings) failed
23:54:38 1485.533936 T:1654649776   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
                                            Traceback (most recent call last):
                                              File "/home/pi/.kodi/addons/plugin.video.areena-master/main.py", line 848, in <module>
                                                router(sys.argv[2][1:])
                                              File "/home/pi/.kodi/addons/plugin.video.areena-master/main.py", line 834, in router
                                                list_categories(base_category)
                                              File "/home/pi/.kodi/addons/plugin.video.areena-master/main.py", line 84, in list_categories
                                                listing = list_sub_categories(base_category)
                                              File "/home/pi/.kodi/addons/plugin.video.areena-master/main.py", line 97, in list_sub_categories
                                                categories = get_categories()
                                              File "/home/pi/.kodi/addons/plugin.video.areena-master/main.py", line 55, in get_categories
                                                return get_json(url)['data']
                                              File "/home/pi/.kodi/addons/plugin.video.areena-master/main.py", line 608, in get_json
                                                response = urllib.urlopen(url)
                                              File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
                                                return opener.open(url)
                                              File "/usr/lib/python2.7/urllib.py", line 213, in open
                                                return getattr(self, name)(url)
                                              File "/usr/lib/python2.7/urllib.py", line 443, in open_https
                                                h.endheaders(data)
                                              File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
                                                self._send_output(message_body)
                                              File "/usr/lib/python2.7/httplib.py", line 850, in _send_output
                                                self.send(msg)
                                              File "/usr/lib/python2.7/httplib.py", line 812, in send
                                                self.connect()
                                              File "/usr/lib/python2.7/httplib.py", line 1212, in connect
                                                server_hostname=server_hostname)
                                              File "/usr/lib/python2.7/ssl.py", line 350, in wrap_socket
                                                _context=self)
                                              File "/usr/lib/python2.7/ssl.py", line 566, in __init__
                                                self.do_handshake()
                                              File "/usr/lib/python2.7/ssl.py", line 788, in do_handshake
                                                self._sslobj.do_handshake()
                                            IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
                                            -->End of Python script error report<--
23:54:38 1485.588501 T:1944797184   ERROR: GetDirectory - Error getting plugin://plugin.video.areena/?action=categories&base=5-130
23:54:38 1485.589844 T:1944797184   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.areena/?action=categories&base=5-130) failed
23:54:47 1494.394165 T:1944797184   ERROR: GetDirectory - Error getting plugin://plugin.video.areena/?action=settings
23:54:47 1494.395630 T:1944797184   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.areena/?action=settings) failed



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

(2016-04-12, 20:42)hirsivaja Wrote:
(2016-04-10, 16:01)savis21 Wrote: I tried my YLE API keys with link YLE gave when I requested them and they should be OK.
I put my keys to credentials.py script only.
Are the keys typed exactly in the same way into the file? Lower and upper case matters. For some reason the encryption seems to fail. I tried deliberately typing my key slightly wrong and got similar results that you had.
I can list tv programs OK. But this decryption key can be the reason.
I asked from YLE developer, that my api keys are ok. Developer tried my keys and they should be ok,
I made credentials.py script edition with nano in OE, so CR/LF should not be the case.

How I could proceed with this? If someone could try my api keys etc.? I could send them privately or something (?).


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

(2016-04-13, 16:52)savis21 Wrote:
(2016-04-12, 20:42)hirsivaja Wrote:
(2016-04-10, 16:01)savis21 Wrote: I tried my YLE API keys with link YLE gave when I requested them and they should be OK.
I put my keys to credentials.py script only.
Are the keys typed exactly in the same way into the file? Lower and upper case matters. For some reason the encryption seems to fail. I tried deliberately typing my key slightly wrong and got similar results that you had.
I can list tv programs OK. But this decryption key can be the reason.
I asked from YLE developer, that my api keys are ok. Developer tried my keys and they should be ok,
I made credentials.py script edition with nano in OE, so CR/LF should not be the case.

How I could proceed with this? If someone could try my api keys etc.? I could send them privately or something (?).

I can give it a go if you send the keys.


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

Apparently, on a closer look my issue seems to be a part of bigger issue outside of this addon. It just manifested first time when I was trying this.


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

But I was able to solve it for this plugin and for others by slapping this code snippet on the main.py of the plugins.

Code:
import ssl

try:
    _create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
    # Legacy Python that doesn't verify HTTPS certificates by default
    pass
else:
    # Handle target environment that doesn't support HTTPS verification
    ssl._create_default_https_context = _create_unverified_https_context



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

(2016-04-12, 20:35)hirsivaja Wrote:
(2016-04-11, 17:52)mize Wrote: Thanks for the new Yle Areena version. I have some strange issues with 2.2.6 plugin and OSMC (https://osmc.tv/). Some of the videos are working sometimes. Some of the videos not at all. Log is align with my experience:

Any idea?

Did you try setting the maximum resolution to something else than Automatic? The setting can be found from the Advanced tab of the settings menu.

Thanks for the advice. At least today everything is fine when setting resolution to 1080.

It seems that TV show directory is still quite immature. Most of the available shows are Pasila stuff. Smile


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

The sorting could be improved. If you use series search, you can find the series you want as a directory, and not only separate episodes. If the TV Show directory would list the contents same way, as series directories and the separate episodes inside them, it would rock. For example if you open TV Shows - Foreign - you would get about ten separate directories named after the series, which would contain the separate episodes. Currently you get all the episodes from all the series.

I dont know if it is easy to implement in the TV Show listing, or could we use the Series search with some wildcards or tags to show all the relevant shows in separate categories. Like make search of all the foreign shows, documentaries, kids shows and get a more compact list that way.


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

(2016-04-13, 22:11)mize Wrote: It seems that TV show directory is still quite immature. Most of the available shows are Pasila stuff. Smile

You can change that from settings, uncheck "Show clips".


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

(2016-04-13, 18:23)teepean Wrote:
(2016-04-13, 16:52)savis21 Wrote:
(2016-04-12, 20:42)hirsivaja Wrote: Are the keys typed exactly in the same way into the file? Lower and upper case matters. For some reason the encryption seems to fail. I tried deliberately typing my key slightly wrong and got similar results that you had.
I can list tv programs OK. But this decryption key can be the reason.
I asked from YLE developer, that my api keys are ok. Developer tried my keys and they should be ok,
I made credentials.py script edition with nano in OE, so CR/LF should not be the case.

How I could proceed with this? If someone could try my api keys etc.? I could send them privately or something (?).

I can give it a go if you send the keys.
teepean tried my keys and didn't get them working also. So i contacted to yle again, they tested them and said, that my api key and decryption key are ok. Hmm..