Fixed issue with image uploading

This commit is contained in:
krateng 2023-10-21 14:06:08 +02:00
parent 0ef46148ae
commit 464382f279

View File

@ -534,6 +534,7 @@ def add_picture(b64,artist:Multi=[],title=None,albumtitle=None):
if title is not None: keys.append("title",title)
elif albumtitle is not None: keys.append("albumtitle",albumtitle)
k_filter, _, _, _, _ = uri_to_internal(keys)
if "associated" in k_filter: del k_filter["associated"]
if "track" in k_filter: k_filter = k_filter["track"]
elif "album" in k_filter: k_filter = k_filter["album"]
url = images.set_image(b64,**k_filter)