New streaming plugin for nrk.no (Norwegian) - need some help with coding
#1
First I will mention that I am reading the plugin tutorial for XBMC and using TV-Shack plugin as a guide.

My code so far: http://pastebin.com/m2442628d

The page that I will scrape(http://www1.nrk.no/nett-tv/): http://www1.nrk.no/nett-tv/tema/20

The Source code of this category page: http://pastebin.com/m7e845e45

The Categories will be: Barn, Distrikt, Dokumentar, Drama, Fakta, Kultur, Livssyn, Mat, Musikk, Natur, Nyheter, På samisk, På tegnspråk, Sport, Underholdning, Ung.(Norwegian site)

But I have only added a few.

My problem at the moment, is to scrape the page, to get the img, url, title, and maybe description.

If someone is able to give some comments on my code, and or help me out with code that I can use. I would higly apprechiate it.


-----------------
Each category will have a list of all programs available(alphabetically). And they will act as links in XBMC and the XBMC player should start streaming/playing the file.

Thanks for all help. :-)
Reply
#2
Wow it looks very tidy.I gave the tut a go today and I just have to say it's a lot more complicated than I thought it would be.I was doing o.k I guess and will start fresh and try again.It would be easier if all websites Dir were the same and scraped the same.Nod

I am nowhere near where you are.I have to ask.How long has it taken for you to get to this point?How many times did you have to read the tut.

From one enthusiast to another.

.
Reply
#3
Well I based mine on the TV-Shack plugin. And amended that to my needs. Totalt time that I've spent on Boxee plugins and Python, is about 5 hours... 1-2 hours after work each day... I work like 12-14 hours a day, so I don't have much time to spend on Boxee..

Good luck.


If anyone can help, please do so..
Reply
#4
How is this project going? I tried downloading the pastebin file, saving it to

Code:
/Applications/Boxee.app/Contents/Resources/Boxee/plugins/video/NRK/default.py

and it showed up in Settings -> Applications. On adding it, it wasn't recognized as a "video" application, so I ticked that off and added, then went to videos and tried it, got an error message "Failed to retrieve data".

Have you gotten it to work at all?
Reply
#5
It isn't working at all... I gave up learning Python... which I don't have time to..

Someone will have to take on this project.
Reply

Logout Mark Read Team Forum Stats Members Help
New streaming plugin for nrk.no (Norwegian) - need some help with coding0