Skip to content

Commit a6925de

Browse files
committed
Fix quiet option handling
1 parent 3092c40 commit a6925de

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

beetsplug/smartplaylist.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def update_cmd(self, lib: Library, opts: Any, args: list[str]) -> None:
181181
self._matched_playlists = self._unmatched_playlists
182182

183183
self.__apply_opts_to_config(opts)
184-
self.update_playlists(lib, opts.pretend, opts.quiet)
184+
self.update_playlists(lib, opts.pretend)
185185

186186
def __apply_opts_to_config(self, opts: Any) -> None:
187187
"""Apply explicitly set command-line options to the plugin configuration.
@@ -277,10 +277,8 @@ def db_change(self, lib: Library, model: Item | Album) -> None:
277277

278278
self._unmatched_playlists -= self._matched_playlists
279279

280-
def update_playlists(
281-
self, lib: Library, pretend: bool = False, quiet: bool = False
282-
) -> None:
283-
quiet = quiet or self.config["quiet"].get(bool)
280+
def update_playlists(self, lib: Library, pretend: bool = False) -> None:
281+
quiet = self.config["quiet"].get(bool)
284282
if pretend and not quiet:
285283
self._log.info(
286284
"Showing query results for {} smart playlists...",

0 commit comments

Comments
 (0)