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
|
|
@ -1,9 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import division, absolute_import, print_function, unicode_literals
|
||||
|
||||
''' This will hold all configs from the client.
|
||||
""" This will hold all configs from the client.
|
||||
Configuration set here will be used for the HTTP client.
|
||||
'''
|
||||
"""
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
@ -26,28 +26,41 @@ class Config(object):
|
|||
self.data = {}
|
||||
self.http()
|
||||
|
||||
def app(self, name, version, device_name, device_id, capabilities=None, device_pixel_ratio=None):
|
||||
def app(
|
||||
self,
|
||||
name,
|
||||
version,
|
||||
device_name,
|
||||
device_id,
|
||||
capabilities=None,
|
||||
device_pixel_ratio=None,
|
||||
):
|
||||
|
||||
LOG.debug("Begin app constructor.")
|
||||
self.data['app.name'] = name
|
||||
self.data['app.version'] = version
|
||||
self.data['app.device_name'] = device_name
|
||||
self.data['app.device_id'] = device_id
|
||||
self.data['app.capabilities'] = capabilities
|
||||
self.data['app.device_pixel_ratio'] = device_pixel_ratio
|
||||
self.data['app.default'] = False
|
||||
self.data["app.name"] = name
|
||||
self.data["app.version"] = version
|
||||
self.data["app.device_name"] = device_name
|
||||
self.data["app.device_id"] = device_id
|
||||
self.data["app.capabilities"] = capabilities
|
||||
self.data["app.device_pixel_ratio"] = device_pixel_ratio
|
||||
self.data["app.default"] = False
|
||||
|
||||
def auth(self, server, user_id, token=None, ssl=None):
|
||||
|
||||
LOG.debug("Begin auth constructor.")
|
||||
self.data['auth.server'] = server
|
||||
self.data['auth.user_id'] = user_id
|
||||
self.data['auth.token'] = token
|
||||
self.data['auth.ssl'] = ssl
|
||||
self.data["auth.server"] = server
|
||||
self.data["auth.user_id"] = user_id
|
||||
self.data["auth.token"] = token
|
||||
self.data["auth.ssl"] = ssl
|
||||
|
||||
def http(self, user_agent=None, max_retries=DEFAULT_HTTP_MAX_RETRIES, timeout=DEFAULT_HTTP_TIMEOUT):
|
||||
def http(
|
||||
self,
|
||||
user_agent=None,
|
||||
max_retries=DEFAULT_HTTP_MAX_RETRIES,
|
||||
timeout=DEFAULT_HTTP_TIMEOUT,
|
||||
):
|
||||
|
||||
LOG.debug("Begin http constructor.")
|
||||
self.data['http.max_retries'] = max_retries
|
||||
self.data['http.timeout'] = timeout
|
||||
self.data['http.user_agent'] = user_agent
|
||||
self.data["http.max_retries"] = max_retries
|
||||
self.data["http.timeout"] = timeout
|
||||
self.data["http.user_agent"] = user_agent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue