Skip to content
This repository
Browse code

ignore 'thumb' types when updating art in the video library (Eden->Fr…

…odo)
  • Loading branch information...
commit 2620d2a2717d78592d4e9fee4c104321d1414586 1 parent 27bbdf9
authored November 18, 2012

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

  1. 12  xbmc/utils/EdenVideoArtUpdater.cpp
12  xbmc/utils/EdenVideoArtUpdater.cpp
@@ -90,7 +90,8 @@ void CEdenVideoArtUpdater::Process()
90 90
     item->GetVideoInfoTag()->m_strPictureURL.Parse();
91 91
 
92 92
     map<string, string> artwork;
93  
-    if (!db.GetArtForItem(item->GetVideoInfoTag()->m_iDbId, item->GetVideoInfoTag()->m_type, artwork))
  93
+    if (!db.GetArtForItem(item->GetVideoInfoTag()->m_iDbId, item->GetVideoInfoTag()->m_type, artwork)
  94
+        || (artwork.size() == 1 && artwork.find("thumb") != artwork.end()))
94 95
     {
95 96
       CStdString art = CVideoInfoScanner::GetImage(item.get(), true, item->GetVideoInfoTag()->m_basePath != item->GetPath(), "thumb");
96 97
       std::string type;
@@ -123,7 +124,8 @@ void CEdenVideoArtUpdater::Process()
123 124
     item->GetVideoInfoTag()->m_strPictureURL.Parse();
124 125
 
125 126
     map<string, string> artwork;
126  
-    if (!db.GetArtForItem(item->GetVideoInfoTag()->m_iDbId, item->GetVideoInfoTag()->m_type, artwork))
  127
+    if (!db.GetArtForItem(item->GetVideoInfoTag()->m_iDbId, item->GetVideoInfoTag()->m_type, artwork)
  128
+        || (artwork.size() == 1 && artwork.find("thumb") != artwork.end()))
127 129
     {
128 130
       CStdString art = CVideoInfoScanner::GetImage(item.get(), true, item->GetVideoInfoTag()->m_basePath != item->GetPath(), "thumb");
129 131
       std::string type;
@@ -156,7 +158,8 @@ void CEdenVideoArtUpdater::Process()
156 158
     item->GetVideoInfoTag()->m_strPictureURL.Parse();
157 159
 
158 160
     map<string, string> artwork;
159  
-    if (!db.GetArtForItem(item->GetVideoInfoTag()->m_iDbId, item->GetVideoInfoTag()->m_type, artwork))
  161
+    if (!db.GetArtForItem(item->GetVideoInfoTag()->m_iDbId, item->GetVideoInfoTag()->m_type, artwork)
  162
+        || (artwork.size() == 1 && artwork.find("thumb") != artwork.end()))
160 163
     {
161 164
       CStdString art = CVideoInfoScanner::GetImage(item.get(), true, false, "thumb");
162 165
       std::string type;
@@ -203,7 +206,8 @@ void CEdenVideoArtUpdater::Process()
203 206
       episode->GetVideoInfoTag()->m_strPictureURL.Parse();
204 207
 
205 208
       map<string, string> artwork;
206  
-      if (!db.GetArtForItem(episode->GetVideoInfoTag()->m_iDbId, episode->GetVideoInfoTag()->m_type, artwork))
  209
+      if (!db.GetArtForItem(item->GetVideoInfoTag()->m_iDbId, item->GetVideoInfoTag()->m_type, artwork)
  210
+          || (artwork.size() == 1 && artwork.find("thumb") != artwork.end()))
207 211
       {
208 212
         CStdString art = CVideoInfoScanner::GetImage(episode.get(), true, episode->GetVideoInfoTag()->m_basePath != episode->GetPath(), "thumb");
209 213
         if (!art.empty() && CacheTexture(art, cachedThumb))

0 notes on commit 2620d2a

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