mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-10 18:36:33 +00:00
Added better names for variables
This commit is contained in:
parent
a0dfada081
commit
868646bf4f
1 changed files with 5 additions and 5 deletions
|
|
@ -204,8 +204,8 @@ class HTTP(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'x-emby-authorization' not in headers:
|
if 'x-emby-authorization' not in headers:
|
||||||
xxx = self._authorization(config)
|
auth_headers = self._authorization(config)
|
||||||
headers.update(xxx)
|
headers.update(auth_headers)
|
||||||
|
|
||||||
return headers
|
return headers
|
||||||
|
|
||||||
|
|
@ -220,10 +220,10 @@ class HTTP(object):
|
||||||
|
|
||||||
if config.get('auth.token') and config.get('auth.user_id'):
|
if config.get('auth.token') and config.get('auth.user_id'):
|
||||||
auth += ', UserId=%s' % config.get('auth.user_id')
|
auth += ', UserId=%s' % config.get('auth.user_id')
|
||||||
xxx = {'x-emby-authorization': auth, 'X-MediaBrowser-Token': config.get('auth.token')}
|
headers = {'x-emby-authorization': auth, 'X-MediaBrowser-Token': config.get('auth.token')}
|
||||||
else:
|
else:
|
||||||
xxx = {'x-emby-authorization': auth}
|
headers = {'x-emby-authorization': auth}
|
||||||
return xxx
|
return headers
|
||||||
|
|
||||||
def _requests(self, session, action, **kwargs):
|
def _requests(self, session, action, **kwargs):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue