Format String struture ? Rename folder and files files ?


#1

Hi guys,

Here is a example structure of one of my albums before tagging with discogs.

Album:
VA_-_Hed_Kandi_The_Mix_Summer_2008-3CD-2008-LiR

Tracks:
101 - Adele - Cold Shoulder (Out Of Office Remix).mp3
..
104 - Syke'n'Sugarstarr Pres. CeCe Rogers - No Love Lost (Extended Mix)
..
309 - ATFC & Ghostcopy - Don't Look Back

--

I tagged the album and files with discogs. Getting the following information

Artist:
Adele

Title:
Cold Shoulder (Out Of Office Remix) 1-10

Album Artist:
Various (added this myself)

Album:
Hed Kandi The Mix: Summer 2008

Disc:
1

Year:
2008/07

Publisher:
Hed Kandi Records

I tagged with this command

VA_-%publisher%-%album%%year%\%discnumber%$num(%track%,2)-$lower(%artist%-%title%)

Result:
\VA_-Hed Kandi Records-Hed Kandi The Mix Summer 2008_200807\101-adele-_cold shoulder (out of office remix) 1-01.mp3"

Wanted result:
\VA_-Hed_Kandi_Records-Hed_Kandi_The_Mix_Summer_2008_2008.07\101-adele-cold_shoulder(out_of_office_remix)_1-01.mp3"

So I want to replace " " with "_". And for artist and songs containing "&" "´" ...etc, I haven´t figure out any solution for this either ?

The same is then discogs is getting year result in 2008/07. How do you solve this ?

Is is possible to create an .nfo, .m3u and .sfv at the same time ??

Regards
Magnus


Feature request - Rename folder
#2

http://help.mp3tag.de/main_scripting.html

these are the things you need:
for replacement of " " with "":
$replace(string, ,
)

for replacement of invalide filename characters:
$validate(filename,_)

for shortening the year to four diggits.
$num(%year%,4)

i think this would be your command:
$validate($replace(VA_-%publisher%-%album%$num(%year%,4)\%discnumber%$num(%track%,2)-$lower(%artist%-%title%), ,),)

you know that you can also format directory names without creating and moving all files in a new directory?
action: Format Value
field: DIRECTORY
format string: $validate($replace(VA
-%publisher%-%album%$num(%year%,4), ,),)

combine this with format filename in a action group:
action: Format Value
field: FILENAME
format string: $validate($replace(%discnumber%$num(%track%,2)-$lower(%artist%
-%title%), ,),_)

will save you some time


#3

Thx a lot pone!!

This really helped me out a lot. Saved me lot of time. The more I look into mp3tag the more I see the potensial.

Gonna take a look at the link you sent me :slight_smile:

Is there any built in function for handling .nfo and .m3u ?

Regards
Magnus


#4

You can create playlists and with export also nfo files.

But if you think of importing information from these files into your audiofiles, rather not.

If you rename them to .txt files, you could use the Text File - Tag converter, but:

  • you could use that to name your audiofiles as they are listed in a .m3u file, but it's much easier to create a new .m3u file acording to the existing file names.
  • you can get only the tracknames out of .nfo files (the ones which are typically spreaded with so called scene releases). for that you have to delete all information before the tracknames.

Mp3Tag Text File - Tag converter can only convert text when each line represents one audiofile.


#5

All right thx. I´ll give it a try.