Kodi Community Forum

Full Version: The official addon DR TV (drnu) byTWinther has stopped working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
The addon DR TV (drnu) has started failing on archives.
The reason is that DR.DK has changed links from visible to encrypted links.
The addon points to https://tommy.winther.nu/wordpress/ to get support, but this site do not accept support requests.

As an example the following link still works (in Denmark)
https://drod01s-vh.akamaihd.net/i/dk/cle...dOfHearing

But after 2019-01-29 11:18:20 the link in the DR TV addon has changed to:
"Uri":null,"EncryptedUri":"01000003002a56fa396c55f053ca24aac5fff9fc4a75265083b55a7c3eb2c24dca13bcb19b5412a7564ed0c44cdd04fb4c357261790e1b3aae4fcdb324f10404152d202ab66e591a26e6bb08c2064a7f14ea2608276d880a44cf81fd4766cb5898f9e04db723cd463bccaffcb2d2847ef14980d35797627a357938b30a80dbd61ca5c2c63cb17a34f71798e33b06412d0158123d107ab99177856002275ab0675a2354c2ce6c5cc83c73fdb358547c2353a165a4d505559dc8468363aa93e8cbedf83a0d3a6cfbbc10e939fe187ff66407051175165d38a4a514e5cb3e3e480c58402a8fefcebd14f601463d9dd0cfdfddaba89221e2c938c4409026ea99090bd2d3661537a3927973a6ba07c0b42688074d04abea02a68d02b88ea66f99327805959338077011b334f6547fbbdc742cc62dbee24b7ef7f309e6c8e8da6f92463939f8b71e96171ae1dbd5232b66b741fbd749d4c36e9210cae7f7d0e33d3d81039abb035cc676ec773332eef73072b2cc9892ef66a03ab50d23109a184d82cc26f58fd19b05f0502d98e225edc175cb59838bdc06","FileFormat":"mp4","Target":"HLS"

This is just an information to tell about my information on this problem.
Thread moved to Video addons.

Try raising the issue on his GitHub - https://github.com/twinther
(2019-01-30, 11:16)DarrenHill Wrote: [ -> ]Thread moved to Video addons.

Try raising the issue on his GitHub - https://github.com/twinther
 Hi Darren!

Thank you

Done: Try raising the issue on his GitHub - https://github.com/twinther

But it seems that twinter has been inactive in more than a year on Kodi matters.
Not much we can do then except mark it as broken in the repo (if appropriate).

It's up to @twinther as it's his add-on, but he hasn't been seen here for 3-4 months either. So you might be out of luck unfortunately.
Hi guys,
I just found this thread via Google. I'm Danish also.

I developed my own little Windows application a few years ago for downloading via dr.dk (similar to the old DR_Downloader.exe), and just today as I wanted to download some videos, I discovered this issue too, and how the Uri attribute was gone.

I'm a software developer, so if it is possible to download via an encrypted URI (which I will need to investigate first), I might be able to change the code for the plugin as well as my own program. I went to https://github.com/twinther?tab=repositories but I don't see any repositories named something with DRnu?
Ah thanks.

I just found out that youtube-dl.exe has a special handler for downloading from dr.dk - wow, I didn't know!

A user just recently added decryption of URIs in the code, you can see the change here:

https://github.com/rg3/youtube-dl/commit...c80cc3be2d

See line 138 with the method/function decrypt_uri():

Code:

def decrypt_uri(e):
n = int(e[2:10], 16)
a = e[10 + n:]
data = bytes_to_intlist(hex_to_bytes(e[10:10 + n]))
key = bytes_to_intlist(hashlib.sha256(
('%s: sRBzYNXBzkKgnjj8pGtkACch' % a).encode('utf-8')).digest())
iv = bytes_to_intlist(hex_to_bytes(a))
decrypted = aes_cbc_decrypt(data, key, iv)
return intlist_to_bytes(
decrypted[:-decrypted[-1]]).decode('utf-8').split('?')[0]

I have no experience editing Kodi addons nor using GitHub, but if no one else is up for it, I'll try to make a patch for the drnu addon. Let me know what you think.
If you can fix the code and/or merge the decryption code part from youtube-dl repo, I will easily be able to assistent you with the GIT pull request. :-)

Tommy explicitly mentions om his webpage, that he has abadonned the DR project - Mainly because DRs API is NOT for public usage.

If can get this addon working again, we should consider doing a fork om github and maybe even contact DR for getting a direct statement om usage from a KODI perspective.
(2019-01-30, 23:15)pilsnerdk Wrote: [ -> ]Ah thanks.

I just found out that youtube-dl.exe has a special handler for downloading from dr.dk - wow, I didn't know!

A user just recently added decryption of URIs in the code, you can see the change here:

https://github.com/rg3/youtube-dl/commit...c80cc3be2d

See line 138 with the method/function decrypt_uri():

Code:

def decrypt_uri(e):
n = int(e[2:10], 16)
a = e[10 + n:]
data = bytes_to_intlist(hex_to_bytes(e[10:10 + n]))
key = bytes_to_intlist(hashlib.sha256(
('%s: sRBzYNXBzkKgnjj8pGtkACch' % a).encode('utf-8')).digest())
iv = bytes_to_intlist(hex_to_bytes(a))
decrypted = aes_cbc_decrypt(data, key, iv)
return intlist_to_bytes(
decrypted[:-decrypted[-1]]).decode('utf-8').split('?')[0]

I have no experience editing Kodi addons nor using GitHub, but if no one else is up for it, I'll try to make a patch for the drnu addon. Let me know what you think.
 I'll think it could be very cool if you dig into this this problem.
I've been using this add-on for long time and is very sad to see that is broken again. I have paid my licens to DR and I will decide where to see the shows.
Darn annoying that DR are making changes for no reason.
Hi,

There's a patch based on the yotubue-dl findings here
I am not sure that the patch will be merged given the blog post by TWinther.

I think the main question is if we could make a fork of drnu and have it included in the Kodi repo.  If so what would the procedure be?

Thanks,
https://github.com/krogsbell/IPTV/blob/m...-02-02.zip

Decryption added to my version of drnu addon
Thanks for fixing this so fast.

But the fix does not work on LibreElec 9(Linux)

Will check the logs tomorrow, but guessing here that I might miss some dependencies/libraries for decryption!?

/Morten
Works for me on Kodi 17.6, 18.1RC1 and LibreEXEC 9.0

I install with the GitBrowser ;-)

Sorry!
Works together with my nordicchannels addon.
Must fix - it should work without this addon.

Try this:
https://github.com/krogsbell/IPTV/blob/m...-02-03.zip
Yep 02-03 version works - thanks

Wait icon flashing a couple of and First 1-2 seconds are without sound, but else from that it streams perfect :-)

Also like the addition of expiring episodes.

Anyway to push the code updates upstream to twinther's GitHub repo as a pill request?

Else we'll need to a new repo + replace add-on in the official kodi add-on repo.

Great work!

/Morten
(2019-02-03, 03:03)krogsbell Wrote: [ -> ]Works for me on Kodi 17.6, 18.1RC1 and LibreEXEC 9.0

I install with the GitBrowser ;-)

Sorry!
Works together with my nordicchannels addon.
Must fix - it should work without this addon.

Try this:
https://github.com/krogsbell/IPTV/blob/m...-02-03.zip
Thank you Krogsbell.

I have just installed the new add-on and it's working fine.
It just take a little while before it has handled the URL, but that's a small price to pay for getting DRNU working again.

Very nice of you, to take care of the problem so fast. Big Grin
Pages: 1 2