#1 2007-08-14 17:10

Cr3dO
Member
Registered: 2007-08-14
Posts: 2

UpperCase(Artist) + Capitalize(Title)

hello

first - sorry of my english, I dont use this language smile


problem

I have SOMTHIMES.mp3 in mp3tag :

Artist : jakiswykonawca
Title : jakas nazwa empetrojki

what is rule?

( artist )jakiswykonawca = ( uppercase ) JAKISWYKONAWCA
and
( title )jakas nazwa empetrojki = ( capitalize ) Jakas Nazwa Empetrojki

I want finish :

JAKISWYKONAWCA - Jakas Nazwa Empetrojki.mp3 ( before SOMETHIMES.mp3 )

pozdrawiam smile

Offline

#2 2007-08-15 17:24

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: UpperCase(Artist) + Capitalize(Title)

Hi!

Use pascal script rule, with the code below:

var
  Artist, Title: WideString;

begin
  Artist := CalculateMetaTag(FilePath, 'ID3_Artist');
  Title := CalculateMetaTag(FilePath, 'ID3_Title');
  FileName := WideUpperCase(Artist) + ' - ' +
    WideCaseCapitalize(Title) + WideExtractFileExt(FileName);
end.

NOTE: Make sure you use latest development version: ReNamerBeta.zip

Offline

#3 2007-08-15 21:33

Cr3dO
Member
Registered: 2007-08-14
Posts: 2

Re: UpperCase(Artist) + Capitalize(Title)

Thank You Very Much smile

Dzięki wielkie, pozdrawiam

Offline

Board footer

Powered by FluxBB