mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
remove prints
This commit is contained in:
@@ -151,13 +151,11 @@ class CheckArtistImages:
|
|||||||
# read all files in the artist image folder
|
# read all files in the artist image folder
|
||||||
path = settings.Paths.get_sm_artist_img_path()
|
path = settings.Paths.get_sm_artist_img_path()
|
||||||
processed = [path.replace(".webp", "") for path in os.listdir(path)]
|
processed = [path.replace(".webp", "") for path in os.listdir(path)]
|
||||||
print(f"Found {len(processed)} processed artist images")
|
|
||||||
|
|
||||||
unprocessed = [
|
unprocessed = [
|
||||||
a for a in ArtistStore.get_flat_list() if a.artisthash not in processed
|
a for a in ArtistStore.get_flat_list() if a.artisthash not in processed
|
||||||
]
|
]
|
||||||
|
|
||||||
print(f"Downloading {len(unprocessed)} artist images")
|
|
||||||
key_artist_map = ((instance_key, artist) for artist in unprocessed)
|
key_artist_map = ((instance_key, artist) for artist in unprocessed)
|
||||||
|
|
||||||
with ThreadPoolExecutor(max_workers=14) as executor:
|
with ThreadPoolExecutor(max_workers=14) as executor:
|
||||||
|
|||||||
Reference in New Issue
Block a user