Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 84dc52bf84651d7501864997ca35165d078c7504 1 parent a6058c0
Chris Browet authored December 26, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  xbmc/video/VideoThumbLoader.cpp
4  xbmc/video/VideoThumbLoader.cpp
@@ -267,6 +267,10 @@ bool CVideoThumbLoader::LoadItem(CFileItem* pItem)
267 267
         pItem->SetProperty("HasAutoThumb", true);
268 268
         pItem->SetProperty("AutoThumbImage", thumbURL);
269 269
         pItem->SetArt("thumb", thumbURL);
  270
+        // Item has cached autogen image but no art entry. Save it to db.
  271
+        CVideoInfoTag* info = pItem->GetVideoInfoTag();
  272
+        if (info->m_iDbId > 0 && !info->m_type.empty())
  273
+          m_database->SetArtForItem(info->m_iDbId, info->m_type, "thumb", thumbURL);
270 274
       }
271 275
       else if (g_guiSettings.GetBool("myvideos.extractthumb") &&
272 276
         g_guiSettings.GetBool("myvideos.extractflags"))

0 notes on commit 84dc52b

Please sign in to comment.
Something went wrong with that request. Please try again.