mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-14 02:53:19 +00:00
Tool black: auto-format Python code
This commit is contained in:
parent
e4d8084c25
commit
7763762212
54 changed files with 6545 additions and 4723 deletions
|
|
@ -19,11 +19,10 @@ LOG = LazyLogger(__name__)
|
|||
|
||||
|
||||
def callback(message, data):
|
||||
|
||||
''' Callback function should receive message, data
|
||||
message: string
|
||||
data: json dictionary
|
||||
'''
|
||||
"""Callback function should receive message, data
|
||||
message: string
|
||||
data: json dictionary
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
|
@ -53,13 +52,13 @@ class JellyfinClient(object):
|
|||
self.set_credentials(credentials or {})
|
||||
state = self.auth.connect(options or {})
|
||||
|
||||
if state['State'] == CONNECTION_STATE['SignedIn']:
|
||||
if state["State"] == CONNECTION_STATE["SignedIn"]:
|
||||
|
||||
LOG.info("User is authenticated.")
|
||||
self.logged_in = True
|
||||
self.callback("ServerOnline", {'Id': self.auth.server_id})
|
||||
self.callback("ServerOnline", {"Id": self.auth.server_id})
|
||||
|
||||
state['Credentials'] = self.get_credentials()
|
||||
state["Credentials"] = self.get_credentials()
|
||||
|
||||
return state
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue