Plugin for regex replacements during import #4047
edgars-supe
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Wow; just wanted to say that this looks very snazzy! Nice work! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
When I first discovered beets a few months ago, I decided not to use it, because MusicBrainz uses non-ASCII apostrophes, quotation marks and hyphens, and I didn't have a way to make it not do that. Recently, faced with importing a whole bunch of music into my library, I thought to give beets another go. And wrote a plugin that can replace anything for the fields you want.
Introducing ImportReplace! It will run all the replacements you give it on all the fields you specify. The configuration in the example replaces the aforementioned Unicode chars with their ASCII counterparts. If you want, you can replace all
a
characters withx
. I tried it, it's pretty amusing. Anyway, this plugin could be quite useful for #2558.It's my first (well, second, ish) contribution to beets, and I've never used Python before, so constructive criticism and suggestions are very much welcome! (even about the
setup.py
file, really - anything and everything)Beta Was this translation helpful? Give feedback.
All reactions