diff --git a/pvr.waipu/addon.xml.in b/pvr.waipu/addon.xml.in index 7d0db2e..fc16b46 100644 --- a/pvr.waipu/addon.xml.in +++ b/pvr.waipu/addon.xml.in @@ -1,10 +1,13 @@ - @ADDON_DEPENDS@ + @ADDON_DEPENDS@ + + + @@ -26,6 +29,7 @@ resources/screenshots/screenshot-02.jpg +- 1.0.3 Settings: Add check to verify requirements (widevine and network status) - 1.0.2 Do not show hidden channels - 1.0.1 Code cleanup: remove usage of kodi-platform - 1.0.0 Fix windows build diff --git a/pvr.waipu/resources/check_requirements.py b/pvr.waipu/resources/check_requirements.py new file mode 100644 index 0000000..a48b087 --- /dev/null +++ b/pvr.waipu/resources/check_requirements.py @@ -0,0 +1,27 @@ +import xbmc +import xbmcgui +import inputstreamhelper +import requests +import json + + +def getStatus(): + url = "https://status.wpstr.tv/status?nw=wifi" + r = requests.get(url) + return r.json() + +is_helper = inputstreamhelper.Helper('mpd', drm='com.widevine.alpha') +if is_helper.check_inputstream(): + # widevine installed; + xbmc.log("[pvr.waipu] widevine: installed", level=xbmc.LOGDEBUG) + widevine_status = "OK - Widevine found." +else: + # widevine not installed; notify user + xbmc.log("[pvr.waipu] widevine: not installed", level=xbmc.LOGDEBUG) + widevine_status = "Error - Not found!" + +network_status_arr = getStatus() +network_status = network_status_arr["statusText"] + +xbmcgui.Dialog().ok("pvr.waipu - Requirements", "[B]Widevine:[/B] " + widevine_status, "", "[B]Network status:[/B] " + network_status) + diff --git a/pvr.waipu/resources/language/resource.language.de_de/strings.po b/pvr.waipu/resources/language/resource.language.de_de/strings.po index 87001f6..b9e3cd5 100644 --- a/pvr.waipu/resources/language/resource.language.de_de/strings.po +++ b/pvr.waipu/resources/language/resource.language.de_de/strings.po @@ -26,6 +26,14 @@ msgctxt "#37204" msgid "Protocol" msgstr "Protokoll" +msgctxt "#37205" +msgid "Misc" +msgstr "Sonstiges" + +msgctxt "#37206" +msgid "Check requirements" +msgstr "Überprüfe Anforderungen" + msgctxt "#37230" msgid "Error: Login not possible. Check credentials!" -msgstr "Fehler: Login nicht möglich. Ungültiger Account!" \ No newline at end of file +msgstr "Fehler: Login nicht möglich. Ungültiger Account!" diff --git a/pvr.waipu/resources/language/resource.language.en_gb/strings.po b/pvr.waipu/resources/language/resource.language.en_gb/strings.po index 815735c..aa7198b 100644 --- a/pvr.waipu/resources/language/resource.language.en_gb/strings.po +++ b/pvr.waipu/resources/language/resource.language.en_gb/strings.po @@ -26,6 +26,14 @@ msgctxt "#37204" msgid "Protocol" msgstr "" +msgctxt "#37205" +msgid "Misc" +msgstr "" + +msgctxt "#37206" +msgid "Check requirements" +msgstr "" + msgctxt "#37230" msgid "Error: Login not possible. Check credentials!" -msgstr "" \ No newline at end of file +msgstr "" diff --git a/pvr.waipu/resources/settings.xml b/pvr.waipu/resources/settings.xml index 5eeb279..ae75703 100644 --- a/pvr.waipu/resources/settings.xml +++ b/pvr.waipu/resources/settings.xml @@ -4,6 +4,9 @@ - + + + +