Author Topic: Front Cover Tag  (Read 2062 times)

memotl

  • Newbie
  • *
  • Posts: 2
    • View Profile
Front Cover Tag
« on: February 23, 2013, 23:41:52 »
Hi everyone! Before exposing my issue (which you might have already guess) i'd like to thank the developer(s)  and contributors (if any) for this amazing music player. It is JUST what i've been seeking for months now and i'm looking forward to be a long-term user!

Now, exploring the forum I found out that the reason why many of the album covers are not being displayed on gmb is because they are [embedded and] tagged different from 'front cover'. I guess there are two possible solutions for this: either changing massively the covers tag to 'front cover' or getting gmb to display covers tagged different.

Is there a known method to get done any of these or am i missing something and there's a easier solution?

Cheers!  ;D

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Front Cover Tag
« Reply #1 on: February 24, 2013, 23:17:54 »
I'm not aware of a program that can change the covers tag automatically.
I plan to add some configuration options for the cover picking, but it could be a while. Meanwhile as a work-around you can edit gmusicbrowser.pl (installed as /usr/bin/gmusicbrowser) to change that :
Code: [Select]
if (@files)
{ $set= first { FileTag::PixFromMusicFile($_,$field,1) && $_ } @files;
}
into :
Code: [Select]
if (@files)
{ $set= first { FileTag::PixFromMusicFile($_,$field,1) && $_ } @files;
$set||= first { FileTag::PixFromMusicFile($_,0,1) && $_ } @files;
}
With that change, if there is no picture tagged as 'front cover' it will take the first embedded picture it finds if there is one. Or just replace $field by 0, then it will just take the first embedded picture.

memotl

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Front Cover Tag
« Reply #2 on: February 26, 2013, 21:47:41 »
Great! Solved.

Thanks a bunch!   ;D