Bug 190714

Summary: Scanner does not detect local cover file in case of various artist
Product: [Applications] amarok Reporter: Simon ESNEAULT <simon.esneault>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Simon ESNEAULT 2009-04-26 15:18:01 UTC
Version:            (using KDE 4.2.2)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Ubuntu Packages

In every folder of the collection, there is a cover.png file corresponding to the cover.

In the normal case with one artist per album, the scanner correctly detect the file cover.png as the cover.
But in case of multiple artist per album, the scanner doesn't set the cover, ans I have to set it manually using the dialog "set custom cover"

Handling of various artist is much much better now, and the cover is one of the last problem!

This bug might come from source file CollectionScanner.cpp, around line 440

// Serialize CoverBundle list with AMAROK_MAGIC as separator
QString string;
for( QList<CoverBundle>::ConstIterator it2 = covers.begin(); it2 != covers.end(); ++it2 )
{
    string += ( string.isEmpty() ? "" : "AMAROK_MAGIC" ) + (*it2).first + "AMAROK_MAGIC" + (*it2).second;
}

But I don't know what AMAROK_MAGIC is supposed to do ...

Thanks
Simon
Comment 1 Mikko C. 2009-04-26 15:43:31 UTC
See last couple comments of https://bugs.kde.org/show_bug.cgi?id=172953

*** This bug has been marked as a duplicate of bug 172953 ***