Album Art Script

Use this forum for everything concerning script usage
Post Reply
grimace66
Newbie
Newbie
Posts: 1
Joined: Tue Oct 25, 2011 12:08 am

Album Art Script

Post by grimace66 »

I had a script that I found a long time ago that took a file (folder.jpg) and automatically went through the list of mp3's and added it to the tag. does anyone have anything like that.

Thanks

Joe

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

Re: Album Art Script

Post by jtclipper »

There is a default script provided with the installation that does this , its the #load_cover.sct file.

This is what it does

Code: Select all

Program PictureFromFile;

var
  i: integer;

begin

  if not tg_init then exit;

  i := 1;

  sys_SetStatusText( 2, IntToStr( tg_GetRowCount ) );

  repeat

    tg_loadFile;

    sys_SetStatusText( 1, IntToStr( i ) );
    sys_SetStatusText( 3, gTag.Filename );

    gTag.ClearPictures; // remove any existing
    gTag.LoadPicture( ExtractFilePath( gTag.Filename ) + 'folder.jpg' );
    gTag.SaveToFile( 0, false, '', false );

    i := i + 1;

  until not tg_skip;

end.

Post Reply