Translate plex.tv login status in PKC settings
This commit is contained in:
parent
4af5080f31
commit
55d75d3d51
4 changed files with 14 additions and 4 deletions
|
@ -1705,6 +1705,16 @@ msgctxt "#39225"
|
||||||
msgid "Missing only"
|
msgid "Missing only"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
# Message in the PKC settings if user has not logged in to plex.tv
|
||||||
|
msgctxt "#39226"
|
||||||
|
msgid "Not logged in to plex.tv"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
# Message in the PKC settings if user is logged in to plex.tv
|
||||||
|
msgctxt "#39227"
|
||||||
|
msgid "Logged in to plex.tv"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
# Plex Artwork.py
|
# Plex Artwork.py
|
||||||
|
|
||||||
msgctxt "#39250"
|
msgctxt "#39250"
|
||||||
|
|
|
@ -208,7 +208,7 @@ class PlexAPI():
|
||||||
settings('plexHomeSize', homeSize)
|
settings('plexHomeSize', homeSize)
|
||||||
# Let Kodi log into plex.tv on startup from now on
|
# Let Kodi log into plex.tv on startup from now on
|
||||||
settings('myplexlogin', 'true')
|
settings('myplexlogin', 'true')
|
||||||
settings('plex_status', value='Logged in to plex.tv')
|
settings('plex_status', value=lang(39227))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def CheckPlexTvSignin(self, identifier):
|
def CheckPlexTvSignin(self, identifier):
|
||||||
|
|
|
@ -78,7 +78,7 @@ def togglePlexTV():
|
||||||
settings('plexid', value="")
|
settings('plexid', value="")
|
||||||
settings('plexHomeSize', value="1")
|
settings('plexHomeSize', value="1")
|
||||||
settings('plexAvatar', value="")
|
settings('plexAvatar', value="")
|
||||||
settings('plex_status', value="Not logged in to plex.tv")
|
settings('plex_status', value=lang(39226))
|
||||||
|
|
||||||
window('plex_token', clear=True)
|
window('plex_token', clear=True)
|
||||||
plex_command('PLEX_TOKEN', '')
|
plex_command('PLEX_TOKEN', '')
|
||||||
|
|
|
@ -82,7 +82,7 @@ class InitialSetup():
|
||||||
answer = False
|
answer = False
|
||||||
else:
|
else:
|
||||||
log.info('plex.tv connection with token successful')
|
log.info('plex.tv connection with token successful')
|
||||||
settings('plex_status', value='Logged in to plex.tv')
|
settings('plex_status', value=lang(39227))
|
||||||
# Refresh the info from Plex.tv
|
# Refresh the info from Plex.tv
|
||||||
xml = self.doUtils('https://plex.tv/users/account',
|
xml = self.doUtils('https://plex.tv/users/account',
|
||||||
authenticate=False,
|
authenticate=False,
|
||||||
|
@ -413,7 +413,7 @@ class InitialSetup():
|
||||||
|
|
||||||
# Optionally sign into plex.tv. Will not be called on very first run
|
# Optionally sign into plex.tv. Will not be called on very first run
|
||||||
# as plexToken will be ''
|
# as plexToken will be ''
|
||||||
settings('plex_status', value='Not logged in to plex.tv')
|
settings('plex_status', value=lang(39226))
|
||||||
if self.plexToken and self.myplexlogin:
|
if self.plexToken and self.myplexlogin:
|
||||||
self.CheckPlexTVSignIn()
|
self.CheckPlexTVSignIn()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue