$Replace with multiple characters

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

jn
Posts: 61
Joined: Mon Jul 24, 2006 2:50 pm
Location: Germany

$Replace with multiple characters

Post by jn »

Situation: I keep my songs on a NAS serving it with TwonkyMedia to my steaming clients. The problem with this setup is that there are problems with special caharcters in file names.

As my current solution, i $Replace all special characters when renaming my songs, which looks like this:

Code: Select all

$Replace($Replace($Replace($Replace($Replace($Replace($Replace($Replace($Replace(\\NAS\mp3\<Genre>\<Album Interpret>\<Jahr> - <Album>\<Song#:2> - <Interpret> - <Titel>,ä,ae),Ä,ae),ö,oe),Ö,Oe),ü,ue),Ü,Ue),ß,ss),ê,e),é,e)
You see that this tends to get very long, so the question is if there is a more elegant way to do the replacement?

Jörg
Mizery_Made
Posts: 2283
Joined: Tue Aug 29, 2006 1:09 pm
Location: Kansas City, Missouri, United States

Re: $Replace with multiple characters

Post by Mizery_Made »

Perhaps you should give "How to Remap Characters for Auto-Organize" a read.
jn
Posts: 61
Joined: Mon Jul 24, 2006 2:50 pm
Location: Germany

Re: $Replace with multiple characters

Post by jn »

Works like a charm. For German Umlauts, one should add:

Code: Select all

;ä
C3A4=6165
;Ä
C384=4165
;ö
C3B6=6F65
;Ö
C396=4F65
;ü
C3BC=7565
;Ü
C39C=5565
;ß
C39F=7373
in the [FilenameMappings] section.

Thank you very much for the quick reply!
Post Reply