messaggio per installazione inputstream fallita

This commit is contained in:
marco
2020-07-07 20:53:19 +02:00
parent 29ad20dd6f
commit c9113f1760
3 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -545,7 +545,8 @@ def play_video(item, strm=False, force_direct=False, autoplay=False):
# if it is a video in mpd format, the listitem is configured to play it ith the inpustreamaddon addon implemented in Kodi 17 # if it is a video in mpd format, the listitem is configured to play it ith the inpustreamaddon addon implemented in Kodi 17
# from core.support import dbg;dbg() # from core.support import dbg;dbg()
if mpd: if mpd:
install_inputstream() if not install_inputstream():
return
xlistitem.setProperty('inputstreamaddon', 'inputstream.adaptive') xlistitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
xlistitem.setProperty('inputstream.adaptive.manifest_type', 'mpd') xlistitem.setProperty('inputstream.adaptive.manifest_type', 'mpd')
if item.drm and item.license: if item.drm and item.license:
@@ -1088,12 +1089,17 @@ def install_inputstream():
logger.info('InputStream add-on installed from repo.') logger.info('InputStream add-on installed from repo.')
except RuntimeError: except RuntimeError:
logger.info('InputStream add-on not installed.') logger.info('InputStream add-on not installed.')
dialog_ok(config.get_localized_string(20000), config.get_localized_string(30126))
return False
else: else:
try: try:
Addon('inputstream.adaptive') Addon('inputstream.adaptive')
logger.info('InputStream add-on is installed and enabled')
except: except:
logger.info('enabling InputStream add-on')
xbmc.executebuiltin('UpdateLocalAddons') xbmc.executebuiltin('UpdateLocalAddons')
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "id":1, "method": "Addons.SetAddonEnabled", "params": { "addonid": "inputstream.adaptive", "enabled": true }}') xbmc.executeJSONRPC('{"jsonrpc": "2.0", "id":1, "method": "Addons.SetAddonEnabled", "params": { "addonid": "inputstream.adaptive", "enabled": true }}')
return True
def install_widevine(): def install_widevine():
@@ -304,7 +304,7 @@ msgid "Documentaries"
msgstr "" msgstr ""
msgctxt "#30126" msgctxt "#30126"
msgid "" msgid "This video needs inputstream.adaptive addon, but automatic install failed, install it manually"
msgstr "" msgstr ""
msgctxt "#30130" msgctxt "#30130"
@@ -304,8 +304,8 @@ msgid "Documentaries"
msgstr "Documentari" msgstr "Documentari"
msgctxt "#30126" msgctxt "#30126"
msgid "" msgid "This video needs inputstream.adaptive addon, but automatic install failed, install it manually"
msgstr "" msgstr "Questo video necessita dell'addon inputstream.adaptive ma l'installazione automatica è fallita, installalo manualmente."
msgctxt "#30130" msgctxt "#30130"
msgid "News" msgid "News"