xbmc-danish-addons / plugin.video.drnu Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Hi @TermeHansen .
Kodi has migrated translations from Transifex to Weblate: https://kodi.weblate.cloud
We encourage all developers with addons in the official Kodi add-on repo to submit their addon for Weblate.
If you would like plugin.video.drnu to get added to Weblate, please provide this info:
For your main en_gb file to get synced with Weblate, you need to add this webhook to your repo for the push event:
https://kodi.weblate.cloud/hooks/github
If direct pushes are wanted, you need to add Github user "weblate" as collaborator.
https://github.com/weblate
This user will automatically accept any collaboration within 5 minutes.
If PR's are the preferred method, Weblate will push to the same PR until merged or closed.
Cheers,
Gade
Hi,
Are there any plans for python 3 compatibility? The upcoming Kodi Matrix will be purely based on v3 for add-ons.
I have reported an issue to xbmc about missing thumbnails
xbmc/xbmc#15187
It is an server issue at DR, as Content-Type for the images often are reported to be "text/xml" (it should be "image/jpeg").
The API is updated as of March 10. See here:
http://www.dr.dk/mu-online/Help/1.3
This means that the plugin is not working anymore on my Raspberry Pi II.
Reading 500 entries at once is not recommended. Use paging with offset
and lower limit
.
I can't list the video in the category 'S', it keep popping up with an error. I submitted it a couple of times to your errorlog.
Can you reproduce the problem?
There is no problems with the other categories. My guess is that the feed has a character that messes with the feed.
Kasper
Fra: https://tommy.winther.nu/wordpress/forums/topic/valg-af-programmer/
Når man går ind i seneste udsendelser er 9 ud af 10 programmer børneprogrammer. Det ville være fedt for os der ikke har børn at kunne gå ind i konfigurationsmenuen og fravælge de to børnekanaler. Er det noget der ville være svært at implementere?
User 'Affer' on the Recordere.dk forums, have suggested a feature for having a marker for already watched episodes. This is a default feature in Kodi, but it does not apply to the DR.
It have been verified that it does not work in latest Kodi version.
The new v5.0.14 doesn't work for me.
I had to revert to v5.0.13 that works fine, although it says it is marked as broken.
I am using Rpi3B+ with Libreelec 9.2 (Kodi 18.9).
Used the bug reporting feature to send a bug reprot to somewhere :-)
I have crash on diff. Dist. Arch/Ubuntu and LibreELEC and kodi 19.4 and add-on ver. 5.1.1-2022-04-20 some on LibreELEC normal live tv works but not on Arch
2022-06-01 20:36:44.421 T:3364 INFO : Starting Kodi (19.4 (19.4.0) Git:20220429-nogitfound). Platform: Linux x86 64-bit
2022-06-01 20:36:44.421 T:3364 INFO : Using Release Kodi x64
2022-06-01 20:36:44.421 T:3364 INFO : Kodi compiled 2022-04-29 by GCC 11.2.0 for Linux x86 64-bit version 5.16.8 (331784)
2022-06-01 20:36:44.421 T:3364 INFO : Running on Arch Linux 0.0, kernel: Linux x86 64-bit version 5.17.9-arch1-1
2022-06-01 20:36:44.421 T:3364 INFO : FFmpeg version/source: 4.3.2-Kodi
2022-06-01 20:36:44.421 T:3364 INFO : Host CPU: Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz, 4 cores available
I am currently in Africa, and miss seeing DR. My son misses Ramasjang.
We have a stable, but slow (1.25 Mbit) connection. I cannot stream with the default quality, as this exceeds my available bandwidth.
Is there a way to set set quality/bandwidth manually, or have it change automatically like DR's flash player?
live-streams are broken. Is this due to the new api version 1.4? Could someone nice person fix this? Many thanks
Playing https://www.dr.dk/drtv/episode/harry-palmer_301935 causes Kodi to crash.
Version: Android/Matrix
This is a feature request to support login in the plugin, as from no later than 2024 q2, DR will make it mandatory to login to view archive content via drtv.
Source: https://www.dr.dk/nyheder/seneste/fra-naeste-aar-skal-alle-logge-ind-se-drtv
For several programs I have noticed that subtitles disappear around 3/5 way through when using the adaptive inputstream type. Maybe the video source file/URL changes and so does the URL of subtitles if it's a hls stream?
For example in this program the subtitles stop being available around minute 40-45 on Kodi. Even though they are enabled, no subtitles are actually shown.
https://www.dr.dk/drtv/se/carmen-curlers_-axels-curlers_336316
Tak for arbejdet med denne add-on.
Jeg kører Libreelec 10.0.4 med Kodi19.5 på Rpi. Har lige opdateret til 6.3.0 (fra 6.2.0) og oplever at drnu crasher i alle menupunkter, pånær Live TV.
kodi.log
It seems that with the ffmpeg backend there are no subtitles. Maybe they are stored under a different key with the new API?
For example this program has subtitles online but they are not available in Kodi:
https://www.dr.dk/drtv/se/signe-molde-paa-udebane_-broendby_luder_336034
I don't have access to my laptop but I can have a look later.
Add-on is listed as defective in KODI add-on catalog
Kodi 18.7 on Raspberry PI and Kodi 18.8 Linux Mint on X86
Hi,
I would like to add subtitles for live TV. Basically they are "hardcoded" on the video in separate stream (the web player on dr.dk/tv "jumps" if you enable subtitles).
Here's a quick patch selecting the stream with hardcoded subtitles if the enable.subtitles
setting is true
.
Would it be OK to add?
From a55f66bf1d1a6a9b4d1f37e4b1eee76014e075a0 Mon Sep 17 00:00:00 2001
From: Rasmus <[email protected]>
Date: Tue, 4 Jan 2022 14:59:38 +0100
Subject: [PATCH] Show subtitles for live TV if subtitles are enabled
---
resources/lib/addon.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/resources/lib/addon.py b/resources/lib/addon.py
index 6f1a1db..218dc17 100644
--- a/resources/lib/addon.py
+++ b/resources/lib/addon.py
@@ -209,7 +209,8 @@ class DrDkTvAddon(object):
server = None
for streamingServer in channel['StreamingServers']:
- if streamingServer['LinkType'] == 'HLS':
+ HLS = 'HLS_subtitles' if get_setting('enable.subtitles') == 'true' else 'HLS'
+ if streamingServer['LinkType'] == HLS:
server = streamingServer
break
@@ -371,7 +372,8 @@ class DrDkTvAddon(object):
if channel['Slug'] == slug:
server = None
for streamingServer in channel['StreamingServers']:
- if streamingServer['LinkType'] == 'HLS':
+ HLS = 'HLS_subtitles' if get_setting('enable.subtitles') == 'true' else 'HLS'
+ if streamingServer['LinkType'] == HLS:
server = streamingServer
break
if server is None:
--
2.34.1
Thanks,
Rasmus
Hi! This is really a great project. Tak!
For different reasons, I prefer to avoid using Kodi, and try to stay on Home Assistant, that I already have running. And my chromecast, that is more partner-friendly.
I am able to stream links (extracted with svtplay-dl) to my chromecast from HA, and seeing this project is all python, I would assume it would be possible to port your work to Home Assistant as a Media Source addon. My python skills are still quite limited, but are my assumptions right? Do you @TermeHansen know of any similar efforts? Or would you be able to give just a simple advice on the idea? Am I totally off? This will then be my chance to get more familiar with python.
Thank you very much!
Andreas
Jeg kan ikke få undertekster på on-demand programmer. Det virker på live stream.
Jeg kan ikke gennemskue hvordan det burde virke...
Virker det hos andre?
Kodi 17.3
Logged on with userID and able to watch e.g. Barnaby, but Live channels do not work except TVA Live when in EU.
Thank you for User logon and Gensyn.
Regards
Hans
Similar to the issue opened november 30 - (python3 compatibility) - as mentioned by andersenthomas.
@TermeHansen - replied that he would make a PR and start testing the changes needed for python3.
Any news on that?
I am using Rpi3B+ with Libreelec 9.2 (Kodi 18.9) and DRTV 5.0.15.
In the context menu for the DRTV app. I have set "Start in area" to "Show area chooser".
After a reboot I will then see the Area Chooser when entering the DRTV app. and I can select what area to use.
However, if I leave DRTV and re-enter DRTV I will not see the Area Chooser again.
To see the Area Chooser I have to reboot!
It is not enough to use the context menu to set something else in "Start in area", e.g. "Ramasjang". The DRTV app will only switch to a new area or show the Area Chooser after a reboot. Is this intended behavior, or is this just happening for me, using Librelec?
This is not a new "feature" for 5.0.14 or 5.0.15.
When viewing an episode from dr.dk, the subtitles suddeltly disappear. It happens randomly, sometimes after 5 minutes, sometimes after 30 minutes, and sometimes the subtitles remain during the full episode. The issue was e.g. yesterday viewing https://www.dr.dk/drtv/serie/loegnens-hus_315527.
My Kodi is running 19.4.0 within LibreElec 10.0.2 on a RPI3.
It seems like the plugin has a limit of 24 items that gets loaded, when going into it and logged into a DR account. Using version 6.4.1
5.1.0+matrix.1 fails (Says "Check the logs for more information" - it is unclear to me how to see log).
I assume the 'hls' inputstreams would fix this.
But I do not see a way to select 5.1.1.
It seems that skipping forward has stopped working on my system, even things like skippinh 30s forward just after starting a programme. Resuming a partially watched programmes also seems to have broken on my system.
This is the log messages when I skip forward.
2022-04-18 20:57:07.904 T:1266 WARNING <general>: OutputPicture - timeout waiting for buffer
2022-04-18 20:57:28.097 T:1260 INFO <general>: Process - eof reading from demuxer
2022-04-18 20:57:28.097 T:1260 INFO <general>: CVideoPlayer::OnExit()
2022-04-18 20:57:28.097 T:1260 INFO <general>: VideoPlayer: eof, waiting queues to empty
2022-04-18 20:57:28.097 T:1260 INFO <general>: Closing stream player 1
It happens with both the current release and v5.0.16 so maybe it is a change on the dr.dk/tv server?
I'm running Kodi 19.4 (matrix) via libreelec on a raspberry pi 4.
Thanks,
Rasmus
To use the faster akamai CDN.
The live-streams seems to have been broken in this very nifty addon. Could anyone fix this? A lot of thanks in advance!
Found a bug in the logs on Kodi 18 on Windows 10, when addon tries to load the thumbnails.
How to replicate.
The thumbnails still seems to load just fine - But we should not have the error.
Multiple lines from the logs similar to this is printed:
00:33:45.148 T:11196 ERROR: CImageLoader::DoWork - Direct texture file loading failed for special://masterprofile/Thumbnails/a/a2597b5e.jpg
Hi. Love this add-on, so really sad that it started crashing a couple of weeks ago. Didn't update anything else (maybe some add-on did so in the background), so seems a bit strange.
Running OSMC, but till now it's been playing nice.
Enabled debug logging, and the output when trying to load the add-on:
2023-01-25 20:06:55.041 T:613 DEBUG <general>: PushCecKeypress - received key b duration 0 2023-01-25 20:06:55.059 T:557 DEBUG <general>: HandleKey: 11 (0x0b, obc244) pressed, action is Select 2023-01-25 20:06:55.060 T:557 DEBUG <general>: CGUIMediaWindow::GetDirectory (plugin://plugin.video.drnu/) 2023-01-25 20:06:55.060 T:557 DEBUG <general>: ParentPath = [addons://sources/video]2023-01-25 20:06:55.060 T:919 DEBUG <general>: Thread JobWorker start, auto delete: true 2023-01-25 20:06:55.061 T:920 DEBUG <general>: Thread waiting start, auto delete: false 2023-01-25 20:06:55.069 T:919 DEBUG <general>: CAddonDatabase::SetLastUsed[plugin.video.drnu] took 9 ms 2023-01-25 20:06:55.070 T:921 DEBUG <general>: Thread JobWorker start, auto delete: true 2023-01-25 20:06:55.070 T:920 DEBUG <general>: StartScript - calling plugin DR TV('plugin://plugin.video.drnu/','6','','resume:false') 2023-01-25 20:06:55.070 T:922 DEBUG <general>: Thread LanguageInvoker start, auto delete: false 2023-01-25 20:06:55.070 T:922 INFO <general>: initializing python engine. 2023-01-25 20:06:55.070 T:922 DEBUG <general>: CPythonInvoker(20, /home/osmc/.kodi/addons/plugin.video.drnu/default.py): start processing 2023-01-25 20:06:55.161 T:557 DEBUG <general>: ------ Window Init (DialogBusy.xml) ------ 2023-01-25 20:06:55.168 T:613 DEBUG <general>: PushCecKeypress - received key b duration 127 2023-01-25 20:06:55.252 T:922 DEBUG <general>: -->Python Interpreter Initialized<-- 2023-01-25 20:06:55.252 T:922 DEBUG <general>: 2023-01-25 20:06:55.253 T:922 DEBUG <general>: CPythonInvoker(20, /home/osmc/.kodi/addons/plugin.video.drnu/default.py): the source file to load is "/home/osmc/.kodi/addons/plugin.video.drnu/default.py" 2023-01-25 20:06:55.253 T:922 DEBUG <general>: CPythonInvoker(20, /home/osmc/.kodi/addons/plugin.video.drnu/default.py): setting the Python path to /home/osmc/.kodi/addons/plugin.video.drnu:/home/osmc/.kodi/addons/script.module.certifi/lib:/home/osmc/.kodi/addons/script.module.chardet/lib:/home/osmc/.kodi/addons/script.module.dateutil/lib:/home/osmc/.kodi/addons/script.module.idna/lib:/home/osmc/.kodi/addons/script.module.inputstreamhelper/lib:/home/osmc/.kodi/addons/script.module.requests-cache/lib:/home/osmc/.kodi/addons/script.module.requests/lib:/home/osmc/.kodi/addons/script.module.six/lib:/home/osmc/.kodi/addons/script.module.urllib3/lib:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages 2023-01-25 20:06:55.253 T:922 DEBUG <general>: CPythonInvoker(20, /home/osmc/.kodi/addons/plugin.video.drnu/default.py): entering source directory /home/osmc/.kodi/addons/plugin.video.drnu 2023-01-25 20:06:55.253 T:922 DEBUG <general>: CPythonInvoker(20, /home/osmc/.kodi/addons/plugin.video.drnu/default.py): instantiating addon using automatically obtained id of "plugin.video.drnu" dependent on version 3.0.0 of the xbmc.python api 2023-01-25 20:06:56.800 T:922 DEBUG <CAddonSettings[plugin.video.drnu]>: trying to load setting definitions from old format... 2023-01-25 20:06:56.800 T:922 DEBUG <CSettingsManager>: requested setting (fanart.size) was not found. 2023-01-25 20:06:56.805 T:922 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'json.decoder.JSONDecodeError'> Error Contents: Extra data: line 1 column 2523 (char 2522) Traceback (most recent call last): File "/home/osmc/.kodi/addons/plugin.video.drnu/default.py", line 7, in <module> handle = addon.DrDkTvAddon(plugin_url=sys.argv[0], plugin_handle=int(sys.argv[1])) File "/home/osmc/.kodi/addons/plugin.video.drnu/resources/lib/addon.py", line 73, in __init__ self.api = tvapi.Api(self.cache_path, tr, get_setting) File "/home/osmc/.kodi/addons/plugin.video.drnu/resources/lib/tvapi.py", line 48, in __init__ self.refresh_tokens() File "/home/osmc/.kodi/addons/plugin.video.drnu/resources/lib/tvapi.py", line 101, in refresh_tokens self.read_token(self.token_file.read_bytes()) File "/home/osmc/.kodi/addons/plugin.video.drnu/resources/lib/tvapi.py", line 79, in read_token tokens = json.loads(s) File "/usr/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 340, in decode raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 1 column 2523 (char 2522) -->End of Python script error report<-- 2023-01-25 20:06:56.805 T:922 DEBUG <general>: onExecutionDone(20, /home/osmc/.kodi/addons/plugin.video.drnu/default.py) 2023-01-25 20:06:56.812 T:557 DEBUG <general>: ------ Window Init (DialogNotification.xml) ------ 2023-01-25 20:06:56.828 T:922 DEBUG <general>: . 2023-01-25 20:06:56.902 T:922 INFO <general>: Python interpreter stopped 2023-01-25 20:06:56.902 T:922 DEBUG <general>: Thread LanguageInvoker 3592417536 terminating 2023-01-25 20:06:56.921 T:920 ERROR <general>: GetDirectory - Error getting plugin://plugin.video.drnu/ 2023-01-25 20:06:56.921 T:920 DEBUG <general>: Thread waiting 3946656000 terminating 2023-01-25 20:06:56.936 T:557 DEBUG <general>: ------ Window Deinit (DialogBusy.xml) ------ 2023-01-25 20:06:56.936 T:557 DEBUG <general>: started alarm with name: resetscrollclear1 2023-01-25 20:06:56.937 T:557 DEBUG <general>: started alarm with name: resetscrollclear2 2023-01-25 20:06:56.937 T:557 DEBUG <general>: started alarm with name: resetscrollclear3 2023-01-25 20:06:56.937 T:557 DEBUG <general>: Skipped 1 duplicate messages.. 2023-01-25 20:06:56.937 T:557 DEBUG <general>: started alarm with name: resetscrollclear4 2023-01-25 20:06:56.937 T:557 DEBUG <general>: started alarm with name: resetscrollclear5 2023-01-25 20:06:56.938 T:557 DEBUG <general>: started alarm with name: resetscrollclear6 2023-01-25 20:06:56.938 T:557 DEBUG <general>: started alarm with name: resetscrollclear7 2023-01-25 20:06:56.938 T:557 DEBUG <general>: started alarm with name: resetscrollclear8 2023-01-25 20:06:56.938 T:557 DEBUG <general>: started alarm with name: resetscrollclear9 2023-01-25 20:06:56.938 T:557 DEBUG <general>: started alarm with name: resetscrollclear10 2023-01-25 20:06:56.939 T:557 DEBUG <general>: started alarm with name: resetscrollclear11 2023-01-25 20:06:56.939 T:557 DEBUG <general>: started alarm with name: resetscrollclear12 2023-01-25 20:06:56.939 T:557 DEBUG <general>: started alarm with name: resetscrollclear13 2023-01-25 20:06:56.939 T:557 DEBUG <general>: started alarm with name: resetscrollclear14 2023-01-25 20:06:56.939 T:557 DEBUG <general>: started alarm with name: resetscrollclear15 2023-01-25 20:06:56.940 T:557 DEBUG <general>: started alarm with name: resetscrollclear16 2023-01-25 20:06:56.940 T:557 DEBUG <general>: started alarm with name: resetscrollclear17 2023-01-25 20:06:56.940 T:557 DEBUG <general>: started alarm with name: resetscrollclear18 2023-01-25 20:06:56.940 T:557 DEBUG <general>: started alarm with name: resetscrollclear19 2023-01-25 20:06:56.941 T:557 DEBUG <general>: started alarm with name: resetscrollclear20 2023-01-25 20:06:56.941 T:557 DEBUG <general>: started alarm with name: resetscrollclear21 2023-01-25 20:06:56.941 T:557 DEBUG <general>: started alarm with name: resetscrollclear22 2023-01-25 20:06:56.941 T:557 DEBUG <general>: started alarm with name: resetscrollclear23 2023-01-25 20:06:56.941 T:557 DEBUG <general>: started alarm with name: resetscrollclear24 2023-01-25 20:06:56.941 T:557 DEBUG <general>: started alarm with name: resetscrollclear25 2023-01-25 20:06:56.942 T:557 ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.drnu/) failed 2023-01-25 20:06:56.942 T:557 DEBUG <general>: CGUIMediaWindow::GetDirectory (addons://sources/video) 2023-01-25 20:06:56.942 T:557 DEBUG <general>: ParentPath = [] 2023-01-25 20:06:56.943 T:923 DEBUG <general>: Thread waiting start, auto delete: false 2023-01-25 20:06:56.943 T:923 DEBUG <general>: Thread waiting 3946656000 terminating 2023-01-25 20:06:56.946 T:924 DEBUG <general>: Thread BackgroundLoader start, auto delete: false 2023-01-25 20:06:56.949 T:557 DEBUG <general>: [Warning] CGUITextureManager::GetTexturePath: could not find texture 'noop' 2023-01-25 20:06:56.952 T:924 DEBUG <general>: Thread BackgroundLoader 3988226304 terminating 2023-01-25 20:07:02.156 T:557 DEBUG <general>: ------ Window Deinit (DialogNotification.xml) ------
Versions:
OSMC: January 2023
Kodi: 19.5
DR TV: 6.0.2+matrix.1
Inputstream Adaptive: 19.0.7
Python: 3.9.2
Hej folkens.
Har lige installeret version 6.3.0 - i Kodi (på Windows)
Login til DR TV - kører fint - men når jeg trykker "Fortsæt med at se (brugernavn) - crasher addon'en med det samme.
Jeg får denne fejl i loggen (sig til, hvis der er brug for yderligere info)
Dette er ikke en issue som sådan, men jeg har selv ændret dette program en del for at kunne bruge en SQL (mysql) DB, for at få hastigheden lidt op..... mine børn skifter mening konstant om hvad de vil se, og hver gang skal API'en kontaktes og hente alle programmer og episoder osv. Jeg lavede først en sqlite3-løsning, men ændrede det så til en central mysql på min server, som klienterne så kontakter. Det er lavet sådan at klienterne checker en lastUpdate-tabel, og hvis den er samme som dagsdato, hentes der fra DB, eller bare som normalt fra web, på den måde er der failback hvis databasen ikke er opdateret..... den kører bare som et cronjob en gang i døgnet......
Ja, som sagt bare en ide, jeg ved ikke hvordan jeg ellers skulle kontakte dig/jer.... jeg har iøvrigt også ændret på views, så man kan vælge MediaInfo-views, og derved se description til et program, det ligger jo på APIen og hentes ned hver gang, så jeg forstår ikke hvorfor det ikke er muligt at se i plugin'en.... det er jo få liniers kode
Starting a playback in the addon on Kodi 18, Windows 10, causes some errors in the kodi log.
Playback still works, so the error is only present in the logs.
How to replicate:
Output from the logs:
00:39:40.189 T:9908 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-3-3
00:39:40.189 T:9908 ERROR: InputStream: Error opening, plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-3-3
00:39:40.189 T:9908 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-1-3
00:39:40.189 T:9908 ERROR: InputStream: Error opening, plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-1-3
00:39:40.189 T:9908 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-2-3
00:39:40.189 T:9908 ERROR: InputStream: Error opening, plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-2-3
00:39:58.143 T:16280 NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-1-3
00:39:58.143 T:16280 ERROR: CCurlFile::Stat - Failed: Unsupported protocol(1) for plugin://plugin.video.drnu/?playVideo=hun-giver-ikke-op-1-3
Yo folks.
Running Kodi 19.5 - and DR Addon version 6.1.1+matrix.1
When I try to open "Programmer A-Å" - I get an error stating:
"There was an error while communicating with DR NU.
Please try again later. Error message is:
{"message":"Side ikke fundet"}
Screenshot can be seen here:
Any solution to this?
Need more information - don't hesitate to ask!
I can test a new version - if necessary :)
The Python distutils
package is used in this addon:
plugin.video.drnu/resources/lib/addon.py
Line 26 in c9559eb
Unfortunately, the distutils
package has been deprecated in Python 3.10 and removed in Python 3.12 making this addon fail when used with Python >=3.12.
A workaround is to install setuptools
>= 60.0.0 which includes a copy of distutils
. However, the use of distutils
from setuptools
is discouraged in favor of transitioning to more modern alternatives. Specifically, for the distutils.version
, it is recommended to transition to packaging.version
.
I am not familar enough with the Kodi addon system to know if it is easy to include packaging
as a third party dependency in the addon or if it is easier to replace the use of distutils.version.StrictVersion
in this addon with some custom code.
Did DR break catch-up? I was able to watch shows last night (2019-01-28), but tonight nothing happens when I try to play something.
plugin.video.drnu
finds video urls like this (approximately):
api = Api('/tmp/')
item = api.getEpisode('deadline-2019-01-27')
video = api.getVideoUrl(item['PrimaryAsset']['Uri'])
Tonight, video
is
{ 'Uri': None, 'SubtitlesUri': u'https://www.dr.dk/mu-online/api/1.2/bar/5c4e34be6187a4157ce1ce01'}`
That doesn't look right!
It seems DR has set Uri
to null
and replaced it with EncryptedUri
. (At least on the videos I tested)
E.g. for the above this is returned:
{
"Links": [
{
"HardSubtitlesType": "None",
"Uri": null,
"EncryptedUri": "010000016097da90c3e86cc6c24293e75a2f5677ab7408cd7fb0d6baabf834c52c643b33e4e4937b2513cb3413169641cb505c97a263013d4a9213e166af6e11da15296b284b2db7d236a86547aa23154259282fe74bea98bc98abe6bf22e822ef7287d7f7d90f35295186d6326ff1fa9ad53f058337d64e2e27538444bd35c921f47d41f898971bad8ca1768a9a5c8b49a085cc0d09d831db7e4eeb820e2ef5635dc747a5baedb888a86ab103e189fcbb0d5514bb4a50b787e7275e73bda81db03370d960",
"FileFormat": "mp4",
"Target": "HDS"
},
{
"HardSubtitlesType": "None",
"Uri": null,
"EncryptedUri": "0100000300d4bd46bb7a4ef42afcb83a70914b389da88c42af6019e64e38bc8a16dd041821c0255df4cb58da7175fa91bca5e27b52e427b3c0467ccd95179dce7e013fc5fc6e95f4e5d2fed79ae39488ab9c7d33e73721da0f0c98dd1fb8a06452d517d73c9f0f383327640668f3db2921b1035fa00a8a1a1e57916473fd31245d508181ad4ae8e021dabd1a9006f7c8521ecc9de5cbb1085a3c83e1f0e43845e20d613a34ea261f1d60bfcd9e7b8e1fb4721c88faa94236734130c714113fafbc2138bb33e3fcc70bf37ccd62fab466e5f65194d3e579ab7a933dfa359b94bb3dbfde9f8f2c00a0585cbda411719b9a3318978ebbcee2c1740bf1049ece1ccfd84aaf4f92e25825d48514dd26873bbd543e5be09c18c3a12c21eb6657ca9011fd266dfcb1c0182377aa875ee4cbc7c10b067e7a662c30ac4035dda2eda22ebd79015a43faae7d61d4b6c32cd8667850f83f069e5aa9352f971e83910ab3eca1b4442b739f0f15adb80b023bbc32b8f973b513a53479c27fafff39496cc133332ce0f9b24492ead116e9596fbb66eaea77193ae1fd",
"FileFormat": "mp4",
"Target": "HLS"
}
],
"SubtitlesList": [
{
"Language": "Danish",
"MimeType": "text/vtt;charset=utf-8",
"Type": "HardOfHearing",
"Uri": "https://www.dr.dk/mu-online/api/1.2/bar/5c4e34be6187a4157ce1ce01"
}
]
}
EncryptedUri
isn't documented.
Does anybody have any ideas how to get a "DecryptedUri
"? Is DR trying to block non-sanctioned clients? Or has Uri
disappeared before and come back?
Thanks,
Rasmus
As mentioned on the blog, the PrimaryBroadcastStartTime may in some cases contain a millisecond part, which causes the script to malfunction.
One way to fix this is to change parseDate, so that the line (266 in the 5.0.0 release) that reads
m = re.search('(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)Z', dateString)
becomes
m = re.search('(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)(.\d+)?Z', dateString)
I have seen a string like the following returned as starting time from the DR API:
2013-05-09T09:02:21.28Z
If the error is not fixed, it causes an error that prevents viewing of whatever search returned the string.
I have set up IPTV Simple client to accept my IPTV favorite channels - works fine and fast.
The DRNU have an option with IPTV Manager.
When I activate that it seems to stop the IPTV Simple Client from working - It tries to update, but stays at 0%.
Restarting Kodi makes IPTV Simple Client to work again.
Is there somewhere an explanation on how to use this setting?
Regards
Hans
Det er uklart om det er her man rapporterer fejl med Danish Live TV Kodi Add-on.
Hvis det ikke er her, kan du så ikke lokkes til at lave en README, der peger hen i den retning?
Når jeg starter add-on-en skriver den:
"""It looks like you are not in Denmark.
One or more channels may not be playable
or other unexpected errors may occur."""
Da dette ikke er korrekt, så ville det være en hjælp, hvis der i fejlbeskeden stod, hvad man skal gøre, hvis dette er forkert. I.e. hvordan finder den ud af, hvor den tror, den er.
Når jeg vælger en af DRs kanaler, Folketinget eller Kanal Sport, så blinker skærmen kort, men vente-hjulet dukker ikke op, og der sker ikke mere.
Når jeg vælger TV2-regionerne, kommer vente-hjulet, men det bliver bare ved at vente.
Da jeg ikke har shell adgang til Kodi-devicet, så mangler jeg en guide til, hvordan jeg hiver log-information ud af dyret.
Mit problem er også beskrevet på:
https://tommy.winther.nu/wordpress/2017/11/05/fejlende-addons/#comments
Addon version: 3.1.0 (autoupdate = yes)
Hardware: X96 (Android)
Hi
It seems that for long program descriptions, not the whole description is gotten.
E.g. for "Mørkelagt: Spionchefens hemmeligheder - del 1" the description ends with "men pludselig bliver han og en række andre". It should be
Men pludselig bliver han og en række andre ledende medarbejdere i efterretningstjenesterne sendt hjem, blandt andet fordi Forsvarets Efterretningstjeneste bliver mistænkt for at have udspioneret danske statsborgere.
https://www.dr.dk/drtv/episode/moerklagt_-spionchefens-hemmeligheder_345764
Jeg har opdateret master med #8 og #11 og opdateret API version til 1.4
Har oprettet et release med navnet v5.0.9
Jeg har testet det manuelt på kodi 17.5 og det ser ud til at virke.
I morgen aften (1. nov) vil jeg forsøge at sende det til kodis addon repo. Det vil være fedt hvis nogen af jer også vil teste inden det bliver sendt afsted.
There's a menu called maybe "themes / repremiere". I am not sure what it does or what it is supposed to do.
It might be worth either making it work again or removing it...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.