": " and FilenameMappings BUG#5495

Beta Testing for Windows Products and plugins

Moderator: Gurus

ZvezdanD
Posts: 3270
Joined: Thu Jun 08, 2006 7:40 pm

": " and FilenameMappings BUG#5495

Post by ZvezdanD »

I am not sure where to post this question. Maybe it should go to the "Need Help", but I think it is a bug.

After a question from one user of my script I observed the following thing. Let say that I have two kind of Titles which have column character - one with a space character after it (e.g. "Finale: Presto" or "Rondo: Allegro") and another without a space character (e.g. "12:08 AM"). In the first example I want to replace ": " with " - " (note added space character before dash) because it is ugly to get filename as "Finale- Presto" or "Rondo- Allegro". In the second example it should be "12-08 AM" without spaces around dash. This second example is already covered with the default FilenameMappings, but not the first. So, I added the line:

Code: Select all

3A20=202D20
before the existing one:

Code: Select all

3A=2D
I suppose the order of lines is important and the program executes replacement with the first line before the second. However, with my settings I get

Code: Select all

Finale -  Presto
and

Code: Select all

Rondo -  Allegro
(note one more space character after dash). The second example without spaces around column works correctly as before, i.e instead of 12:08 AM" I get "12-08 AM".

Well, if I type 3A20=202D instead of 3A20=202D20 everything works as needed, but in my opinion it is not logical nor correct way.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Peke
Posts: 18578
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: ": " and FilenameMappings

Post by Peke »

Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
Posts: 18578
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: ": " and FilenameMappings BUG#5495

Post by Peke »

This should be fixed in next release.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply