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

Q: How do I specifiy part of a the filename in the filespec? #29

Open
DaveF63 opened this issue Dec 27, 2023 · 1 comment
Open

Q: How do I specifiy part of a the filename in the filespec? #29

DaveF63 opened this issue Dec 27, 2023 · 1 comment

Comments

@DaveF63
Copy link

DaveF63 commented Dec 27, 2023

Hi

id3 --delete --track "0%x" --title "%1_0%x" "*_*.mp3"

The above works as expected to ad part of the filename into the title tag.

How can I filter out some of the files in the folder, in this case those not starting with JOHN.

id3 --delete --track "0%x" --title "%1_0%x" "*_JOHN*.mp3"

I can find no clear example & I tried various combinations of escaping & brackets.

@squell
Copy link
Owner

squell commented Jan 12, 2024

The only you thing you could use right now would be something like

id3 --delete --track "0%x" --title "%1_0%x" "*_[^J][^O][^H][^N]*.mp3"; 

That would skip the not-JOHN files, but that would strip off the first four characters of every file that does NOT have JOHN in that position. Basically you're running into the limitations of plain wildcards.

This would be more generally solved by a good solution to issue #27, e.g. suppose we could simply say

--filter "%1<>JOHN*"

So that's further motivation to add that.

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

No branches or pull requests

2 participants