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 - Snaah - 2016-05-21

(2016-05-20, 05:34)teepean Wrote: You might want to mention this forum and Hirsivaja's github page on your feature request.

I saw someone of you was nice enough to do so for Yle. I now mentioned the thread. Hope it will help!

(2016-05-20, 18:54)hirsivaja Wrote: That seems to be quite interesting plugin. I would not mind seeing it also support Finnish channels. I think most sense would make to implement Katsomo support. With Katsomo one can watch programs from the Finnish TV channels MTV3 (not related to MusicTeleVision, MTV), SubTV and AVA. Currently we have somewhat working plugins for the other main Finnish TV channels.

Yes, I think Retrospect is the right thing. Bas Rieter, the developer, is Dutch (!) and incredibly fast at fixing errors (look at the old Github issues for examples). Since some months a method to discover errors without user interactions was implemented too. I think you should put your coding skills together to make Retrospect the best plugin for all Finnish channels too, like it already is for channels from Sweden and other countries.

The spoofing function is superb for us who live abroad for some months each year or if you want to watch TV from other countries.

About the other Finnish channels besides Yle, the best way to get them implemented would be if you or somebody else here could add it as a feature request in an "issue" on Github. There you could speak "code lingo" about how to do it. You are the experts on Finnish TV, I'm just a guy from Ruotsi trying to help Suomi neighbors. Smile By the way, do any of those other channels have spoken Swedish or subtitles as an option?

EDIT: I now saw a request to add Katsumo was posted already yesterday. Great work!


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - BoxFreak - 2016-05-21

^ YLE FEM is mainly swedish channel. I think there´s also swedish subtitles

EDIT: FST --> FEM


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

New version of the Areena plugin includes live TV channels. You can get it from here.


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - Jamiar - 2016-05-22

(2016-05-22, 14:25)hirsivaja Wrote: New version of the Areena plugin includes live TV channels. You can get it from here.

Great!
You can put YLE Fem link for swedish also:
http://yletv-lh.akamaihd.net/i/ylefemsehls_1@103186/master.m3u8
(I think this link has swedish subtitles)


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - krisu - 2016-05-22

Is there gonna be repo for finnish TV addons someday?


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - Snaah - 2016-05-23

(2016-05-21, 20:35)BoxFreak Wrote: ^ YLE FEM is mainly swedish channel. I think there´s also swedish subtitles

EDIT: FST --> FEM

Yes, I know. I suggested to add it to Retrospect some time ago. What about the other channels?

BTW, I tested spoofing Katsomo.fi. Works perfectly!

(2016-05-22, 18:31)krisu Wrote: Is there gonna be repo for finnish TV addons someday?

It will probably be added to Retrospect soon and then updated continuously (see my message last week). It will probably speed things up if you and others here show there are many people who want this by voting or helping in the last two topics shown here (#600 and #733): https://bitbucket.org/basrieter/xbmc-online-tv/issues?status=new&status=open


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

(2016-05-23, 17:18)Snaah Wrote:
(2016-05-21, 20:35)BoxFreak Wrote: ^ YLE FEM is mainly swedish channel. I think there´s also swedish subtitles

EDIT: FST --> FEM

Yes, I know. I suggested to add it to Retrospect some time ago. What about the other channels?

BTW, I tested spoofing Katsomo.fi. Works perfectly!

How did you do that exactly?


RE: [RELEASE] Finnish TV: YleAreena and Ruutu (Video) plugins - Snaah - 2016-05-23

(2016-05-23, 17:20)teepean Wrote:
(2016-05-23, 17:18)Snaah Wrote:
(2016-05-21, 20:35)BoxFreak Wrote: ^ YLE FEM is mainly swedish channel. I think there´s also swedish subtitles

EDIT: FST --> FEM

Yes, I know. I suggested to add it to Retrospect some time ago. What about the other channels?

BTW, I tested spoofing Katsomo.fi. Works perfectly!

How did you do that exactly?

Read here: https://bitbucket.org/basrieter/xbmc-online-tv/issues/595/option-to-change-http-headers-to-unblock (I used the Chrome extension to test Katsomo.)


Another API - maxtherabbit - 2016-05-24

(2016-05-07, 19:49)hirsivaja Wrote:
(2016-04-14, 07:27)Huxely Wrote: 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.

I tried to implement this, but since the API does not support searching for the series with any criteria this is not doable at the moment. One implementation I tried was that I load all the programs for the specific category and then sort them by the series (grouping one series as one item). This implementation kind of worked, but was too slow. For some categories it meant loading thousands of programs in patches of 100 (100 is the maximum amount the API offers per query). It took over a minute for the largest categories.

I think I found an API address that allows you to look for shows instead of episodes. I'm not a coder, but I hope that this helps you make the program list work better.

I opened Areena in Chrome and navigated to foreign tv shows.

Then I opened developer tools and from the network tab I double clicked a line beginning with "content?app_id".

It opened a page with all the foreign shows in alphabetical order.

The address looked like this: https://areena.api.yle.fi/v1/ui/packages/GENRE_ID/content?app_id=APP_ID&app_key=APP_KEY&o=ao&language=fi&v=1&offset=0&limit=25

The API keys that YLE sent via email won't work with this address, but your web browser will automatically create working ones.

I also made a list with all the GENRE_IDs that I found from the html-code.

30-21 Urheilu
30-24 Historia
30-27 Musiikki
30-28 Luonto
30-29 Tiede
30-30 Elokuvat
30-33 Uutiset
30-34 Sarjat
30-35 Huumori
30-36 Dokumentit
30-37 Kulttuuri
30-44 Ajankohtaisohjelmat
30-79 Fakta
30-83 Nuoret
30-97 Ulkomaiset sarjat
30-98 Kotimaiset sarjat
30-200 Jännitys
30-240 Klassinen musiikki
30-145 Jääkiekko
30-146 Jalkapallo
30-153 Miljoona linnunpönttöä
30-238 Puoli seiskan parhaat luontoklipit
30-244 Kuntoilu


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

(2016-05-24, 02:27)maxtherabbit Wrote: I think I found an API address that allows you to look for shows instead of episodes. I'm not a coder, but I hope that this helps you make the program list work better.

I was able to use the URL you provided to implement the series listing. It can be downloaded from here.
This is a feature test and I did not include that into the "official" addon yet. Any comments anyone?


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

(2016-05-30, 19:51)hirsivaja Wrote:
(2016-05-24, 02:27)maxtherabbit Wrote: I think I found an API address that allows you to look for shows instead of episodes. I'm not a coder, but I hope that this helps you make the program list work better.

I was able to use the URL you provided to implement the series listing. It can be downloaded from here.
This is a feature test and I did not include that into the "official" addon yet. Any comments anyone?

I tried the plugin with Kodi 15.2 and can't get it working. Here's the log:

http://pastebin.com/Y6ELVtEv


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

(2016-06-01, 11:37)teepean Wrote:
(2016-05-30, 19:51)hirsivaja Wrote:
(2016-05-24, 02:27)maxtherabbit Wrote: I think I found an API address that allows you to look for shows instead of episodes. I'm not a coder, but I hope that this helps you make the program list work better.

I was able to use the URL you provided to implement the series listing. It can be downloaded from here.
This is a feature test and I did not include that into the "official" addon yet. Any comments anyone?

I tried the plugin with Kodi 15.2 and can't get it working. Here's the log:

http://pastebin.com/Y6ELVtEv

Did not get that error on my environment, but made a possible fix. Check the newest version if that fixes the problem!


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

(2016-06-01, 16:21)hirsivaja Wrote:
(2016-06-01, 11:37)teepean Wrote:
(2016-05-30, 19:51)hirsivaja Wrote: I was able to use the URL you provided to implement the series listing. It can be downloaded from here.
This is a feature test and I did not include that into the "official" addon yet. Any comments anyone?

I tried the plugin with Kodi 15.2 and can't get it working. Here's the log:

http://pastebin.com/Y6ELVtEv

Did not get that error on my environment, but made a possible fix. Check the newest version if that fixes the problem!

The updated version works. I tried opening every genre folder and opened some of the videos. Tested on Jarvis 16.1 on Windows. I will try Android and Raspberry Pi versions later.


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

(2016-06-01, 18:55)maxtherabbit Wrote:
(2016-06-01, 16:21)hirsivaja Wrote:
(2016-06-01, 11:37)teepean Wrote: I tried the plugin with Kodi 15.2 and can't get it working. Here's the log:

http://pastebin.com/Y6ELVtEv

Did not get that error on my environment, but made a possible fix. Check the newest version if that fixes the problem!

The updated version works. I tried opening every genre folder and opened some of the videos. Tested on Jarvis 16.1 on Windows. I will try Android and Raspberry Pi versions later.

15.2 doesn't seem to work. The error looks like a problem with the api key. I'll check if there's a problem with that.

EDIT: It was the api key, now it is working perfectly!


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

I was looking through the Android Areena player's source code and found this. I have no idea if it is useful or not.

Code:
{
  "pixelUrl": "https://dax.yle.fi/yle/app/s?",
  "metricsApiUrl": "https://metrics.api.yle.fi/v2/",
  "channelsUrlNew": "https://areena.api.yle.fi/v1/config",
  "categoriesUrlNew": "https://areena.api.yle.fi/v1/config",
  "appUIUrl": "https://areena.api.yle.fi",
  "areenaApiBaseUrl": "https://areena.api.yle.fi/v1/",
  "programsApiBaseUrl": "https://programs.api.yle.fi/v1/",
  "mediaApiBaseUrl": "https://media.api.yle.fi/v1/",
  "locationsApiBaseUrl": "http://locations.api.yle.fi/v1/",
  "shareBaseUrl": "http://areena.yle.fi/",
  "shareBaseUrlSv": "http://arenan.yle.fi/",
  "imageApiBaseUrl": "https://images.cdn.yle.fi/image/upload",
  "loginApiBaseUrlNew": "https://login.api.yle.fi/v1/",
  "liveRadioQualities": [
  {
    "bitrate": 64000,
    "title": {
      "fi": "Matala",
      "sv": "LÃ¥g",
      "en": "Low"
    }
    },
    {
      "bitrate": 128000,
      "title": {
        "fi": "Normaali",
        "sv": "Normal",
        "en": "Normal"
      }
    }
    ],
    "videoBitrates":[
    450000,
    800000,
    1200000,
    1600000,
    3000000
    ],
    "maxVideoBitrate": 0,
    "playerToUse": "akamai",
    "playerToUseLive": "akamai",
    "useOMX": "true",
    "minVer": 1036,
    "pkgNameOfNewVer": "com.yle.webtv",
    "useSpring": "true",
    "springAppName": "areena/android",
    "springPrefix": "areena/",
    "specialConfigs": [
    {
      "manufacturer": "sample",
      "model": "model",
      "version": "1.4.4",
      "maxVideoBitrate":9000000,
      "playerToUse":"akamai"
      },
      {
        "name": "lollipop",
        "version": "5",
        "playerToUse":"akamai",
        "useOMX":"false"
        },
        {
          "name": "Samsung",
          "manufacturer": "Samsung",
          "playerToUse":"native",
          "playerToUseLive":"akamai"
        }
        ],
        "resolutionLimits":{
          "801": 1200000,
          "1280": 1600000
          },
          "useSola": "true",
          "solaConfigUrl": "http://ma520-r.analytics.edgesuite.net/config/beacon-6641.xml",
          "solaLiveConfigUrl": "http://ma520-r.analytics.edgesuite.net/config/beacon-6641.xml",
          "solaOnDemandConfigUrl": "http://ma648-r.analytics.edgesuite.net/config/beacon-7920.xml",
          "metricsTimeout": 10
        }

http://yle.fi/global/apps/android/areena4/configuration.json