From b46638802213e5b8d6230a50ff2524ddec6fe62d Mon Sep 17 00:00:00 2001 From: "Arav K." Date: Wed, 26 Jun 2024 22:20:45 +0200 Subject: [PATCH] Fix minor linting issues --- beetsplug/playlist.py | 3 ++- beetsplug/smartplaylist.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/beetsplug/playlist.py b/beetsplug/playlist.py index 9a83aa4c9f..0c67f0cf6c 100644 --- a/beetsplug/playlist.py +++ b/beetsplug/playlist.py @@ -192,7 +192,8 @@ def update_playlist(self, filename, base_dir): if changes or deletions: self._log.info( - f"Updated playlist {filename} ({changes} changes, {deletions} deletions)" + f"Updated playlist {filename} " + f"({changes} changes, {deletions} deletions)" ) beets.util.copy(new_playlist, filename, replace=True) beets.util.remove(new_playlist) diff --git a/beetsplug/smartplaylist.py b/beetsplug/smartplaylist.py index 35419f9818..fbb7ffa07d 100644 --- a/beetsplug/smartplaylist.py +++ b/beetsplug/smartplaylist.py @@ -333,7 +333,10 @@ def update_playlists(self, lib, pretend=False): f" {a[0]}={json.dumps(str(a[1]))}" for a in attr ] attrs = "".join(al) - comment = f"#EXTINF:{int(item.length)}{attrs},{item.artist} - {item.title}\n" + comment = ( + f"#EXTINF:{int(item.length)}{attrs}," + f"{item.artist} - {item.title}\n" + ) f.write(comment.encode("utf-8") + entry.uri + b"\n") # Send an event when playlists were updated. send_event("smartplaylist_update")