mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Ensure userid is set for token
This commit is contained in:
parent
4ebcb05ed5
commit
e966b613b0
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ class HTTP(object):
|
||||||
|
|
||||||
data['headers'].update({'Authorization': auth})
|
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')
|
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')})
|
data['headers'].update({'Authorization': auth, 'X-MediaBrowser-Token': self.config['auth.token'].encode('utf-8')})
|
||||||
|
|
Loading…
Reference in a new issue