mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-10 10:26:37 +00:00
Fix linter and typo
This commit is contained in:
parent
877daf2e14
commit
a1d32ec100
4 changed files with 6 additions and 5 deletions
|
|
@ -76,7 +76,7 @@ class Connect(object):
|
|||
|
||||
''' Get Jellyfin client.
|
||||
'''
|
||||
client = Jellyfin(server_id)
|
||||
client = Jellyfin(server_id).get_client()
|
||||
client.config.app("Kodi", self.info['Version'], self.info['DeviceName'], self.info['DeviceId'])
|
||||
client.config.data['http.user_agent'] = "Jellyfin-Kodi/%s" % self.info['Version']
|
||||
client.config.data['auth.ssl'] = self.get_ssl()
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ LOG = LazyLogger()
|
|||
|
||||
#################################################################################################
|
||||
|
||||
|
||||
class Jellyfin(object):
|
||||
|
||||
''' This is your Jellyfinclient, you can create more than one. The server_id is only a temporary thing
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
|||
|
||||
#################################################################################################
|
||||
|
||||
from helper import LazyLogger, window, dialog, translate, settings
|
||||
from client import get_device_id
|
||||
from helper import LazyLogger, window, settings
|
||||
from helper import api as helper_api
|
||||
|
||||
from . import api
|
||||
|
|
@ -11,7 +12,6 @@ from .configuration import Config
|
|||
from .http import HTTP
|
||||
from .ws_client import WSClient
|
||||
from .connection_manager import ConnectionManager, CONNECTION_STATE
|
||||
from client import get_device_id
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class Monitor(xbmc.Monitor):
|
|||
|
||||
return
|
||||
|
||||
server = Jellyfin(data.get('ServerId')).server.get_client()
|
||||
server = Jellyfin(data.get('ServerId')).get_client()
|
||||
|
||||
if method == 'Play':
|
||||
|
||||
|
|
@ -121,7 +121,7 @@ class Monitor(xbmc.Monitor):
|
|||
self.general_commands(data)
|
||||
|
||||
elif method == 'LoadServer':
|
||||
self.server_instance(data['ServerId'])
|
||||
Jellyfin(data['ServerId']).get_client().register_client()
|
||||
|
||||
elif method == 'AddUser':
|
||||
server.jellyfin.session_add_user(server.config.data['app.session'], data['Id'], data['Add'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue