[RELEASE] Dutch WK 2010 Live Video Plugin (NOS)
#1
Thumbs Up 
Hi,

I have written a quick video plugin for the Dutch NOS website for the 2010 World Cup. According to dustardly it does not work in Italy. This leads me to suspect it will not work outside of the Netherlands at all. If it does work for you and you are not living in the Netherlands, please let me know.

This plugin scrapes the info from http://nos.nl/wk2010/live This page streams the matches that are currently played, live. Therefore the plugin will only work when a match is being played at the moment. The NOS has said that they stop accepting clients when the number of clients reaches over 120000, so that might be the cause of any problems.

In response to a request by Marky909 I have also written a second plugin: wk2010gemist. This scrapes http://nos.nl/wk2010/gemist/ and gives you a list of previous matches. When you click the match you get a choice of "Samenvatting" (Summary) "1e helft" (1st half) or "2e helft" (2nd half).

Install instructions for both plugins:
1. Unpack into plugins/video directory
2. Done

Links:
wk2010 (Live feeds)
wk2010gemist (Summaries and archive)

Please let me know if you use the plugins and if they work for you (or not). Especially let me know if something breaks, since then I can try to fix it.

Greetings,

Erwin

Update 12-06-2010: The script was broken because the NOS implemented cookies. Cookies are now handled properly, so the script works again.
Update 23-06-2010: The script now supports both matches that are played at once.
Update 23-06-2010 - 2: Updated post to reflect current situation, added wk2010gemist plugin.
Reply
#2
i can stream no problem using Firefox from Canada.

when I use this plugin on xbox, it loads the stream well, but then the video output is chunky, multicoloured blocks with no audio.
Reply
#3
Thank you very much for testing my plugin.

It is interesting to know that the stream is available internationally.

About the plugin not working on the Xbox: My best guess would be that the XBMC on the Xbox does not support the codec used on the website properly. This is a guess though, since I do not own an Xbox to test with. I use the linux version in Ubuntu 10.04. Can anyone tell me if there are different codecs in use by XBMC for Xbox vs XBMC for Linux?

I just tested with the second match (Uruguay - France) and can confirm that it works with that one as well (at least on my machine).

Greetings,

Erwin
Reply
#4
i forgot which version i had and so i just replaced with this build:

T3CH XBMC 2010-04-27 SVN rev29407

still no luck.
perhaps it has something to do with MS Silvercrap?

Thanks for making this. I'll just have to watch on my laptop instead.

Cheers.
Reply
#5
The script doesn't use the MS Silvercrap stream. There is a WMV stream on the site too, which is what the script uses. I still think it is a codec issue (what you describe as the problem sounds like a codec problem to me).
Reply
#6
blocked ouside nederland a message on screen say not able to see in italy. Big Grin no way? i tested a nl proxy without result.
Reply
#7
Works for me on my Xbox using the latest build from http://www.xbmc4xbox.org/. Thanks for writing this great plug-in and making it possible for me to avoid that Moonlight crap.
Reply
#8
Goeie plugin, werkt vlekkeloos. Is het ook mogelijk om de samenvattingen van de wedstrijden via deze plugin te bekijken?
Reply
#9
Thank you all for replying. This is very motivating.

About the post right above this one: He is asking for "samenvattingen" (summaries) of the matches. These can be found at http://nos.nl/wk2010/gemist/

I will work on getting those in the plugin as well (or making a different plugin, depends on what works best).

Erwin
Reply
#10
Marky909 Wrote:Goeie plugin, werkt vlekkeloos. Is het ook mogelijk om de samenvattingen van de wedstrijden via deze plugin te bekijken?

Done, zie OP.
Reply
#11
dank je!

fantastische plugin, werkt ook met prima met nightly's (zelf wel even een addon.xml maken)
Ik heb geprobeerd om het geheel voor journaal24 (en politiek24 etc)streams te verbouwen, maar ik krijg dat nog niet voor elkaar. Hoe kan ik de basispagina voor de stream url opzoeken?
Reply
#12
bosel Wrote:dank je!

fantastische plugin, werkt ook met prima met nightly's (zelf wel even een addon.xml maken)
Ik heb geprobeerd om het geheel voor journaal24 (en politiek24 etc)streams te verbouwen, maar ik krijg dat nog niet voor elkaar. Hoe kan ik de basispagina voor de stream url opzoeken?

Als voorbeeld Journaal24:

URL=http://nos.nl/nieuws/live/journaal24/

Open die in Firefox/Chrome, en bekijk de broncode (view source).

Zoek dan een url die lijkt op http://content.nos.nl/livestream/1277370...ournaal24/

CTRL-F "content.nos.nl"

Bekijk daar de broncode van

Blijkt een XML te zijn, met onder andere een location field

Wat je wil is de URL in het location field

De manier om dit te doen in een plugin is via regular expressions, daar zijn veel tutorials over te googlen. De python module die je nodig hebt heet re.

Ik hoop dat dit genoeg is qua hulp. Misschien maak ik in de zeer nabije toekomst wel een algemene NOS plugin met alle NOS streams (ik heb zelf al een NOS Journaal plugin in gebruik, die scraped tv.nos.nl, moet hem alleen nog even publiceren). Als je nog vragen hebt kan je ze altijd stellen.

Groeten,

Erwin

PS Sorry for the Dutch, but the question related to a Dutch newsstream. If all posts should be in English (this being an English forum and all) please say so and I'll edit my post.
Reply
#13
Thanks,

I got it to work, I've even managed to add some other nederland 24 channels.
Several of these provide more information than just the title "currently playing/next program etc." which I managed to scrape, but now I'm stuck trying to get the plugin to display the info. Where should I start? Should I change the infoLabels={ bit, or alter the liz. string? As you can tell I'm hacking away at the limit of my scripting ability...
Reply
#14
My last reply on this subject (we're getting a bit far off-topic, if you want more help, please open a thread in the Plugin/Script (Python) Development Forum)

The way I use to alter the information that is displayed is the following:
When you add a link to the screen, you call the addLink(name,url,iconimage) function. What get's displayed on the screen is anything in the 'name' string. Therefore, instead of mucking about in the addLink function itself, just alter the 'name' string to display what you want it to display.

Greetings,

Erwin
Reply
#15
Misschien een Champions League Plugin?

thnx!


// the url die jij zoekt in xml is

http://livestreams.omroep.nl/nos/champio...t=4c8fd5d7
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Dutch WK 2010 Live Video Plugin (NOS)0