From 31cc8c513e0f0858f56c2365dce444bb7e990ab8 Mon Sep 17 00:00:00 2001 From: krateng Date: Thu, 14 Sep 2023 18:59:38 +0200 Subject: [PATCH] Empty art results no longer count as success --- maloja/thirdparty/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maloja/thirdparty/__init__.py b/maloja/thirdparty/__init__.py index 25cd657..75476f9 100644 --- a/maloja/thirdparty/__init__.py +++ b/maloja/thirdparty/__init__.py @@ -44,7 +44,7 @@ def get_image_track_all(track): for service in services["metadata"]: try: res = service.get_image_track(track) - if res is not None: + if res: log("Got track image for " + str(track) + " from " + service.name) return res else: @@ -56,7 +56,7 @@ def get_image_artist_all(artist): for service in services["metadata"]: try: res = service.get_image_artist(artist) - if res is not None: + if res: log("Got artist image for " + str(artist) + " from " + service.name) return res else: @@ -68,7 +68,7 @@ def get_image_album_all(album): for service in services["metadata"]: try: res = service.get_image_album(album) - if res is not None: + if res: log("Got album image for " + str(album) + " from " + service.name) return res else: