Merge pull request #691 from croneter/change-user

Show logged in Plex home user in the settings and allow changing it
This commit is contained in:
croneter 2019-02-03 20:32:06 +01:00 committed by GitHub
commit 2b0d63da6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View file

@ -1194,9 +1194,9 @@ msgctxt "#39227"
msgid "Logged in to plex.tv" msgid "Logged in to plex.tv"
msgstr "" 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" msgctxt "#39228"
msgid "Plex user:" msgid "Plex admin user"
msgstr "" msgstr ""
# Error message if user could not log in; the actual user name will be appended at the end of the string # Error message if user could not log in; the actual user name will be appended at the end of the string
@ -1204,6 +1204,16 @@ msgctxt "#39229"
msgid "Login failed with plex.tv for user" msgid "Login failed with plex.tv for user"
msgstr "" 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" msgctxt "#39250"
msgid "Running the image cache process can take some time. It will happen in the background. Are you sure you want continue?" msgid "Running the image cache process can take some time. It will happen in the background. Are you sure you want continue?"
msgstr "" msgstr ""

View file

@ -21,8 +21,10 @@
<category label="Plex"> <category label="Plex">
<setting type="lsep" label="plex.tv"/> <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="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 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 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 id="plexToken" label="plexToken" type="text" default="" visible="false" />
<setting type="sep" text=""/> <setting type="sep" text=""/>
@ -47,7 +49,6 @@
<setting id="dbCreatedWithVersion" type="text" default="" visible="false"/> <setting id="dbCreatedWithVersion" type="text" default="" visible="false"/>
<setting id="plexid" type="text" default="" visible="false"/> <setting id="plexid" type="text" default="" visible="false"/>
<setting id="userid" type="text" default="" visible="false"/> <setting id="userid" type="text" default="" visible="false"/>
<setting id="username" type="text" default="" visible="false"/>
</category> </category>
<category label="30506"><!-- Sync Options --> <category label="30506"><!-- Sync Options -->