From 5fe19c1d1d7cab62bfc9b5cd7b85d6e9d827c62f Mon Sep 17 00:00:00 2001 From: "U-LAPTOP-4EP3DB2K\\alexa" Date: Mon, 23 Oct 2023 09:47:19 +0800 Subject: [PATCH] PR feedback: fix formatting --- beetsplug/discogs.py | 10 +++++----- beetsplug/fetchart.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 2063f188c..3385e4221 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -476,17 +476,17 @@ class DiscogsPlugin(BeetsPlugin): discogs_albumid=discogs_albumid, discogs_labelid=labelid, discogs_artistid=artist_id, - cover_art_url=cover_art_url + cover_art_url=cover_art_url, ) - + def select_cover_art(self, result): """Returns the best candidate image, if any, from a Discogs `Release` object.""" if result.data.get("images") and len(result.data.get("images")) > 0: - # The first image in this list appears to be the one displayed first - # on the release page - even if it is not flagged as `type: "primary"` - and + # The first image in this list appears to be the one displayed first + # on the release page - even if it is not flagged as `type: "primary"` - and # so it is the best candidate for the cover art. return result.data.get("images")[0].get("uri") - + return None def format(self, classification): diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index e59a4ebf8..93d3f2c57 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -1098,7 +1098,7 @@ class CoverArtUrl(RemoteArtSource): image_url = None try: # look for cover_art_url on album or first track - if album.get('cover_art_url'): + if album.get("cover_art_url"): image_url = album.cover_art_url else: image_url = album.items().get().cover_art_url