summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlok Saboo <arsaboo@gmx.com>2023-11-12 09:45:29 -0500
committerAlok Saboo <arsaboo@gmx.com>2023-11-12 09:45:29 -0500
commit33944d457be70ab3e1043304853b799febbbaed3 (patch)
tree56e03b65c38cce385b104f5805c7de2134fe4af1
parent9e1c530c9d6457b9fa2542411273480e39926f84 (diff)
formatting
-rw-r--r--beetsplug/spotify.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py
index ad29bb3ad..729769d17 100644
--- a/beetsplug/spotify.py
+++ b/beetsplug/spotify.py
@@ -682,13 +682,17 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
track_data = self._handle_response(
requests.get, self.track_url + track_id
)
- self._log.debug("track_popularity: {} and track_isrc: {}",
- track_data.get("popularity"),
- track_data.get("external_ids").get("isrc"))
- return [track_data.get("popularity"),
- track_data.get("external_ids").get("isrc"),
- track_data.get("external_ids").get("ean"),
- track_data.get("external_ids").get("upc")]
+ self._log.debug(
+ "track_popularity: {} and track_isrc: {}",
+ track_data.get("popularity"),
+ track_data.get("external_ids").get("isrc"),
+ )
+ return [
+ track_data.get("popularity"),
+ track_data.get("external_ids").get("isrc"),
+ track_data.get("external_ids").get("ean"),
+ track_data.get("external_ids").get("upc"),
+ ]
def track_audio_features(self, track_id=None):
"""Fetch track audio features by its Spotify ID."""