Kodi Community Forum
[RELEASE] Norwegian NRK Web-TV (Video) Plugin - 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] Norwegian NRK Web-TV (Video) Plugin (/showthread.php?tid=52824)

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


- extrospection - 2010-11-05

dsgh Wrote:Does anyone know where I can download the most updated version of the NRK plugin?

Echo that - it looks like Oddstr13 has been making some progress in cleaning it up -- time for a new release, even if it is cut back from the original plugin scope (current plugin in Dharma repository is listed as "broken"?)


- takoi - 2010-11-05

I tried looking into this a while ago but drowned in its massive complexity. if you take the tv plugin only +api_nrk.py + utils.py you get the incredible 2700 lines! compare to other video plugins which does it all in ~300. Without having looked very much at it im thinking this whole addon needs to be reevaluated. If no one is working on this now then maybe it'll be better just to start from scratch..


- extrospection - 2010-11-06

I know nothing about coding in python, unfortunately, but I would be very grateful if someone brushed this one up.

As a side note: NRKbeta are always pushing the idea that they want to be the best provider of NRK content - we could pass them the challenge to create/maintain an official NRK XBMC plugin (not unlike what they have done for Windows Media Centre in the past)

e.g. http://nrkbeta.no/2007/11/08/hvordan-vil-dere-ha-innhold-fra-nrk/

Edit: I drafted a quick email and sent to the team at nrkbeta.no:
Quote:Hei NRKbeta

dere snakker jenvlig om at dere vil være den beste tilbyderen av NRK materiale. Her er en utfordring til dere!

XBMC (Xbox Media Centre) er en åpen mediasenterløsning som kjører på Ubuntu, Mac og Windows (og til og med på gamle, hackede Xboxer - programmets opphav og derav navnet)

En uoffisiell plugin for å se NRK NettTV har lenge eksistert og har blitt vedlikeholdt av diverse frivillige. Nå er ny versjon av XBMC ute of NRK-pluginen er "broken" og ikke lenger vedlikeholdt.

Har dere noen pythonkyndige mennesker på huset som vil ha en liten utfordring? Evt hva med å gjøre jobben skikkelig enkel for koderne ved f.eks. å legge ut en strukturert XML/OPML fil med alt videoinnholdet som er tilgjengelig på Nett TV som de så kan parse og vise i XBMC? Bonuspoeng for å merke geo-blokkede show slik at de av oss som er i utlendighet ikke trenger å bomklikke...

Er noen interessert, finner dere mer info her:
http://www.xbmc.org/
http://forum.xbmc.org/showthread.php?tid=52824
http://forum.xbmc.org/showthread.php?p=639443&posted=1#post639443

Det er mange norske brukere og utviklere på den forum-tråden som kan hjelpe, teste osv...



- extrospection - 2010-11-06

scope Wrote:Does this plugin work outside Norway? (I suspect not, so might have to set up a VPN). None of the streams work for me

VictorV Wrote:They're using some kind of geoblocking yes.

Go to http://www.nrk.no to test, but many shows work just fine from abroad. More info about it here:
Quote:Nett-TV for deg som bor i utlandet
På grunn av rettighetsbegrensninger er dessverre ikke NRKs direktesendinger tilgjengelige for brukere i utlandet, eller for brukere som er registrert med utenlandsk ip-adresse i Norge. Denne begrensingen gjelder også for en del programmer i opptak.



- extrospection - 2010-11-06

http://prosjektet.net/xbmc/plugins/plugin.video.nrk.zip works partially - i could get last week's most popular shows but not "last X days" with an argument.


- takoi - 2010-11-06

You can forget about the api. They've been talking about it since 2006 and haven't even started yet. And you should probably mention the license requirements..


- takoi - 2010-11-06

Maybe victorv is a better guy to answer this but the way i see it there's nothing that calls for it being impossible to create an addon that only depends on maintaining simple urls and regexps. I think the problems here comes from bad design, not necessarily that they change the site, on occasions..


- VictorV - 2010-11-06

ventech Wrote:If no one is working on this now then maybe it'll be better just to start from scratch..

... Maybe victorv is a better guy to answer this but the way i see it there's nothing that calls for it being impossible to create an addon that only depends on maintaining simple urls and regexps. I think the problems here comes from bad design, not necessarily that they change the site, on occasions..

I agree. My code is a bit bloated now.
There's not so much work to create a addon.

My code is hacked to worke each time they've changed their site, and variouse hacks to support older platforms and the new addon system. It was deigned to cover their old web-tv system that was a lot more complex. It's designed so that it always can be fixed changing the nrk_api.py, and I guess it could be, but they radically changed (not the markup/design, but the whole structure) their site so much I will recommend a fresh start.
There's also quite some functionalltiy never used by anyone.

Some of the code might be reused to some point. Caching, translations etc. I'm not sure if it's fixed now, but when I wrote the addon, XBMC needed the filextension on images to render them. NRK provide thumbnails from a query url, so I wrote a workaround for this. You will also need to pass the correct cookies or use a cookie jar for page request.


- takoi - 2010-11-08

There's a new version in the repo now. Mainly what i've done differently this time is introduce beans and remove all the different types of id's and instead let the data layer handle the abstract url's. Now view only sees playable/not playable and pass argument onwards. Hopefully this will make it easier to maintain next time they change the layout.

Note that this is a very very stripped down version. Only gives you titles and a way browse. I'll continue to develop it but i just wanted to get something working out fast.


- Agin - 2010-11-09

Just tried the new version, browsing/content description now works great. Thanks!


- kolaf - 2010-11-10

+1 Smile


- dsgh - 2010-11-10

ventech Wrote:There's a new version in the repo now.

It's probably a stupid question, but where do I find this version? The last update on http://code.google.com/p/xbmc-addons/source/browse/#svn/trunk/plugins/video/NRK was in June.


- takoi - 2010-11-10

..as in official addon repository. Dharma only


- dsgh - 2010-11-11

Thanks! Turned out I had an outdated version of xbmc. This version of the plugin works great on my AppleTv (atv flash).


- oro2 - 2010-11-11

Works great now (win dharma beta 4)
Thanks.