smartplaylist: Enrich original "Creating output" with track counts; CLI output overhaul#6493
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6493 +/- ##
==========================================
+ Coverage 71.78% 71.84% +0.06%
==========================================
Files 156 156
Lines 20176 20173 -3
Branches 3214 3209 -5
==========================================
+ Hits 14484 14494 +10
+ Misses 5006 5000 -6
+ Partials 686 679 -7
🚀 New features to boost your workflow:
|
e87d6f4 to
481ed7c
Compare
JOJ0
added a commit
that referenced
this pull request
Apr 3, 2026
481ed7c to
b32f220
Compare
JOJ0
added a commit
that referenced
this pull request
Apr 5, 2026
JOJ0
added a commit
that referenced
this pull request
Apr 5, 2026
JOJ0
added a commit
that referenced
this pull request
Apr 5, 2026
snejus
reviewed
Apr 7, 2026
JOJ0
added a commit
that referenced
this pull request
Apr 14, 2026
43585cf to
a6925de
Compare
JOJ0
added a commit
that referenced
this pull request
Apr 14, 2026
JOJ0
added a commit
that referenced
this pull request
Apr 14, 2026
ba4dadc to
3cfcf98
Compare
Member
Author
|
This is ready for an (hopefully) final review @snejus :-) |
snejus
requested changes
Apr 19, 2026
snejus
reviewed
Apr 19, 2026
snejus
reviewed
Apr 19, 2026
336dac6 to
e55cf66
Compare
snejus
reviewed
Apr 19, 2026
05ea82e to
f288f07
Compare
JOJ0
commented
Apr 19, 2026
which enhances code readability for future readers.
Deduplicate playlist output by URI instead of comparing bytes to PlaylistItem objects. Increment matched/pretend counts only when a new entry is actually added. This prevents duplicate lines when the same track is reached via multiple query paths.
- Enrich CLI per playlist summaries with matched track counts - Move per-track log lines to DEBUG log level (beet -vv) - Make per-track log lines configurable (format) - Remove the pretend_paths config/flag (now configurable anyway) - Improve existing help texts
- Provide defaults when adding CLI options already - Use a single config.set() call instead of using a helper method - Since we cant control much of the add_format_option helper, let's define that option here manually instead (otherwise we would have to handle a default of None)
Member
Author
|
I think now all remaining issues are addressed and we might be good to go :-) It turned out to be somewhat different than planned but in a good way. Happy with the result. Many thanks again for reviewing! |
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
Creating playlist X: N tracks.) atINFOlevel.--pretendflag produces the same output but reports "N playlists would be updated" instead of "N playlists updated".DEBUGlog level.--formatoption allows customizing the track line format.__apply_opts_to_confighelper was removed and instead defaults provided when defining CLI options--pretend-pathsoption was removed since now the per-track log format is configurable anyway.To Do