Skip to content

Commit

Permalink
Merge pull request #293 from quarckster/inputstream-adaptive-settings
Browse files Browse the repository at this point in the history
Add InputStream Adaptive settings
  • Loading branch information
quarckster authored Aug 30, 2023
2 parents 896341f + 5a41354 commit 4f4e560
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,7 @@ msgstr ""
msgctxt "#32091"
msgid "3D"
msgstr ""

msgctxt "#32092"
msgid "Configure InputStream Adaptive"
msgstr ""
4 changes: 4 additions & 0 deletions src/resources/language/resource.language.ru_ru/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,7 @@ msgstr ""
msgctxt "#32091"
msgid "3D"
msgstr ""

msgctxt "#32092"
msgid "Configure InputStream Adaptive"
msgstr "Настроить InputStream Adaptive"
4 changes: 4 additions & 0 deletions src/resources/language/resource.language.uk_ua/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,7 @@ msgstr ""
msgctxt "#32091"
msgid "3D"
msgstr ""

msgctxt "#32092"
msgid "Configure InputStream Adaptive"
msgstr "Налаштувати InputStream Adaptive"
5 changes: 5 additions & 0 deletions src/resources/lib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,3 +537,8 @@ def install_inputstream_helper() -> None:
popup_info(localize(32042))
except RuntimeError:
xbmc.executebuiltin("InstallAddon(script.module.inputstreamhelper)")


@plugin.routing.route("/inputstream_adaptive_settings/")
def inputstream_adaptive_settings() -> None:
xbmcaddon.Addon("inputstream.adaptive").openSettings()
12 changes: 12 additions & 0 deletions src/resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,25 @@
<setting id="inputstream_helper_install" type="action" label="32080" help="">
<dependencies>
<dependency type="enable" on="property" name="infobool">System.HasAddon(inputstream.adaptive)</dependency>
<dependency type="enable" setting="use_inputstream_adaptive">true</dependency>
</dependencies>
<level>0</level>
<data>RunPlugin(plugin://$ID/inputstream_helper_install/)</data>
<control type="button" format="action">
<close>true</close>
</control>
</setting>
<setting id="inputstream_adaptive_settings" type="action" label="32092" help="">
<dependencies>
<dependency type="enable" on="property" name="infobool">System.HasAddon(inputstream.adaptive)</dependency>
<dependency type="enable" setting="use_inputstream_adaptive">true</dependency>
</dependencies>
<level>0</level>
<data>RunPlugin(plugin://$ID/inputstream_adaptive_settings/)</data>
<control type="button" format="action">
<close>true</close>
</control>
</setting>
</group>
<group id="3" label="32081">
<setting id="sort_by" type="string" label="32082">
Expand Down

0 comments on commit 4f4e560

Please sign in to comment.