Renaming MP3 files

Features wanted...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Renaming MP3 files

Post by aurumdigitus »

Would it be possible to add to Mp3 Special|ID3 Tag to Filename (Track - Title - Artist.mp3)? That is (in IMO) the most useful and advantageous pattern. If that would bloat the menu unacceptably could (Track - Artist - Title.mp3) be simply altered instead to it by swapping the second and third field?

(A tweak to accomplish this would be fine.)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Renaming MP3 files

Post by TheQwerty »

Have you tried tweaking one of the entries under the [ID3toFilename] section of XYplorer.ini?
(Not sure if it works or not.)

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Renaming MP3 files

Post by aurumdigitus »

Geez - didn't even know it was there!

Looks promising.

Will investigate ...

:biggrin:

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Renaming MP3 files

Post by aurumdigitus »

For reasons difficult to articulate am always timid about getting involved with the configuration file. But made the change and the intial results are positive!

Thanks for the advise. How did you know of the hidden gem :?:

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Renaming MP3 files

Post by TheQwerty »

aurumdigitus wrote:How did you know of the hidden gem :?:
When you asked I vaguely recalled seeing the templates being set somewhere.

Not sure how I initially stumbled over them - might have been I was tweaking something nearby or maybe it was during one of my many failed attempts to document all of the tweaks and entries in that file. *shrugs*

admin
Site Admin
Posts: 64916
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Renaming MP3 files

Post by admin »

It has been added in v3.60.0051 - 2004-09-27 13:58. :)

Code: Select all

    + Rename Special MP3: "Filename to ID3 tag" templates are now configurable via INI 
      editing. This is how it looks with the factory defaults:
        [FilenameToID3]
        1=Artist - Title
        2=Track - Artist - Title
        3=Artist - Album - Track - Title
        [ID3toFilename]
        1=Artist - Title
        2=Track - Artist - Title
        3=Artist - Album - Track - Title
      The schemes are identical with one exception: with FilenameToID3 
      the templates and the filenames must use " - " as the separator, 
      whereas with ID3toFilename you are free to choose any other 
      separator (though it would be rather stupid to do so because " - " 
      appears to have become the standard on this planet).
      Note that FilenameToID3 cannot work as expected when e.g. an album 
      or song title contains " - ". So, the space-hyphen-space (" - ") 
      combination is to be avoided within terms, as this sequence has 
      special meaning as a field separator.      

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Renaming MP3 files

Post by aurumdigitus »

While carefully analyzing It has been added in v3.60.0051 - 2004-09-27 noted that each category has three actions for a total of six. But in 12.80 the actions shown are now eight.

Question: What is the number that can be added? Knowing Don's programming philosophy of keeping things under control he has placed an upper limit somewhere. :wink:

admin
Site Admin
Posts: 64916
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Renaming MP3 files

Post by admin »

Yep, eight is the limit. :)

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Renaming MP3 files

Post by aurumdigitus »

Knew it :!:

Actually think eight is pretty generous. Would have guessed five.

On this MP3 issue am aware there are special programs meant to do this. But was too lazy to learn a new software for what would be a one-off job and was very pleased to be able to so from within XY. And this would have been impossible had XY not been portable. :appl:

kiwichick
Posts: 648
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: Renaming MP3 files

Post by kiwichick »

Hi there, I'm just wondering about the Properties command and MP3 tags. Some of the properties yield no results for me.

I haven't tried them all but these return results:
msg properties("Album");
msg properties("Year");
msg properties("Size"); - in total bytes though, not MB or GB

And these don't:
msg properties("Title");
msg properties("Artist");
msg properties("Length");

The XY Properties pane shows that the "Artist" field is actually "Contributing Artist" but there is no field for "Title".
Windows Explorer Properties also shows "Contributing Artist" and the "Title" is as for the selected file.

Cheers.
Windows 10 Pro 22H2

admin
Site Admin
Posts: 64916
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Renaming MP3 files

Post by admin »

properties() just passes it on to the shell. What the shell returns is a dark mystery that depends on a million things. Windows...

Post Reply