Add user error message if Plex.tv does not provide users

This commit is contained in:
croneter 2018-11-19 08:48:51 +01:00
parent a4dd5d8711
commit f9f7b74ef3
2 changed files with 6 additions and 0 deletions

View file

@ -622,6 +622,10 @@ msgctxt "#33010"
msgid "Your Plex token is no longer valid. Logging-out of plex.tv"
msgstr ""
msgctxt "#33011"
msgid "Plex.tv did not provide us a valid list of Plex users, sorry."
msgstr ""
# Dialog before playback
msgctxt "#33013"
msgid "Choose the audio stream"

View file

@ -129,6 +129,8 @@ def plex_home_users(token):
xml.attrib
except AttributeError:
LOG.error('Download of Plex home users failed.')
# Plex.tv did not provide us a valid list of Plex users, sorry.
utils.messageDialog(utils.lang(29999), utils.lang(33011))
else:
for user in xml:
users.append(HomeUser(user.attrib))