Skip to content

smartplaylist: Add --quiet option#6493

Draft
JOJ0 wants to merge 4 commits intospl_copy_paste_ablefrom
spl_quiet
Draft

smartplaylist: Add --quiet option#6493
JOJ0 wants to merge 4 commits intospl_copy_paste_ablefrom
spl_quiet

Conversation

@JOJ0
Copy link
Copy Markdown
Member

@JOJ0 JOJ0 commented Apr 3, 2026

Description

Adds a --quiet CLI flag and config option to the smartplaylist plugin.

The flag reduces splupdate output while keeping the matched-track counts visible, which most of all helps with the use-case of testing new queries in the config (for example - does the newly added smartplaylist's quersy match a decent amount of tracks or is it to narrow).

In pretend mode:

  • suppress "Results for playlist ..."
  • suppress "Showing query results for X smart playlists..."
  • suppress the list of matching tracks, including --pretend-paths output
  • replace the final "Displayed results ..." message with a shorter "... playlists would be updated" summary

When updating:

  • suppress "Creating playlist ..."

The new behavior is tested in test_splupdate_pretend_quiet_suppresses_banner

To Do

  • Documentation.
  • Changelog.
  • Tests.

@JOJ0 JOJ0 changed the base branch from master to spl_copy_paste_able April 3, 2026 17:44
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 68.75000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.09%. Comparing base (481ed7c) to head (963c7aa).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
beetsplug/smartplaylist.py 68.75% 0 Missing and 5 partials ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           spl_copy_paste_able    #6493      +/-   ##
=======================================================
+ Coverage                70.06%   70.09%   +0.03%     
=======================================================
  Files                      147      147              
  Lines                    18563    18572       +9     
  Branches                  3026     3029       +3     
=======================================================
+ Hits                     13006    13018      +12     
+ Misses                    4924     4923       -1     
+ Partials                   633      631       -2     
Files with missing lines Coverage Δ
beetsplug/smartplaylist.py 78.74% <68.75%> (+2.48%) ⬆️
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JOJ0 JOJ0 force-pushed the spl_copy_paste_able branch from e87d6f4 to 481ed7c Compare April 3, 2026 17:50
JOJ0 added 3 commits April 3, 2026 19:51
Add a --quiet flag to reduce splupdate output while keeping the
matched-track counts visible, which helps when testing new queries in
the config.

In pretend mode:
- suppress "Results for playlist ..."
- suppress "Showing query results for X smart playlists..."
- suppress the list of matching tracks, including --pretend-paths output
- replace the final "Displayed results ..." message with a shorter
  "... playlists would be updated" summary

When updating:
- suppress "Creating playlist ..."
@JOJ0 JOJ0 added the plugin Pull requests that are plugins related label Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin Pull requests that are plugins related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant