eyeD3 icon indicating copy to clipboard operation
eyeD3 copied to clipboard

"file not found" using * wildcard

Open peeraxel opened this issue 1 year ago • 7 comments

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.

peeraxel avatar Sep 17 '22 18:09 peeraxel

How many files are we dealing with here? A quick test of 8 files and *.mp3 works for me (i.e. Linux bash)

nicfit avatar Oct 07 '22 18:10 nicfit

Try ls *.mp3 . What's the answer?

UnixCro avatar Oct 08 '22 19:10 UnixCro

Tested in a directory with >6000 files and in another one with only 13. dir *.mp3 lists all of them.

peeraxel avatar Oct 08 '22 19:10 peeraxel

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

UnixCro avatar Oct 08 '22 19:10 UnixCro

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

peeraxel avatar Oct 08 '22 20:10 peeraxel

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

UnixCro avatar Oct 09 '22 06:10 UnixCro

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!

peeraxel avatar Oct 10 '22 20:10 peeraxel