importing exporting lyrics 4 Lyrics3 & USLT part deux (duh)

Main discussion forum
Post Reply
GwenKillerby
Newbie
Newbie
Posts: 17
Joined: Sun Feb 24, 2013 3:03 am
Contact:

importing exporting lyrics 4 Lyrics3 & USLT part deux (duh)

Post by GwenKillerby »

How do I export lyrics from the Lyrics3 field to the USLT field?

I forgot which scrypt to use:

Code: Select all

program sync_lyrics3;

begin
  if not tg_Init then exit; // no rows get out

  repeat
    tg_LoadFile;
    if (gTag.Lyrics2 <> '') and (gTag.Lyrics1 = '' ) then begin
       gTag.SaveToFile( 1, false, false );
       tg_RefreshRow;
    end;
  until not tg_Skip;
end.

This one does something, only not really what I wanted.

I want:

to able to copy a lyric from Lyrics 3 to Lyrics USLT
and BACK, if possible.

could someone adapt this script or make a new one?


muchas gracias

User avatar
jtclipper
Administrator
Administrator
Posts: 770
Joined: Tue Aug 10, 2010 12:04 pm

Re: importing exporting lyrics 4 Lyrics3 & USLT part deux (d

Post by jtclipper »

Try this, it will check for both scenarios (missing USLT or LYRICS3) and copy between each other.
Options/Tags/ID3 'use lyrics3' must be checked.

Code: Select all

program sync_lyrics;

begin
  if not tg_Init then exit; // no rows get out

  repeat
    tg_LoadFile;
    if (gTag.Lyrics2 <> '') and (gTag.Lyrics1 = '' ) then begin
       gTag.SaveToFile( 1, false, false );
       tg_RefreshRow;
    end else if (gTag.Lyrics1 <> '') and (gTag.Lyrics2 = '' ) then begin
       gTag.SaveToFile( 2, false, false );
       tg_RefreshRow;
    end;
  until not tg_Skip;
end.

GwenKillerby
Newbie
Newbie
Posts: 17
Joined: Sun Feb 24, 2013 3:03 am
Contact:

Re: importing exporting lyrics 4 Lyrics3 & USLT part deux (d

Post by GwenKillerby »

thanks for reacting, and the script.
it however, does not copy the lyrics from Lyrics3 to uslt .... ';(

User avatar
jtclipper
Administrator
Administrator
Posts: 770
Joined: Tue Aug 10, 2010 12:04 pm

Re: importing exporting lyrics 4 Lyrics3 & USLT part deux (d

Post by jtclipper »

GwenKillerby wrote:thanks for reacting, and the script.
it however, does not copy the lyrics from Lyrics3 to uslt .... ';(
It works for me so send me your tgf.ini file and an mp3 that gives you trouble so I can check.

GwenKillerby
Newbie
Newbie
Posts: 17
Joined: Sun Feb 24, 2013 3:03 am
Contact:

Re: importing exporting lyrics 4 Lyrics3 & USLT part deux (d

Post by GwenKillerby »

okay, it DOES work, i got confused because the lyrics column has a checkmark whether its uslt or lyrics3.

Okay, so the thing is: I've used the Options | UI | Colors color-coding thing to make songs with lyrics in the lyrics3 field go blue and bold.

Can I do the same for when the song has lyrics in just USLT field? And when the song has lyrics in both fields?

Because I don't see a check box [USLT exist] for that, like [Lyrics3 exist]

User avatar
jtclipper
Administrator
Administrator
Posts: 770
Joined: Tue Aug 10, 2010 12:04 pm

Re: importing exporting lyrics 4 Lyrics3 & USLT part deux (d

Post by jtclipper »

Color coding works only with tag existence and LYRICS3 is an extra tag altogether not just the lyrics field (it's confusing because of the name)
But a script can check for those fields and place a text in the result column

GwenKillerby
Newbie
Newbie
Posts: 17
Joined: Sun Feb 24, 2013 3:03 am
Contact:

Re: importing exporting lyrics 4 Lyrics3 & USLT part deux (d

Post by GwenKillerby »

so thats where the result column is for...

i hesitate to ask, but could you whip up such a script?

and where do i find info on how to get and keep a customized view, so as not to see all colums all the time?
u told me once but i forgot how.

Post Reply