change to not download the album photo
This commit is contained in:
@@ -53,12 +53,14 @@ def song_data_to_Song(data, client_data) -> Song:
|
||||
client_data["address"], f"/Items/{data['AlbumId']}/Images/Primary"
|
||||
)
|
||||
|
||||
r = requests.get(album_cover_url)
|
||||
r.raise_for_status()
|
||||
# r = requests.get(album_cover_url)
|
||||
# r.raise_for_status()
|
||||
|
||||
content_type = r.headers.get("Content-Type") # e.g. "image/jpeg"
|
||||
# content_type = r.headers.get("Content-Type") # e.g. "image/jpeg"
|
||||
|
||||
ext = mimetypes.guess_extension(content_type) # ".jpg"
|
||||
# ext = mimetypes.guess_extension(content_type) # ".jpg"
|
||||
|
||||
ext = None
|
||||
|
||||
if ext is None:
|
||||
ext = ".jpg" # safe fallback for album art
|
||||
|
||||
Reference in New Issue
Block a user