Skip to content
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

"file not found" using * wildcard #581

Open
peeraxel opened this issue Sep 17, 2022 · 7 comments
Open

"file not found" using * wildcard #581

peeraxel opened this issue Sep 17, 2022 · 7 comments

Comments

@peeraxel
Copy link

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.

@nicfit
Copy link
Owner

nicfit commented Oct 7, 2022

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

@UnixCro
Copy link

UnixCro commented Oct 8, 2022

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

@peeraxel
Copy link
Author

peeraxel commented Oct 8, 2022

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

@UnixCro
Copy link

UnixCro commented Oct 8, 2022

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

@peeraxel
Copy link
Author

peeraxel commented Oct 8, 2022

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

@UnixCro
Copy link

UnixCro commented Oct 9, 2022

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

@peeraxel
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants