• 1
  • 12
  • 13
  • 14(current)
  • 15
  • 16
  • 47
[RELEASE] Norwegian NRK Web-TV (Video) Plugin
Very nice! But there is a minor bug that I had to fix before getting it working:

ERROR: Error Type: <type 'exceptions.SyntaxError'>
ERROR: Error Contents: ("Non-ASCII character '\\xc3' in file /home/finstad/.xbmc/addons/plugin.video.nrk/default.py on line 29, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details", ('/home/finstad/.xbmc/addons/plugin.video.nrk/default.py', 29, 0, None))

This was easily fixed by adding this as the very first line in default.py:
# -*- coding: utf-8 -*-

I guess newer version of python requires you to explicitly set encoding.
Reply
Updated and working again. Smile

Tusen takk.
Reply
looks great ventech!

suggestion:
use "ctl00_contentPlaceHolder_ProjectImage_projectImage" as fanart for "projects"
Reply
VictorV Wrote:suggestion:
use "ctl00_contentPlaceHolder_ProjectImage_projectImage" as fanart for "projects"
This is one of the things i couldn't find a solution to. xbmc doesn't handle redirects like with thumbs so you'll need the direct link. I've tried using urllib to follow and read the header but its just way too slow. It means waiting for several seconds every time you enter a directory.
Reply
I've ran into that same problem dealing with thumbnails once. I solved it cpickling a dict with info from header to disk, so you would only need to do that once. But that's a lot of extra code for such a small feature.

You might be able to reverse engineer how the redirect is done and create a client side solution if you study the decoded data from the filename in the redirect uri?


I took the teletext feature in my old plugin and made a script if someone other would like this:
http://prosjektet.net/xbmc/script/script...letext.zip
Reply
Good idea, but im unsure of how well this will preform. If im not mistaken serializing and deserializing wont even be polynomial of the input but a much bigger constant possibly as large as all "projects". And this must be done every time you change directory. Think i'll make a ticket to try and fix this in xbmc first
Reply
I modified your plugin and created a version that will run on older xbmc builds. Your design made this a two minutes job ventech Smile Only tested it on my xbox build

http://prosjektet.net/xbmc/plugins/nrk.zip
Reply
development is here now: https://github.com/takoi/xbmc-nrk-addon so you should make a fork if you want an easy way to keep it updated.
Reply
Could somebody please help me add code for a proxy to the NRK browser? Im back from a holiday in Norway and have set up a proxy server there I can use. Smile
Reply
Hrmf... NRK has redone it's radio streams so no radio works anymore with this addon.

If anyone with python skills could have a look it would be great.... Spiff ? Smile
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
i don't touch the snake unless i absolutely have to.. which i don't here, radio is unusable due to the "music" they annoy you with.
Reply
i know you have been "cheating" with this snake before spiff Smile
I'll give you free lifetime support of beer Wink
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
never did anything with nrk. why don't you nag ventech, you know, the author.
Reply
Heck i'll nag anyone Wink Ventech or whoever steps up Smile

Sorry if i was wrong about you patching some stuff on NRK script way back in time. My memory must be fading...

Well maybe i just update the stream adresses myself, python cant be much harder than visual basic Wink
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
The-Boxhead Wrote:Hrmf... NRK has redone it's radio streams so no radio works anymore with this addon.

If anyone with python skills could have a look it would be great.... Spiff ? Smile

Well, it's probably because they changed hosting from Østfold Univeristy College(site: norwegian) to their own hosting at NRK (site: norwegian)

But, as I only just started using this addon - I must ask; How were you able to use the radio-feature before?

If it's similar to this, then you would only need to change the value of
<link>http://media.hiof.no/streams/m3u/nrk-super-128.m3u</link> into:
<link>http://lyd.nrk.no/nrk_radio_super_mp3_h</link> . In theory atleast.

It should also be said that due to this "move", NRK is able to provide even higher quality streams, from HiØ you only got at max 128k, on the new hosting you get 196k.


On a more "related" note: Nice job on the addon. What are the plans for future releases?
Reply
  • 1
  • 12
  • 13
  • 14(current)
  • 15
  • 16
  • 47

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Norwegian NRK Web-TV (Video) Plugin9