Skip to content

Commit

Permalink
Fix minor linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Arav K. committed Sep 8, 2024
1 parent b382812 commit b466388
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion beetsplug/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 4 additions & 1 deletion beetsplug/smartplaylist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b466388

Please sign in to comment.