mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix: multiprocessing problems
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import math
|
||||
import os
|
||||
import time
|
||||
import random
|
||||
import urllib
|
||||
import requests
|
||||
import multiprocessing
|
||||
|
||||
from io import BytesIO
|
||||
from pathlib import Path
|
||||
@@ -29,8 +28,6 @@ LARGE_ENOUGH_NUMBER = 100
|
||||
PngImagePlugin.MAX_TEXT_CHUNK = LARGE_ENOUGH_NUMBER * (1024**2)
|
||||
# https://stackoverflow.com/a/61466412
|
||||
|
||||
import random
|
||||
|
||||
|
||||
def get_artist_image_link(artist: str):
|
||||
"""
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ class IndexTracks:
|
||||
extract_thumb(
|
||||
track["filepath"], track["albumhash"] + ".webp", overwrite=True
|
||||
)
|
||||
except FileNotFoundError:
|
||||
except (FileNotFoundError, KeyError):
|
||||
continue
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user