mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 02:23:18 +00:00
Correct logic errors introduced in 00765c0a, fix flake8 except F841
This commit is contained in:
parent
49cfb6cb51
commit
d28c9a3ac8
34 changed files with 42 additions and 69 deletions
|
|
@ -12,7 +12,7 @@ from distutils.version import LooseVersion
|
|||
import urllib3
|
||||
|
||||
from credentials import Credentials
|
||||
from http import HTTP
|
||||
from http import HTTP # noqa: I201,I100
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
@ -499,7 +499,7 @@ class ConnectionManager(object):
|
|||
|
||||
def _after_connect_validated(self, server, credentials, system_info, connection_mode, verify_authentication, options):
|
||||
|
||||
if not options.get('enableAutoLogin'):
|
||||
if options.get('enableAutoLogin') is False:
|
||||
|
||||
self.config.data['auth.user_id'] = server.pop('UserId', None)
|
||||
self.config.data['auth.token'] = server.pop('AccessToken', None)
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
#################################################################################################
|
||||
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from datetime import datetime
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
import json
|
||||
import logging
|
||||
import threading
|
||||
import time
|
||||
|
||||
import xbmc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue