smartplaylist: Add --quiet option#6493
Draft
JOJ0 wants to merge 4 commits intospl_copy_paste_ablefrom
Draft
Conversation
Codecov Report❌ Patch coverage is
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
🚀 New features to boost your workflow:
|
e87d6f4 to
481ed7c
Compare
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 ..."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
When updating:
The new behavior is tested in
test_splupdate_pretend_quiet_suppresses_bannerTo Do