From 0252c577b33b005b5dd6efb91adfb43bbbaba2a6 Mon Sep 17 00:00:00 2001 From: Frieder Schrempf <34034373+fschrempf@users.noreply.github.com> Date: Sun, 22 Aug 2021 12:03:27 +0200 Subject: [PATCH] Replace deprecated inputstreamaddon with inputstream According to https://forum.kodi.tv/showthread.php?tid=353560 `inputstreamaddon` is deprecated in favor of `inputstream`. This fixes the following error e. g. when trying to play a dash stream using the filmfriend plugin: ERROR : CInputStreamAddon::Supports - 'inputstreamaddon' has been deprecated, please use `#KODIPROP:inputstream=inputstream.adaptive` instead INFO : Python interpreter stopped INFO : Creating Demuxer ERROR : Open - error probing input format, https://ak01-flm.delivery.fuugo.com/filmleihe/filme/i_am_love/i_am_love.mpd ERROR : OpenDemuxStream - Error creating demuxer --- lib/libmediathek4.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libmediathek4.py b/lib/libmediathek4.py index 99242d2..491c012 100644 --- a/lib/libmediathek4.py +++ b/lib/libmediathek4.py @@ -250,7 +250,7 @@ def _chooseBitrate(self,l): streamType = 'AUDIO' listitem = xbmcgui.ListItem(path=url) if streamType == 'DASH': - listitem.setProperty('inputstreamaddon', 'inputstream.adaptive') + listitem.setProperty('inputstream', 'inputstream.adaptive') listitem.setProperty('inputstream.adaptive.manifest_type', 'mpd') if 'licenseserverurl' in item: listitem.setProperty('inputstream.adaptive.license_type', 'com.widevine.alpha') @@ -260,7 +260,7 @@ def _chooseBitrate(self,l): listitem.setContentLookup(False) elif streamType == 'HLS': listitem.setMimeType('application/vnd.apple.mpegurl') - listitem.setProperty('inputstreamaddon', 'inputstream.adaptive') + listitem.setProperty('inputstream', 'inputstream.adaptive') listitem.setProperty('inputstream.adaptive.manifest_type', 'hls') listitem.setContentLookup(False) #elif streamType == 'MP4': @@ -383,4 +383,4 @@ def _calcyyyymmdd(self,d): def _calcddmmyyyy(self,d): day = date.today() - timedelta(d) - return day.strftime('%d-%m-%Y') \ No newline at end of file + return day.strftime('%d-%m-%Y')