[Req] An updated NRK Browser (1 Viewer)

OterLabb

Portal Member
March 24, 2008
7
0
Home Country
Norway Norway
Hello,
I have been trying to make nrk work again in mediaportal, no luck so far :/
I cant get the videos to play. It seems like there are two options, one is HLS and the other is F4M, I can get the HLS one to play in VLC but not in mediaportal.


This is what the source code on the nrk site looks like.

Code:
<!--googleoff: all-->
<div id="playerelement" class="playerelement tv player-available odm ratio-16x9"
     data-media="http://nordond29b-f.akamaihd.net/z/no/open/43/43fc1c66d9307855246c0dbade98da61e577142b/be9a26c5-724e-4517-8783-c01c4a262fdf_,141,316,563,1266,2250,.mp4.csmil/manifest.f4m"
     data-hls-media="http://nordond29b-f.akamaihd.net/i/no/open/43/43fc1c66d9307855246c0dbade98da61e577142b/be9a26c5-724e-4517-8783-c01c4a262fdf_,141,316,563,1266,2250,.mp4.csmil/master.m3u8?cc1=uri%3Dhttp%3a%2f%2fundertekst.nrk.no%2fKOID27%2f00%2fKOID27003413AA%2fmaster.m3u8%7Ename%3DNorsk%7Edefault%3Dyes%7Eforced%3Dno%7Elang%3Dnb"
     data-timezoneoffset="2"
     data-startingbitrateindex="3"
     data-streamingerrormessageurl="/streamingerror"
     data-outoflivebuffermessageurl="/outoflivebuffer"
     data-playertype="flash"
     data-posterimage="http://gfx.nrk.no/L-J3C4Awji9IHkT4Jb2nlQmH4xTlYsmLC7S2HZMfrZpA"
     data-duration="3345.96"
    data-video-id="KOID27003413"
                 data-subtitlesurl = "/programsubtitles/KOID27003413"
             data-legalage = "A"
>
   
            <div id="nrkFlashContainer" class="flash-player"></div>


And this is what I have made so far in the Generic Site Creator tool, still needs a little work though.

Code:
<Site name="NRKTEST2" util="GenericSite" agecheck="false" enabled="true" lang="no">
  <Description>please fill</Description>
  <Configuration>
    <item key="baseUrl"><![CDATA[http://tv.nrk.no/programmer]]></item>
    <item key="dynamicCategoriesRegEx"><![CDATA[<a\sclass="buttonbar-link\shidden-phone"\shref="(?<url>[^"]*)">(?<title>[^<]*)</a>]]></item>
    <item key="videoListRegEx"><![CDATA[<div\sclass="air">\s*<a\shref="(?<VideoUrl>[^"]*)"\sclass="listobject-link">\s*<div\sclass="[^"]*">\s*<img\sclass="[^"]*"\ssrc="(?<ImageUrl>[^"]*)"\s[^=]*=""\salt="[^"]*"\s/>\s*<span\sclass="[^"]*"></span>\s*</div>\s[^=]*="listobject-title">(?<Title>[^<]*)[^\s]*\s*]]></item>
    <item key="searchUrl"><![CDATA[http://tv.nrk.no/sok?q={0}]]></item>
    <item key="fileUrlRegEx"><![CDATA[<!--googleoff:\sall-->\s*<div\sid="playerelement"\sclass="playerelement\stv\splayer-available\sodm\sratio-16x9"\s*data-media="http://nordond21c-f\.akamaihd\.net/z/no/open/ea/ea1332eb50b2351b03707cac4254f5ee1981a921/66bd1254-c92b-4cab-b9c2-6d98f773fbb9_,141,316,563,1266,2250,\.mp4\.csmil/manifest\.f4m"\s*data-hls-media="(?<m0>[^"]*)"\s*data-timezoneoffset="2"\s*data-startingbitrateindex="3"\s*data-streamingerrormessageurl="/streamingerror"\s*data-outoflivebuffermessageurl="/outoflivebuffer"\s*data-playertype="flash"\s*data-posterimage="http://gfx\.nrk\.no/zf1C38vbk-htKOK4vUvb5AhTuKmHay_9ovYnNc1U3UBA"\s*data-duration="6898\.92"\s*data-video-id="KOID26004410"\s*data-subtitlesurl\s=\s"/programsubtitles/KOID26004410"\s*data-legalage\s=\s"7"\s*>]]></item>
  </Configuration>
  <Categories>
    <Category xsi:type="RssLink" name="Populært" desc="Populært">
      <SubCategories>
        <Category xsi:type="RssLink" name="Aktuelt" thumb="" desc="">http://tv.nrk.no/programmer</Category>
        <Category xsi:type="RssLink" name="Nytt" thumb="" desc="">http://tv.nrk.no/programmer/nytt</Category>
        <Category xsi:type="RssLink" name="A - Å" thumb="" desc="">http://tv.nrk.no/programmer/a-aa</Category>
      </SubCategories>http://tv.nrk.no/programmer/populart</Category>
    <Category xsi:type="RssLink" name="Nytt" desc="Nytt">
      <SubCategories>
        <Category xsi:type="RssLink" name="Aktuelt" thumb="" desc="">http://tv.nrk.no/programmer</Category>
        <Category xsi:type="RssLink" name="Populært" thumb="" desc="">http://tv.nrk.no/programmer/populart</Category>
        <Category xsi:type="RssLink" name="A - Å" thumb="" desc="">http://tv.nrk.no/programmer/a-aa</Category>
      </SubCategories>http://tv.nrk.no/programmer/nytt</Category>
    <Category xsi:type="RssLink" name="A til Å" desc="A til Å">http://tv.nrk.no/programmer/a-aa</Category>
    <Category xsi:type="RssLink" name="Direkte" desc="Direkte">http://tv.nrk.no/direkte/nrk1</Category>
  </Categories>
</Site>

Any help appreciated :)
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    HLS is the protocol from Apple and not supported by our splitter, but f4m is (it's the adobe protocol). So focus on that one :)
     

    OterLabb

    Portal Member
    March 24, 2008
    7
    0
    Home Country
    Norway Norway
    Yeah, i talked with georgius, he said the same thing. And he found out that there is a random string added to the f4m link. "?g=CUKNLZVJHIKZ&hdcore=3.1.1&plugin=aasp-3.1.1.69.124"
    So I snooped around a littlebit with wireshark, and there sure is a random 12 letter string added, but I dont really dont know where to go from here :/


    Some strings from wireshark:
    Code:
    1881    6.183669000    192.168.1.103    81.167.38.11    HTTP    641    GET /z/no/open/43/43fc1c66d9307855246c0dbade98da61e577142b/be9a26c5-724e-4517-8783-c01c4a262fdf_,141,316,563,1266,2250,.mp4.csmil/manifest.f4m?g=DTTFIBILPOLU&hdcore=3.1.1&plugin=aasp-3.1.1.69.124 HTTP/1.1
    272    5.704432000    192.168.1.103    81.167.38.19    HTTP    641    GET /z/no/open/43/43fc1c66d9307855246c0dbade98da61e577142b/be9a26c5-724e-4517-8783-c01c4a262fdf_,141,316,563,1266,2250,.mp4.csmil/manifest.f4m?g=YEEYWKYKJVKB&hdcore=3.1.1&plugin=aasp-3.1.1.69.124 HTTP/1.1
    
    1798    4.659887000    192.168.1.103    93.184.220.187    HTTP    579    GET /lpconfig/cfg/c3.customerName=c3.NRK&c3.platform=FL&c3.sver=2.82.0.19066?random=2317526179&uuid=4124068409.1415413023.2641722504.3008293337 HTTP/1.1
    168    4.382149000    192.168.1.103    93.184.220.187    HTTP    578    GET /lpconfig/cfg/c3.customerName=c3.NRK&c3.platform=FL&c3.sver=2.82.0.19066?random=903426936&uuid=4124068409.1415413023.2641722504.3008293337 HTTP/1.1
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I had noticed the same thing on my sites. I simply generate the ramdom string in code - but that's not possible with the genric site. You'd need a small c# class for the site.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    If you say the old NRK Browser site is totally non-working, I can change the implemenatation to simply to do the same as the GenericSite and append and random string to the url.
    All you'd have to do then is change util="GenericSite" to NrkBrowser.
    For quick testing right now if f4m actually works, you can use the SiteParser and append it manually by adding it in the Url Format at the end:
    Code:
    {0}?g=YEEYWKYKJVKB&hdcore=3.1.1
     

    OterLabb

    Portal Member
    March 24, 2008
    7
    0
    Home Country
    Norway Norway
    Nice, it works :D

    The old NRK Browser is very out of date. There is a few links that actually plays, but the site must have changed alot since the last update.[DOUBLEPOST=1408806390][/DOUBLEPOST]So this is the code I have right now. Works on both my computer and on my mediacenter. Still a few bugs and some missing features, like live tv and subtitles. But it is one step forward :)

    Code:
    <Site name="NRKTEST2" util="GenericSite" agecheck="false" enabled="true" lang="no">
      <Description>please fill</Description>
      <Configuration>
        <item key="dynamicCategoriesRegEx"><![CDATA[<a\sclass="buttonbar-link\shidden-phone"\shref="(?<url>[^"]*)">(?<title>[^<]*)</a>]]></item>
        <item key="videoListRegEx"><![CDATA[<div\sclass="air">\s*<a\shref="(?<VideoUrl>[^"]*)"\sclass="listobject-link">\s*<div\sclass="[^"]*">\s*<img\sclass="[^"]*"\ssrc="(?<ImageUrl>[^"]*)"\s[^=]*=""\salt="[^"]*"\s/>\s*<span\sclass="[^"]*"></span>\s*</div>\s[^=]*="listobject-title">(?<Title>[^<]*)[^\s]*\s*]]></item>
        <item key="fileUrlRegEx"><![CDATA[data-media="(?<m0>[^"]*)"]]></item>
        <item key="fileUrlFormatString"><![CDATA[{0}?g=YEEYWKYKJVKB&hdcore=3.1.1]]></item>
        <item key="searchUrl"><![CDATA[http://tv.nrk.no/sok?q={0}]]></item>
        <item key="baseUrl"><![CDATA[http://tv.nrk.no/programmer]]></item>
      </Configuration>
      <Categories>
        <Category xsi:type="RssLink" name="Populært" desc="Populært">http://tv.nrk.no/programmer/populart</Category>
        <Category xsi:type="RssLink" name="Nytt" desc="Nytt">http://tv.nrk.no/programmer/nytt</Category>
        <Category xsi:type="RssLink" name="A til Å" desc="A til Å">http://tv.nrk.no/programmer/a</Category>
        <Category xsi:type="RssLink" name="Direkte" desc="Direkte">http://tv.nrk.no/direkte/nrk1</Category>
      </Categories>
    </Site>
     
    Last edited:

    Users who are viewing this thread

    Top Bottom