mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
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:
commit
bec98369b6
|
|
@ -54,12 +54,12 @@ const std::string FileData::getThumbnailPath() const
|
||||||
std::string thumbnail = metadata.get("thumbnail");
|
std::string thumbnail = metadata.get("thumbnail");
|
||||||
|
|
||||||
// no thumbnail, try image
|
// no thumbnail, try image
|
||||||
if(thumbnail.empty() && Settings::getInstance()->getBool("LocalArt"))
|
if(thumbnail.empty())
|
||||||
{
|
{
|
||||||
thumbnail = metadata.get("image");
|
thumbnail = metadata.get("image");
|
||||||
|
|
||||||
// no image, try to use local image
|
// no image, try to use local image
|
||||||
if(thumbnail.empty())
|
if(thumbnail.empty() && Settings::getInstance()->getBool("LocalArt"))
|
||||||
{
|
{
|
||||||
const char* extList[2] = { ".png", ".jpg" };
|
const char* extList[2] = { ".png", ".jpg" };
|
||||||
for(int i = 0; i < 2; i++)
|
for(int i = 0; i < 2; i++)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue