mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-09-01 04:11:36 +00:00
Most flake8 warnings corrected
This commit is contained in:
parent
e92d60f7c7
commit
00765c0a12
58 changed files with 1144 additions and 1262 deletions
|
@ -11,10 +11,11 @@ from utils import should_stop
|
|||
|
||||
#################################################################################################
|
||||
|
||||
LOG = logging.getLogger("JELLYFIN."+__name__)
|
||||
LOG = logging.getLogger("JELLYFIN." + __name__)
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
||||
def progress(message=None):
|
||||
|
||||
''' Will start and close the progress dialog.
|
||||
|
@ -61,6 +62,7 @@ def catch(errors=(Exception,)):
|
|||
return wrapper
|
||||
return decorator
|
||||
|
||||
|
||||
def silent_catch(errors=(Exception,)):
|
||||
|
||||
''' Wrapper to catch exceptions and ignore them
|
||||
|
@ -76,6 +78,7 @@ def silent_catch(errors=(Exception,)):
|
|||
return wrapper
|
||||
return decorator
|
||||
|
||||
|
||||
def stop(default=None):
|
||||
|
||||
''' Wrapper to catch exceptions and return using catch
|
||||
|
@ -100,6 +103,7 @@ def stop(default=None):
|
|||
return wrapper
|
||||
return decorator
|
||||
|
||||
|
||||
def jellyfin_item():
|
||||
|
||||
''' Wrapper to retrieve the jellyfin_db item.
|
||||
|
@ -113,6 +117,7 @@ def jellyfin_item():
|
|||
return wrapper
|
||||
return decorator
|
||||
|
||||
|
||||
def library_check():
|
||||
|
||||
''' Wrapper to retrieve the library
|
||||
|
@ -148,7 +153,7 @@ def library_check():
|
|||
return
|
||||
|
||||
view = {'Id': views[0], 'Name': views[1]}
|
||||
else: # Grab the first music library
|
||||
else: # Grab the first music library
|
||||
return
|
||||
else:
|
||||
for ancestor in ancestors:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue