From 076f42b81fdc00164e3e00d770bf7964f99893a5 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Sun, 3 Apr 2022 10:45:50 +0000 Subject: [PATCH] Restyled by black --- server/app/functions.py | 9 +++------ server/app/lib/albumslib.py | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/server/app/functions.py b/server/app/functions.py index 9bd5106..dbeb07d 100644 --- a/server/app/functions.py +++ b/server/app/functions.py @@ -59,8 +59,7 @@ def populate(): """ start = time.time() - s, files = helpers.run_fast_scandir( - settings.HOME_DIR, [".flac", ".mp3"], full=True) + s, files = helpers.run_fast_scandir(settings.HOME_DIR, [".flac", ".mp3"], full=True) _bar = Bar("Processing files", max=len(files)) @@ -124,8 +123,7 @@ def populate_images(): _bar = Bar("Processing images", max=len(artists)) for artist in artists: file_path = ( - helpers.app_dir + "/images/artists/" + - artist.replace("/", "::") + ".webp" + helpers.app_dir + "/images/artists/" + artist.replace("/", "::") + ".webp" ) if not os.path.exists(file_path): @@ -367,8 +365,7 @@ def get_album_bio(title: str, albumartist: str): return None try: - bio = data["album"]["wiki"]["summary"].split( - '