[RELEASE] Danish repository - dr.dk, tv2.dk, onside tv & more Denmark addons to come

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
InKaKiLLeR Offline
Junior Member
Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #11
twinther Wrote:Good stuff and so cool DR actually has a json api for this.

The videos that doesn't play can be fixed the same way I did for bonanza. At least it worked for Aftenshowet.
You need to patch the videoURL, something like this:
videoURL = videoURL.replace('http://vod.dr.dk/', 'http://vod.dr.dk/cms/')
so that /cms/ appears twice in the URL.

I don't think it's possible within xbmc to download stream from rtmp url's, but personally I don't care much for downloading this anyway.

It would be great if you could update this to use the script.module.danishplugins utility module. Things like int(sys.argv[1]) all over the place hurts the eyes Smile

Btw. If others are testing this you need to copy the simplejson folder from the bonanza plugin.

I uploaded a new version of the script here:

http://www.filedropper.com/pluginvideodrnu-101

Se changelog below.

1.0.1 - Added an extra /cms to the rtmp url. All videos should now be working.
- Credits goes to twinther.
- This script uses script.module.danishaddons. The easiest way to get this is
- by adding the Danish XBMC Addons Repo. After doing that install the DR.dk Bonanza Video Add-on.
- You'll find the Danish XBMC Addons Repo here:
- http://github.com/xbmc-danish-addons/Dan...addons.zip
- Install this Add-on by using System -> Add-ons- > Install from zip file.
- This script also uses script.module.simplejson. You can download this module from varios places.
- Use this URL to find a download site. http://www.google.dk/search?q=script.mod...2.0.10.zip
- Install this Add-on by using System -> Add-ons- > Install from zip file.
- Updated script to use some constants from script.modules.danishaddons.
find quote
root Offline
Junior Member
Posts: 5
Joined: Sep 2010
Reputation: 0
Post: #12
InKaKiLLeR Wrote:I uploaded a new version of the script here:

http://www.filedropper.com/pluginvideodrnu-101

Se changelog below.

1.0.1 - Added an extra /cms to the rtmp url. All videos should now be working.
- Credits goes to twinther.
- This script uses script.module.danishaddons. The easiest way to get this is
- by adding the Danish XBMC Addons Repo. After doing that install the DR.dk Bonanza Video Add-on.
- You'll find the Danish XBMC Addons Repo here:
- http://github.com/xbmc-danish-addons/Dan...addons.zip
- Install this Add-on by using System -> Add-ons- > Install from zip file.
- This script also uses script.module.simplejson. You can download this module from varios places.
- Use this URL to find a download site. http://www.google.dk/search?q=script.mod...2.0.10.zip
- Install this Add-on by using System -> Add-ons- > Install from zip file.
- Updated script to use some constants from script.modules.danishaddons.

Good to see someone had more time than me to create a DR NU plug-in.

The installation process seems a bit convoluted to me: Shouldn't the user be able to install the plug-in on its own, without requiring separate installation of script.module.danishaddons and simplejson?

Also, a comment to the code: It's seems quite hard to read with all the "self"-references - is it due to the choice of using an object to represent the state?
find quote
twinther Offline
Senior Member
Posts: 293
Joined: Sep 2004
Reputation: 7
Location: Denmark
Post: #13
InKaKiLLeR Wrote:I uploaded a new version of the script here:

http://www.filedropper.com/pluginvideodrnu-101

Se changelog below.

1.0.1 - Added an extra /cms to the rtmp url. All videos should now be working.
- Credits goes to twinther.
- This script uses script.module.danishaddons. The easiest way to get this is
- by adding the Danish XBMC Addons Repo. After doing that install the DR.dk Bonanza Video Add-on.
- You'll find the Danish XBMC Addons Repo here:
- http://github.com/xbmc-danish-addons/Dan...addons.zip
- Install this Add-on by using System -> Add-ons- > Install from zip file.
- This script also uses script.module.simplejson. You can download this module from varios places.
- Use this URL to find a download site. http://www.google.dk/search?q=script.mod...2.0.10.zip
- Install this Add-on by using System -> Add-ons- > Install from zip file.
- Updated script to use some constants from script.modules.danishaddons.

Sweet, nice work!
I'll talk with Ariba about getting you commit access on github.com. Alternatively you can ask for a Pull Request.
This should take care of the installation process..

I am probably going to rename my dr.nu plugin to dr live or something like that to avoid confusion with this one.
(This post was last modified: 2010-10-09 08:36 by twinther.)
find quote
twinther Offline
Senior Member
Posts: 293
Joined: Sep 2004
Reputation: 7
Location: Denmark
Smile  two new plugins Post: #14
I have been working on two new plugins. One for tv2regionerne.dk and one for pixel.tv. They are both available in the repo, so give them a spin and let me know what you think.

TV2/Regionerne
Not all regions provide new shows on tv2regionerne, so these are not up to date in the plugin. Also you can only choose between that dates available on the first page of tv2regionerne.dk for technical reasons (crappy asp.net postback :noSmile

Pixel.tv
Out of respect for what they do I have chosen to play their advertisement before the clip, just as the website does. But since xbmc plays a playlist, you have options Wink
find quote
pewpew1 Offline
Junior Member
Posts: 24
Joined: Sep 2010
Reputation: 0
Post: #15
I am trying to understand python and xbmc better, so I download the tv2 plugin and found out when you click to watch a program, you are able to click other programs for a sec or so, before the DialogProgress window apear (if you click alot it will try to show alot of programs (flood)). So I looked in the code to try to fix it - but no luck. First I thought it was a xbmc bug like this one http://forum.xbmc.org/showthread.php?tid...ogProgress (should be fixed tho).
But without the DialogProgress window it still takes time before the stream is shown. I still believe it is a xbmc bug because I can not see any problems in the code, so anyone else having this problem? I have this problem on my linux and win7 box.
Well, maybe - for some reason - a function is called before playVideo (if key and id is set.. maybe), and that gives the delay. I may look at it later...

And I found 2 other things:
- When you use the DialogProgress you should check if someone have clicked cancel (right now you cant cancel even though you are able to click cancel, and it print it is cancelled).
- when click "tour de france 2009", some of the programs are shown more then once (I have only seen this in the "tour" view - but have not used the addon that much).

But keep up the good work - xbmc is great and so is the new addons Smile
(this is written on my android desire, so I hope the text is understandable)
find quote
twinther Offline
Senior Member
Posts: 293
Joined: Sep 2004
Reputation: 7
Location: Denmark
Thumbs Up    Post: #16
pewpew1 Wrote:I am trying to understand python and xbmc better, so I download the tv2 plugin and found out when you click to watch a program, you are able to click other programs for a sec or so, before the DialogProgress window apear (if you click alot it will try to show alot of programs (flood)). So I looked in the code to try to fix it - but no luck. First I thought it was a xbmc bug like this one http://forum.xbmc.org/showthread.php?tid...ogProgress (should be fixed tho).
But without the DialogProgress window it still takes time before the stream is shown. I still believe it is a xbmc bug because I can not see any problems in the code, so anyone else having this problem? I have this problem on my linux and win7 box.
Well, maybe - for some reason - a function is called before playVideo (if key and id is set.. maybe), and that gives the delay. I may look at it later...

And I found 2 other things:
- When you use the DialogProgress you should check if someone have clicked cancel (right now you cant cancel even though you are able to click cancel, and it print it is cancelled).
- when click "tour de france 2009", some of the programs are shown more then once (I have only seen this in the "tour" view - but have not used the addon that much).

But keep up the good work - xbmc is great and so is the new addons Smile
(this is written on my android desire, so I hope the text is understandable)

Thanks for the feedback. I had a quick look on the video flood problem, but I don't think it's something I can fix in the python script. I think the delay (about 0.5-1 sec on my laptop) is caused by initializing the python engine, etc.
I added the progress dialog in the last version, to give the impression of something happening, instead of sometimes up to 5-10 seconds on my laptop (due to slow wifi, etc.) with no visual status of anything happening

About the other things you mentioned. I will add a check for the canceled progress dialog. The duplicate videos are actually also available on video.tv2.dk, so I can't do much about that.
find quote
pewpew1 Offline
Junior Member
Posts: 24
Joined: Sep 2010
Reputation: 0
Post: #17
Quote:I added the progress dialog in the last version, to give the impression of something happening
It is sad the delay is before playVideo is called, so the progress dialog only "solves" the slow internet and scrub "problem" :/
Sorry I did not check the source (tv2) if it had the programs shown more the once (sorry for been lazy :/ ).
find quote
twinther Offline
Senior Member
Posts: 293
Joined: Sep 2004
Reputation: 7
Location: Denmark
Post: #18
pewpew1 Wrote:It is sad the delay is before playVideo is called, so the progress dialog only "solves" the slow internet and scrub "problem" :/
Sorry I did not check the source (tv2) if it had the programs shown more the once (sorry for been lazy :/ ).

I made a change to how XBMC get's the video URL. This change make the operation blocking and should fix the flood issues.
find quote
ameinild Offline
Senior Member
Posts: 106
Joined: May 2010
Reputation: 0
Post: #19
Suggestion - what about a plugin for http://www.southparkstudios.dk Confused
find quote
exxo Offline
Member
Posts: 51
Joined: Jun 2008
Reputation: 0
Post: #20
ameinild Wrote:Suggestion - what about a plugin for http://www.southparkstudios.dk Confused

If you want to watch South Park episodes, then bluecop has an addon in his repository for this.
http://code.google.com/p/bluecop-xbmc-re...loads/list
Quality is top notch.
find quote
Post Reply