gmusicbrowser Forum

Main board => Questions => Topic started by: memotl on February 23, 2013, 18:41:52

Title: Front Cover Tag
Post by: memotl on February 23, 2013, 18: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
Title: Re: Front Cover Tag
Post by: Quentin Sculo on February 24, 2013, 18: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 :
if (@files)
{ $set= first { FileTag::PixFromMusicFile($_,$field,1) && $_ } @files;
}

into :
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.
Title: Re: Front Cover Tag
Post by: memotl on February 26, 2013, 16:47:41
Great! Solved.

Thanks a bunch!   ;D