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)



- VictorV - 2009-12-17

berland Wrote:May I suggest a name change for the plugin from 'nrk media browser' to simply 'NRK'?

Yeah, I thought about that myself. The name is to long to add any further path specification to the plugin :p


- bweb - 2009-12-18

Hei igjen.
episode 1 og 2 virker, ingen andre. Får opp dette på de andre episodene "ingen kontakt med icanal..." og så feilmeldingen som vist under i loggen. Oooops...I'll try to post in english from now, sorry!

bweb Wrote:Her er feilmeldingen i loggen fra "Jul i Svingen" testing - langt som et ondt år så jeg fikk ikke lagt inn alt. Legger derfor bare til der hvor selve feilmeldingen kommer. Har forøvrig testet med versjonen fra 13.12.2009 (takk for hjelpen berland!) men med samme resultat.

Code:
17:05:40 T:3078539120 M:1866084352   DEBUG: ------ Window Deinit (DialogOK.xml) ------
17:05:40 T:2859834224 M:1866084352   ERROR: PluginConnectionError: (PluginConnectionError::Connection Exception Direction!)
17:05:40 T:2859834224 M:1866084352   ERROR: Traceback(7) - most recent call last:
17:05:40 T:2859834224 M:1866084352   ERROR: ------------------------------------------------------------
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://default.py, line 85, in ?
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin.Main()
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/xbmcplugin_program.py, line 231, in __init__
17:05:40 T:2859834224 M:1866084352   ERROR:      self.open()
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/xbmcplugin_program.py, line 246, in open
17:05:40 T:2859834224 M:1866084352   ERROR:      self.mode = self.mapping[self.state.type]()
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/xbmcplugin_program.py, line 201, in _handle_show_clip
17:05:40 T:2859834224 M:1866084352   ERROR:      else: self.item = self.api.get_show_clip(
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/api_nrk.py, line 205, in get_show_clip
17:05:40 T:2859834224 M:1866084352   ERROR:      data = self.dman.get_data(url)
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/connection_manager.py, line 275, in get_data
17:05:40 T:2859834224 M:1866084352   ERROR:      data = self.open_connection(url, mode, body, headers, silent)
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/connection_manager.py, line 242, in open_connection
17:05:40 T:2859834224 M:1866084352   ERROR:      'No data received. Aborting...',
17:05:40 T:2859834224 M:1866084352   ERROR: ------------------------------------------------------------
17:05:40 T:2859834224 M:1866084352   ERROR: Connection to host http-icanal-od.online.no raised exception
17:05:40 T:2859834224 M:1866084352   ERROR: No data received. Aborting...
17:05:40 T:2859834224 M:1866084352  NOTICE: Plugin encountered a error retreiving virtual directory
17:05:40 T:2859834224 M:1866084352    INFO: Scriptresult: Success
17:05:40 T:2859834224 M:1865625600    INFO: Python script stopped
17:05:40 T:2859834224 M:1865625600   DEBUG: Thread 2859834224 terminating



- VictorV - 2009-12-18

bweb: try:
http://prosjektet.net/xbmc/plugins/nrk_plugin_18122009.7z

I haven't tested it, since I never get icanal streams, but I think the error was just a stupid bug where I replaced not only the scheme, but also some of the host name. Thanks for the logs!

I also sorted out the caching issue (I think.. and hope..) so the directory browsing speed are increased


Berland: The plugin are now in svn. Please feel free to contribute Smile


- bweb - 2009-12-18

VictorV Wrote:bweb: try:
http://prosjektet.net/xbmc/plugins/nrk_plugin_18122009.7z

I haven't tested it, since I never get icanal streams, but I think the error was just a stupid bug where I replaced not only the scheme, but also some of the host name. Thanks for the logs!

I also sorted out the caching issue (I think.. and hope..) so the directory browsing speed are increased


Berland: The plugin are now in svn. Please feel free to contribute Smile

Thanks!
It worksSmile First time I tried (#17) it aborted due to some kind of time issue. But all the other episodes worked - and I tried #17 again and it did not fail - so now I am closer to recruit my children as ubuntu and xbmc users.

Thanks and Merry Christmas St. VictorV


- VictorV - 2009-12-19

This plugin is working pretty much as it should at the moment, and the only thing left to be done is some polishing. If you feel creative one day, there's some things that could be done.

- A nice looking icon set for the main menu. I just found a bunch of GPL icons
- A nice looking icon set for the themes. I just threw something together in photoshop in a hurry
- We don't need to use the same intro. videos as the use at NRK in the playlist, and it would be cool with some fancy retro style videos or something. Just keep 'em short.
- The teletext would be a lot nicer with some fancy graphic. I also going to make more usable if people use it?
- The xml for podcast might need a update. I haven't checked the status.

Otherwise there are two things I miss.
- display recommended shows
- Download podcast to hard disk

If you want to contribute, use the svn or contact me, and I will add it.

Berland: There's some translation exercises for you in the repo. :p


NRK super in webradio.xml - bweb - 2009-12-20

VictorV Wrote:This plugin is working pretty much as it should at the moment, and the only thing left to be done is some polishing. If you feel creative one day, there's some things that could be done.

- A nice looking icon set for the main menu. I just found a bunch of GPL icons
- A nice looking icon set for the themes. I just threw something together in photoshop in a hurry
- We don't need to use the same intro. videos as the use at NRK in the playlist, and it would be cool with some fancy retro style videos or something. Just keep 'em short.
- The teletext would be a lot nicer with some fancy graphic. I also going to make more usable if people use it?
- The xml for podcast might need a update. I haven't checked the status.

Otherwise there are two things I miss.
- display recommended shows
- Download podcast to hard disk

If you want to contribute, use the svn or contact me, and I will add it.

Berland: There's some translation exercises for you in the repo. :p

I tried to send you a pm. It seems like it works, however I can't find the message in the Sent Items, so I guess you have not got it.

NRK super radio could be added to the webradio.xml:
<channel id="nrksuper">

<title>NRK SUPER</title>

<logo>nrk_super.png</logo>

<stream>

<bitrate>128</bitrate>

<format>wma</format>

<link>http://media.hiof.no/streams/m3u/nrk-super-128.m3u</link>

</stream>

I made an icon as well but I can't poste it here! I edited this picture:
http://diary.sdg.no/wp-content/uploads/2009/11/NRK_super_postkort1.png
This works fine in my set-up.

And one question:
Have you the same links in the code to Direkte and Kanalene? My youngest can not read yet, so I'd realy like to have different pictures for different menues. Now it seems like both these are linked to live-icon.png...but I do not know where to make these changes in the scripts.


- VictorV - 2009-12-26

Nå har jeg hatt litt tid til å fikset dette.

http://prosjektet.net/xbmc/plugins/nrk_plugin_26122009.7z

- Ikonet for kanalene er nå channels-icon.png
- Jeg har lagt til radiokanalen NRK Super
- Lagt til "Anbefalte programmer" som en ny visning


- bweb - 2009-12-26

VictorV Wrote:Nå har jeg hatt litt tid til å fikset dette.

http://prosjektet.net/xbmc/plugins/nrk_plugin_26122009.7z

- Ikonet for kanalene er nå channels-icon.png
- Jeg har lagt til radiokanalen NRK Super
- Lagt til "Anbefalte programmer" som en ny visning

Suverent!


- tunefish - 2010-01-04

I have the same problem as one of the first guys in this thread.
Whener I click on an icon to play a file, nothing happens. It just says "click". Wink
I installed a fresh and updated xbmc to make sure it's not outdated.

The whole thing is a bit strange, because when I enter "sports" and "latest/aktuelt" or whatever, it starts autoplaying the latest files with no problem, just like on my pc. (I use xbox)

But when I try to play a specific file, again, nothing happens. Any ideas?
I've had the same trouble with the youtube script, if that could be related.

Edit: I use XBMC-SVN_2010-01-03_rev26316-T3CH and nrk_plugin_26122009.7z

Edit2: I've now tried on my other XBOX, and the same thing happens. Nothing, that is.
I can browse just fine, everything seems okay, except the fact that nothing happens when clicking on the actual files.
When clicking SPORT>AKTUELT, it plays. (Because it's a play list?)
But still, nothing under "PROGRAM" will play. Just the increasingly annnyoing XBMC "click".


- VictorV - 2010-01-04

It's hard to tell jus from your description, and the last version I tried on my xbox ran without problems (it's been some major change since tho).

If you can post a xbmc debug log, it could make it possible to track down the problem.


Quote:When clicking SPORT>AKTUELT, it plays. (Because it's a play list?)

The "aktuelt" sub category under sport, news etc. will create a playlist and auto play as default, but you can change this behavior in the settings


- tunefish - 2010-01-04

Quote:04:37:11 M: 24350720 DEBUG: python24.dll: Total bytes leaked: 3212773
04:37:11 M: 25595904 DEBUG: DIRECTORY::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
04:37:11 M: 25595904 DEBUG: Saving fileitems [plugin://programs/NRK/?kanalene&&type=%27kanalene%27&id=None&]
04:37:11 M: 25595904 DEBUG: -- items: 3, sort method: 0, ascending: false
04:37:11 M: 25477120 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
04:37:13 M: 25976832 DEBUG: CApplication::OnKey: 271 pressed, action is 4
04:37:13 M: 25952256 DEBUG: CApplication::OnKey: 271 pressed, action is 4
04:37:14 M: 25976832 DEBUG: CApplication::OnKey: 256 pressed, action is 7
04:37:15 M: 25976832 DEBUG: CUtil::RunFFPatchedXBE - Auto Filter Flicker is off. Skipping Filter Flicker Patching.
04:37:15 M: 25976832 ERROR: Unable to run xbe : plugin://programs/NRK/?kanalene&&type=%27channel%27&id=%272%27&

These are the last lines from the debug log.
No error messages before this, so not sure how much you need.


- tunefish - 2010-01-04

It couldn't possibly be because my xbmc folder is e:\xbmc instead of e:\apps\xbmx ?


- bweb - 2010-02-09

OL i HD?
Ser at NRK skal kjøre HD-sendinger på http://www.nrkol.no. Er dette noe noen også klarer å trylle frem i denne plugin'en? Ser at NRK sier at det ikke er støtte i Linux, men jeg håper likevel.


- pettergulbra - 2010-04-29

Is this threed dead?

I wonder, because. I can`t get this plugin to work under XBMC windows.

Kindly

Petter


- klikkamongo - 2010-04-30

Hi!

I am using NRK-plugin on XBMC in windows. It works perfectly to watch video with the plugin, but I cant hear podcasts.

When i click and try for instance "verdibørsen", then i get this message: "exceptions.unboundlocalerror in parse_feed at line 118 in file plugin://NRK_API/xbmcplugin_podcast.py local variable 'ok' referenced before assignment.

I can also click "view log", but I dont know where to read my log.

Anyone knows how to solve this problem? Maybe NRK have change their podcast settings?