-
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
Duplicate Plugin: beet dup -C "md5sum {file}" doesn't calculate checksum on Win10 cmd (incl ad-hoc fix) #3943
Comments
Looks like the
The crash with single quotes seems like a Windows-specific quirk of how the shell interprets the commandline, and not an issue with beets.
That may work in you particular case, but using |
I was trying to check for duplicates with md5sum. And ran into several problems.
Problem
Running this command in verbose (
-vv
) mode:(copied like its shown in this doc https://beets.readthedocs.io/en/stable/plugins/duplicates.html)
Led to this problem:
After debugging I noticed that the command it's trying to run is:
missing the "{file}", so I figured I'll try it with
$ beet -vv dup -C "md5sum {file}"
which didn't crash, but led to:
I debugged again and realized it tries to run the command as:
The "b' " at the start confuses md5sum and leads to it not finding the file.
ad-hoc fix
I changed the following line:
F:\Users\yasok\anaconda3\envs\tagging\Lib\site-packages\beetsplug\duplicates.py:200
From
To
Now
$ beet -vv dup -C "md5sum {file}"
works.Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: