Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1990 from koying/fixdbautothumb

FIX: If an autogen image is cached but not in db, push it to db
  • Loading branch information...
commit 4a4c1377441d370ce31a43ad730e33a129c64030 2 parents d446c0a + 84dc52b
@koying koying authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/video/VideoThumbLoader.cpp
4 xbmc/video/VideoThumbLoader.cpp
@@ -267,6 +267,10 @@ bool CVideoThumbLoader::LoadItem(CFileItem* pItem)
pItem->SetProperty("HasAutoThumb", true);
pItem->SetProperty("AutoThumbImage", 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") &&
Please sign in to comment.
Something went wrong with that request. Please try again.