Skip to content

Commit

Permalink
FIX: If an autogen image is cached but not in db, push it to db
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Dec 29, 2012
1 parent a6058c0 commit 84dc52b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/video/VideoThumbLoader.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ bool CVideoThumbLoader::LoadItem(CFileItem* pItem)
pItem->SetProperty("HasAutoThumb", true); pItem->SetProperty("HasAutoThumb", true);
pItem->SetProperty("AutoThumbImage", thumbURL); pItem->SetProperty("AutoThumbImage", thumbURL);
pItem->SetArt("thumb", thumbURL); pItem->SetArt("thumb", thumbURL);
// Item has cached autogen image but no art entry. Save it to db.
CVideoInfoTag* info = pItem->GetVideoInfoTag();
if (info->m_iDbId > 0 && !info->m_type.empty())
m_database->SetArtForItem(info->m_iDbId, info->m_type, "thumb", thumbURL);
} }
else if (g_guiSettings.GetBool("myvideos.extractthumb") && else if (g_guiSettings.GetBool("myvideos.extractthumb") &&
g_guiSettings.GetBool("myvideos.extractflags")) g_guiSettings.GetBool("myvideos.extractflags"))
Expand Down

0 comments on commit 84dc52b

Please sign in to comment.