INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to Change Slashes in Tags?  (Read 288 times)

Shasta Mike

  • World Citizen
  • ***
  • Posts: 247
How to Change Slashes in Tags?
« on: December 16, 2024, 12:13:34 pm »

I moved my library and the attached external SSD off an Id to a PC.  Now that I've changed the platform.pmd file all my new imports are showing the correct/Windows slash protocol. 

So, question at this point - though everything works OK, I've got a library that a vast portion has a file location with the slashes going the wrong way when viewed in MC.  I tried using Tools>Library Tools > Fill Properties from Filename but that didn't do the trick.   Is there a way to do a mass change to correct this without losing other info like ratings, playlists, number of plays, etc?

Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: How to Change Slashes in Tags?
« Reply #1 on: December 16, 2024, 02:06:01 pm »

You can try the Rename tool (select a few files and press F6). Enable the " find&replace"  checkbox and replace / to \ . Check the Preview before clicking OK to see if it looks as expected. Then if it works for the test files, do the same for all other files.

You may want to backup your DB before playing with this (CTRL+SHIFT+B).
Logged

Shasta Mike

  • World Citizen
  • ***
  • Posts: 247
Re: How to Change Slashes in Tags?
« Reply #2 on: December 16, 2024, 03:13:40 pm »

You can try the Rename tool (select a few files and press F6). Enable the " find&replace"  checkbox and replace / to \ . Check the Preview before clicking OK to see if it looks as expected. Then if it works for the test files, do the same for all other files.

You may want to backup your DB before playing with this (CTRL+SHIFT+B).

This didn't seem to work and maybe (I might be wrong) because what I'm trying to change is the file location designation located in the Tag. 
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: How to Change Slashes in Tags?
« Reply #3 on: December 16, 2024, 03:35:38 pm »

If you fix the [Filename] field manually in MC for one file, does it work?
Logged

Shasta Mike

  • World Citizen
  • ***
  • Posts: 247
Re: How to Change Slashes in Tags?
« Reply #4 on: December 16, 2024, 05:14:25 pm »

If you fix the [Filename] field manually in MC for one file, does it work?
  No, I "thought" that worked before changing the platform.pmd file from Linux to Windows.  Now, I cannot change the slashes manually using Tag > Filename (path) and changing it there.  MC changes it from D:\music\xxxxxx to D:\.music\xxxxxx

I've tried a bunch of variations using Rename, Find and Replace, Selecting the File Folder or not, and doing it in Tag. All give the same result as in this picture.   
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: How to Change Slashes in Tags?
« Reply #5 on: December 16, 2024, 05:52:58 pm »

Why are you trying to replace \ with / on Windows? That won't work as / is invalid on Windows. I assumed you wanted the other way around.
Logged

Shasta Mike

  • World Citizen
  • ***
  • Posts: 247
Re: How to Change Slashes in Tags?
« Reply #6 on: December 17, 2024, 10:20:11 am »

Why are you trying to replace \ with / on Windows? That won't work as / is invalid on Windows. I assumed you wanted the other way around.
  You are correct and I'm sorry for making a mess of my explanation and wasting your time.  There was an issue with the platform file - I didn't do something right and I've verified that is correct now.  Basically, I described the problem correctly initially but subsequently explained it incorrectly. 

Updates and current situation:
1. I can make changes in Tag to correct the Linux slashes.
2. Rename does not work because MC doesn't see a problem.  I tried "Rename" and "Update Database" but both show no action will be taken. 

Thanks for trying to help me!  Hopefully this makes more sense.   



Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: How to Change Slashes in Tags?
« Reply #7 on: December 17, 2024, 11:23:17 am »

Tested and working (but make a backup first):
- select all files (or all affected files)
- open the tag editor (bottom left)
- find the "Filename (path)" field - should say "[Varies]"
- enter this expression there: =replace([this],//,\)
Logged

Shasta Mike

  • World Citizen
  • ***
  • Posts: 247
Re: How to Change Slashes in Tags?
« Reply #8 on: December 17, 2024, 01:27:44 pm »

Tested and working (but make a backup first):
- select all files (or all affected files)
- open the tag editor (bottom left)
- find the "Filename (path)" field - should say "[Varies]"
- enter this expression there: =replace([this],//,\)
Wow - that is slick.  I tried it on about 10 file folders.  I first tried on only folders that had Linux slash and then on a combo of folders with both backwards and forwards slashes to see if the already correct Windows slashes were negatively affected.  Everything seemed to work just fine.  I will play some music and make sure nothing else is affected but this looks like a brilliant solution. 

THANKS!
Logged
Pages: [1]   Go Up