Show logged in Plex home user in the settings and allow changing it

This commit is contained in:
croneter 2019-02-03 19:12:35 +01:00
parent 1dbeb95e24
commit 662ed1bdfc
2 changed files with 15 additions and 4 deletions

View file

@ -1179,9 +1179,9 @@ msgctxt "#39227"
msgid "Logged in to plex.tv"
msgstr ""
# Message in the PKC settings to display the plex.tv username. Leave the colon :
# Message in the PKC settings to display the plex.tv username
msgctxt "#39228"
msgid "Plex user:"
msgid "Plex admin user"
msgstr ""
# Error message if user could not log in; the actual user name will be appended at the end of the string
@ -1189,6 +1189,16 @@ msgctxt "#39229"
msgid "Login failed with plex.tv for user"
msgstr ""
# Message in the PKC settings to display the plex.tv username
msgctxt "#39230"
msgid "Logged in Plex home user"
msgstr ""
# Message in the PKC settings to change the logged in Plex home user
msgctxt "#39231"
msgid "Change logged in Plex home user"
msgstr ""
msgctxt "#39250"
msgid "Running the image cache process can take some time. It will happen in the background. Are you sure you want continue?"
msgstr ""

View file

@ -21,8 +21,10 @@
<category label="Plex">
<setting type="lsep" label="plex.tv"/>
<setting id="plex_status" label="39071" type="text" default="Not logged in to plex.tv" enable="false" /><!-- Current plex.tv status: -->
<setting id="plexLogin" label="39228" type="text" default="" enable="false" />
<setting id="plexLogin" label="39228" type="text" default="" enable="false" /><!-- Plex admin user -->
<setting id="username" label="39230" type="text" default="" enable="false" /><!-- Logged in Plex home user -->
<setting id="myplexlogin" label="39025" type="bool" default="true" /> <!-- Log into plex.tv on startup -->
<setting label="[COLOR yellow]$ADDON[plugin.video.plexkodiconnect 39231][/COLOR]" type="action" action="RunPlugin(plugin://plugin.video.plexkodiconnect?mode=switchuser)" option="close" /><!-- Change logged in Plex home user -->
<setting label="[COLOR yellow]$ADDON[plugin.video.plexkodiconnect 39209][/COLOR]" type="action" action="RunPlugin(plugin://plugin.video.plexkodiconnect?mode=togglePlexTV)" option="close" /><!-- Toggle plex.tv login (sign in or sign out) -->
<setting id="plexToken" label="plexToken" type="text" default="" visible="false" />
<setting type="sep" text=""/>
@ -47,7 +49,6 @@
<setting id="dbCreatedWithVersion" type="text" default="" visible="false"/>
<setting id="plexid" type="text" default="" visible="false"/>
<setting id="userid" type="text" default="" visible="false"/>
<setting id="username" type="text" default="" visible="false"/>
</category>
<category label="30506"><!-- Sync Options -->