-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional more verbose duplicates prompt #4866
Conversation
beets/ui/commands.py
Outdated
if not task.is_album: | ||
print(f" {duplicate}") | ||
else: | ||
for dup in duplicate.items(): | ||
print(f" {dup}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be slightly easier to read if it were reversed! (That is, start with if task.is_album:
.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahaha, I had it the other way round and thought: That looks badly readable and switched it around. But actually I agree with you, starting with a negated condition when there is an else branch anyway, is often confusing. I'll change it back! :-)
449e534
to
d78ddb2
Compare
d78ddb2
to
7cc2943
Compare
Thanks @JOJ0 It would be nice to get this related PR to handle upgrades merged soon. |
7cc2943
to
b66a4c2
Compare
b66a4c2
to
5afd2a6
Compare
Alright, I'm quite happy with this feature now and it's ready for a final review. Some nitpicking on my docs-wording and format might be good! Thanks in advance! Hmm, I left out the fact that also singleton imports would now present a more verbose prompt in my docs text. Is that bad? Should I add it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! No objections here—looks pretty solid to me.
5afd2a6
to
ef5c4de
Compare
Description
A new config option allows to enable a more detailed view when a duplicate is detected during import of an album or singleton.
import
config option:To Do
Tests.