Set username when using emby connect

This commit is contained in:
angelblue05 2016-09-04 05:58:17 -05:00
parent e443286a96
commit 71abbd4129

View file

@ -143,6 +143,7 @@ class UserClient(threading.Thread):
settings('markPlayed', value=str(self._server['MaxResumePct'])) settings('markPlayed', value=str(self._server['MaxResumePct']))
self._user = self.download("{server}/emby/Users/{UserId}?format=json") self._user = self.download("{server}/emby/Users/{UserId}?format=json")
settings('username', value=self._user['Name'])
if "PrimaryImageTag" in self._user: if "PrimaryImageTag" in self._user:
window('EmbyUserImage', window('EmbyUserImage',
value=artwork.Artwork().getUserArtwork(self._user['Id'], 'Primary')) value=artwork.Artwork().getUserArtwork(self._user['Id'], 'Primary'))