mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
flake8
This commit is contained in:
parent
6341bb2c62
commit
8a3ca73d52
14 changed files with 26 additions and 22 deletions
|
@ -1,9 +1,11 @@
|
|||
import xml.etree.ElementTree as ET
|
||||
import yaml
|
||||
import sys
|
||||
import os
|
||||
from datetime import datetime
|
||||
|
||||
import yaml
|
||||
|
||||
|
||||
def indent(elem, level=0):
|
||||
'''
|
||||
Nicely formats output xml with newlines and spaces
|
||||
|
@ -23,6 +25,7 @@ def indent(elem, level=0):
|
|||
if level and (not elem.tail or not elem.tail.strip()):
|
||||
elem.tail = i
|
||||
|
||||
|
||||
try:
|
||||
py_version = sys.argv[1]
|
||||
except IndexError:
|
||||
|
|
|
@ -17,8 +17,8 @@ sys.path.insert(0, __base__)
|
|||
|
||||
#################################################################################################
|
||||
|
||||
from entrypoint import Context # noqa: F402
|
||||
from helper import LazyLogger # noqa: F402
|
||||
from entrypoint import Context # noqa: E402
|
||||
from helper import LazyLogger # noqa: E402
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ sys.path.insert(0, __base__)
|
|||
|
||||
#################################################################################################
|
||||
|
||||
from entrypoint import Context # noqa: F402
|
||||
from helper import LazyLogger # noqa: F402
|
||||
from entrypoint import Context # noqa: E402
|
||||
from helper import LazyLogger # noqa: E402
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ sys.path.insert(0, __base__)
|
|||
|
||||
#################################################################################################
|
||||
|
||||
from entrypoint import Events # noqa: F402
|
||||
from helper import LazyLogger # noqa: F402
|
||||
from entrypoint import Events # noqa: E402
|
||||
from helper import LazyLogger # noqa: E402
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
|
@ -224,6 +224,7 @@ def get_library_items(library_id, item_type):
|
|||
|
||||
return _get(url, params)
|
||||
|
||||
|
||||
def get_albums_by_artist(artist_id, basic=False):
|
||||
|
||||
params = {
|
||||
|
|
|
@ -18,9 +18,9 @@ sys.path.insert(0, __base__)
|
|||
|
||||
#################################################################################################
|
||||
|
||||
from entrypoint import Service # noqa: F402
|
||||
from helper.utils import settings # noqa: F402
|
||||
from helper import LazyLogger # noqa: F402
|
||||
from entrypoint import Service # noqa: E402
|
||||
from helper.utils import settings # noqa: E402
|
||||
from helper import LazyLogger # noqa: E402
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue