From e966b613b049d82a17fe194cabc468494509c1d9 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 1 Feb 2019 03:09:21 -0600 Subject: [PATCH] Ensure userid is set for token --- resources/lib/emby/core/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/emby/core/http.py b/resources/lib/emby/core/http.py index e7d585ea..8b8a6f83 100644 --- a/resources/lib/emby/core/http.py +++ b/resources/lib/emby/core/http.py @@ -222,7 +222,7 @@ class HTTP(object): data['headers'].update({'Authorization': auth}) - if self.config['auth.token']: + if self.config['auth.token'] and self.config['auth.user_id']: auth += ', UserId=%s' % self.config['auth.user_id'].encode('utf-8') data['headers'].update({'Authorization': auth, 'X-MediaBrowser-Token': self.config['auth.token'].encode('utf-8')})