Merge pull request #528 from cmitu/fix_thumbnail_path

Fix "getThumbnailPath" ignoring the 'image' tag when 'LocalArt' is not set
This commit is contained in:
Jools Wills 2019-02-12 07:41:25 +00:00 committed by GitHub
commit bec98369b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,12 +54,12 @@ const std::string FileData::getThumbnailPath() const
std::string thumbnail = metadata.get("thumbnail");
// no thumbnail, try image
if(thumbnail.empty() && Settings::getInstance()->getBool("LocalArt"))
if(thumbnail.empty())
{
thumbnail = metadata.get("image");
// no image, try to use local image
if(thumbnail.empty())
if(thumbnail.empty() && Settings::getInstance()->getBool("LocalArt"))
{
const char* extList[2] = { ".png", ".jpg" };
for(int i = 0; i < 2; i++)