Closed entuccio closed 4 years ago
Hello! Did you mean to include details, such as how to reproduce the problem?
I would like to delete specific letters/symbols of the song's filenames. (while I import)
In specific I would like to delete "ì$&()+òàè"é*'_-?!" characters in file name.
Hello again—to make it possible to understand what's going wrong, you will need to provide (much) more detail. I wrote this blog post about reporting bugs effectively, which you might find useful: https://www.cs.cornell.edu/~asampson/blog/bugrubric.html
Sorry.
Let me explain better
I would like to delete specific letters/symbols of the song's filenames. (while I import) In specific I would like to delete "ì$&()+òàè"é*'_-?!" characters in file name.
So for example when I import a song with filename: Non è così?.mp3 ---> non cos.mp3 perchè sì.mp3 --> perch s.mp3
I tried to do "beet update" but it seems it haven't any effect on filenames.
I also tried to import new album or songs.
I specified in configuration:
replace: '[\xf9]': '' '[\xfa]': '' '[ù]': ''
Which are ASCII code for "ù" (in this case i wanted to replace [ù->' ']
Is there something wrong in my configuration file?
Thanks
Got it! That's a good start, and your replace config looks good (although you should not need the square brackets for single characters). But it would be great to see the actual verbose output from a command that encounters this problem, including ls
showing exactly what the filenames are before and after.
The most likely explanation here is encoding problems: your filenames encode the ù character differently from how the replacement thing is searching for them.
Weird.
I wrote all code I found for character "ù" .
I have an italian keyboard on my Mac.
replace: '[\xf9]': '' '[\xfa]': '' 'ù': 'u' 'ù': 'u' '\xf9': 'u' '\x0249': 'u' '\x249': 'u' '\00F9': 'u' '00F9': 'u' '151': 'u' '\151': 'u' 'U+00F9': 'u' 'F9': 'u' (assuming replace ù with u)
Where can I find my correct encode code for ù ? Thanks
Tried all this:
Does %asciify{text}
as seen in template functions work ?
Just a heads up, you may want to remove your MusicBrainz password from your config when pasting it in an issue.
Good catch @jslpc. I've gone ahead and removed it from the original issue, although I'm rather confused as to why it wasn't redacted by beet config
...
@entuccio I'd suggest changing your musicbrainz password.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Problem
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant):
Setup
My configuration (output of
beet config
) is: