Bug 13596 - back cover is shown instead of front cover
: back cover is shown instead of front cover
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 7.4.0
: PC Windows 7
: P3 normal (vote)
: 7.4.0
Assigned To: Andy Grundman
: Audio::Scan
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-21 20:45 UTC by Schindler
Modified: 2009-10-05 14:28 UTC (History)
3 users (show)

See Also:
Category: Bug


Attachments
specifically look for front cover (1.01 KB, patch)
2009-08-27 10:23 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Schindler 2009-08-21 20:45:31 UTC
If there is a back cover IN the file this is shown. I only have two covers in some flac files, so I don't know if it is flac only.

This is in the web ui and on the controller.
Comment 1 James Richardson 2009-08-22 09:29:38 UTC
The artwork is embedded in the FLAC file, not in the folder that contains the FLAC files correct?
Comment 2 Schindler 2009-08-22 13:29:44 UTC
yes, in the flac are front and back. in the folder is just "folder.jpg" which is also the front cover.

but web ui and controller show the back cover. did that with dbpoweramp.
Comment 3 Andy Grundman 2009-08-23 09:59:39 UTC
Can you post the output of metaflac --list for this file?
Comment 4 Schindler 2009-08-23 10:39:17 UTC
here the link for two files incl. folder.jpg (17MB).

AUDIO.zip

http://www.sccs.ch/sample/AUDIO.zip

Note: I used dbpoweramp to create them and in 7.3.x covers were correct.
Comment 5 Ben Klaas 2009-08-26 07:53:31 UTC
this is an administrative shuffle on priority fields to help make better judgment on the top end of the priority list. P4->P5, P3->P4, and P2->P3.
Comment 6 KDF 2009-08-26 20:53:36 UTC
The metadata has back cover first, front cover second.  The Audio::Scan module passes all pictures as an array and Squeezeboxserver only grabs the first one.  From the docs on Audio::Scan, I'm not sure you can tell what each image is unless the "picture type" is fully descriptive.
Comment 7 SVN Bot 2009-08-26 21:14:32 UTC
 == Auto-comment from SVN commit #28300 to the slim repo by andy ==
 == https://svn.slimdevices.com/slim?view=revision&revision=28300 ==

Fixed bug 13596, use lowest numbered FLAC picture type when a file contains multiple images
Comment 8 KDF 2009-08-26 23:44:35 UTC
Andy,
I'm not sure what the odds are of the feature being used, but doesn't the fix still pose a problem if a user/app makes use of the icon image features (or really any of the 0-2 pictures)?

Would the performance his be too much if you were to do a grep for type 3 and fall back to the first image found if that fails?
Comment 9 Andy Grundman 2009-08-27 06:56:41 UTC
I'm not too worried about performance, as likely almost nobody does this.  Good point about image types < 3.  Do you want to improve it so it prefers images in a certain order or something?
Comment 10 KDF 2009-08-27 08:02:10 UTC
I had something partly worked up when I saw your commit. I'll submit a patch when I get some time to redo it later tonight.
Comment 11 KDF 2009-08-27 10:23:07 UTC
Created attachment 5709 [details]
specifically look for front cover

This version grabs all type 3 (front cover) images and uses the first one (more than one type 3 is allowed in the spec).  If there is no type 3 found, then it falls back to what you have already which is to use the lowest picture_type found.
Comment 12 Andy Grundman 2009-08-27 10:26:06 UTC
Thanks, looks good.  Feel free to apply.
Comment 13 SVN Bot 2009-08-27 10:33:02 UTC
 == Auto-comment from SVN commit #28310 to the slim repo by kdf ==
 == https://svn.slimdevices.com/slim?view=revision&revision=28310 ==

Bug: 13596
Description: specifically grep for front cover art (type 3) in FLAC files before simply falling back to lowest picture_type found.
Comment 14 KDF 2009-08-27 10:34:42 UTC
done.  auto comment is convenient.  I haven't noticed changelog updates lately.  Are those on hold or is there an auto update for that too?
Comment 15 Andy Grundman 2009-08-27 10:36:54 UTC
I don't generally put things in the changelog if the bug occurred only within 7.4.  If this was broken in earlier versions then we should add it to the changelog.
Comment 16 KDF 2009-08-27 11:09:34 UTC
right.  It doesn't look like ALLPICTURES was even supported in earlier versions, so I'll leave it.
Comment 17 James Richardson 2009-10-05 14:28:28 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.