Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX: If an autogen image is cached but not in db, push it to db

  • Loading branch information...
commit 84dc52bf84651d7501864997ca35165d078c7504 1 parent a6058c0
@koying koying authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/video/VideoThumbLoader.cpp
View
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") &&
g_guiSettings.GetBool("myvideos.extractflags"))
Please sign in to comment.
Something went wrong with that request. Please try again.