Kodi Community Forum
[RELEASE] Danish repository - dr.dk, tv2.dk, onside tv & more Denmark addons to come - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Third Party Repositories (/forumdisplay.php?fid=157)
+---- Thread: [RELEASE] Danish repository - dr.dk, tv2.dk, onside tv & more Denmark addons to come (/showthread.php?tid=82238)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


[RELEASE] Danish repository - dr.dk, tv2.dk, onside tv & more Denmark addons to come - Ariba - 2010-09-30 19:57

With the addition of repositories for XBMC addons I really feel it would be nice with a joined repository for danish addons. But it only makes sense if could get other danish addon developers onboard. I contacted twinther who has made the great addons for dr.dk and tv2.dk, he agreed. So now we have set up a repository at github.

Right now the following addons is in the repository:
  • dr.dk Bonanza
  • dr.dk Live
  • dr.dk podcast
  • tv2.dk
  • onside TV
  • TV2/Regionerne
  • Pixel.tv


The repository can be installed from the following zip.
http://github.com/xbmc-danish-addons/Danish-XBMC-addons/raw/master/repository.danish.addons.zip

If you have made a danish plugin you want to include in the repo please make a pull request on github or contact me.


- twinther - 2010-09-30 20:40

It's official people - let's us know what you think and if you have any problems. My old repository can be considered deprecated.

For anyone interested in chipping in with some code help might be interested in the script.module.danishaddons addon I've been working on. It's an utility module to make our plugins more consistent and add convenience methods.

To use it you simply add an
<import addon="script.module.danishaddons" version="1.0.0"/>
in your addon.xml and
from danishaddons import *
in your .py file.

This will give you a set of constants: ADDON, ADDON_ID, ADDON_PATH, ADDON_HANDLE, ADDON_DATA_PATH and ADDON_PARAMS - as well as a couple convenience methods such as web.downloadAndCacheUrl(..)

If you are interested have a look at the plugin.video.dr.dk.podcast addon and feel free to ask questions Smile


- bblauritzen - 2010-10-01 13:47

Great work guys..

This is highly appreciated..


- Dannermax - 2010-10-03 00:32

incredible work guys..im not a coder myself, so i can only contribute by telling you how cool i thing the work you guys are doing is... Smile


Cool - kazp0r - 2010-10-03 16:46

Thanks guys, awesome! Wink


- exxo - 2010-10-04 01:21

Thanks for the addons. They're great Smile

Is this repository the same which twinther released in another thread?
If no, then how do you uninstall a repository? I haven't found a way through the XBMC UI and I am not sure where to find the files Confused.


- spiff - 2010-10-04 12:55

hit 'i' on the repo in your browser. or open context.


- InKaKiLLeR - 2010-10-06 23:08

Hi!

I've created a plugin for the non live part of http://www.dr.dk/nu.

The plugin was made for the fun of it, and to get into xbmc python scripting.

For those who are interested, get it here: http://www.filedropper.com/pluginvideo

Issues...

Some videos are working and some are not, but the non working items does indeed work if downloaded and played offline.

Sorting a-z works on linux, but on win32 the sorting is z-a. I can't find any info on the asc / desc sorting stuff Confused

What's missing...

Newest added videos and videos being spotted for.
The possibility to download a video if it won't stream.


- twinther - 2010-10-07 07:32

exxo Wrote:Is this repository the same which twinther released in another thread?

No, this is a different repository. Mine wasn't updated so I have deleted it to avoid confusion.


- twinther - 2010-10-07 08:15

InKaKiLLeR Wrote:Hi!

I've created a plugin for the non live part of http://www.dr.dk/nu.

The plugin was made for the fun of it, and to get into xbmc python scripting.

For those who are interested, get it here: http://www.filedropper.com/pluginvideo

Issues...

Some videos are working and some are not, but the non working items does indeed work if downloaded and played offline.

Sorting a-z works on linux, but on win32 the sorting is z-a. I can't find any info on the asc / desc sorting stuff Confused

What's missing...

Newest added videos and videos being spotted for.
The possibility to download a video if it won't stream.

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.


- InKaKiLLeR - 2010-10-08 13:17

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/Danish-XBMC-addons/raw/master/repository.danish.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.module.simplejson-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.


- root - 2010-10-09 07:21

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/Danish-XBMC-addons/raw/master/repository.danish.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.module.simplejson-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?


- twinther - 2010-10-09 08:06

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/Danish-XBMC-addons/raw/master/repository.danish.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.module.simplejson-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.


two new plugins - twinther - 2010-10-09 08:35

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


- pewpew1 - 2010-10-09 13:13

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=77809&highlight=DialogProgress (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)