mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-13 11:46:13 +00:00
Get the logger from a central place
This commit is contained in:
parent
7e141724c1
commit
795dfd38df
55 changed files with 157 additions and 167 deletions
|
@ -4,7 +4,6 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
|||
#################################################################################################
|
||||
|
||||
import json
|
||||
import logging
|
||||
import time
|
||||
|
||||
import requests
|
||||
|
@ -12,10 +11,11 @@ from six import string_types
|
|||
|
||||
from .exceptions import HTTPException
|
||||
from helper.utils import JsonDebugPrinter
|
||||
from helper import LazyLogger
|
||||
|
||||
#################################################################################################
|
||||
|
||||
LOG = logging.getLogger('Jellyfin.' + __name__)
|
||||
LOG = LazyLogger(__name__)
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
@ -222,7 +222,7 @@ class HTTP(object):
|
|||
data['headers'].update({'x-emby-authorization': auth})
|
||||
|
||||
if self.config.data.get('auth.token') and self.config.data.get('auth.user_id'):
|
||||
|
||||
|
||||
auth += ', UserId=%s' % self.config.data.get('auth.user_id')
|
||||
data['headers'].update({'x-emby-authorization': auth, 'X-MediaBrowser-Token': self.config.data.get('auth.token')})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue