eyeD3
eyeD3 copied to clipboard
"file not found" using * wildcard
When trying
eyeD3 --remove-frame PRIV --remove-all-comments *.mp3
in a directory full of mp3's it answers with
file not found *.mp3
Same with other file suffixes, with . and other eyeD3 commands. Same in cmd.exe and PS. Individual filenames work correctly. I'm new to Python. Could there be anything wrong with the installation? Using Python 3.10.7 and EyeD3 0.9.6 on Windows 10/64bit.
How many files are we dealing with here? A quick test of 8 files and *.mp3
works for me (i.e. Linux bash)
Try ls *.mp3
. What's the answer?
Tested in a directory with >6000 files and in another one with only 13. dir *.mp3
lists all of them.
Maybe eyeD3
just has a problem with this set
variable. You can try to work around it with for loops. And no, it can't be because of the installation...
Try it for %i in (*.mp3) do eyeD3 --remove-frame PRIV --remove-all-comments %i
Good suggestion. Unfortunately there seems to be an issue with the [space] character. For each song i get an output like:
eyeD3 --remove-frame PRIV --remove-all-comments Artist Name - Song Title.mp3
file not found: Artist
Spaces are also not allowed to stand alone. Use quotation marks if your text contains a space.
eyeD3 --remove-frame PRIV --remove-all-comments --artist "Artist name" input.mp3
Both lines were the output. However, adding quotation marks to %i finally made it work:
for %i in (*.mp3) do eyeD3 --remove-frame PRIV --remove-all-comments "%i"
Thank you!