Merge pull request #4464 from Jojjec1/master
authorjmarshallnz <jcmarsha@gmail.com>
Mon, 24 Mar 2014 03:00:53 +0000 (16:00 +1300)
committerTrent Nelson <trent.a.b.nelson@gmail.com>
Mon, 24 Mar 2014 17:01:09 +0000 (11:01 -0600)
Fixed import of fanart for tvshow/mvideo

xbmc/video/VideoDatabase.cpp

index eb40d6b..aa810d9 100644 (file)
@@ -8944,7 +8944,7 @@ void CVideoDatabase::ImportFromXML(const CStdString &path)
           filename += StringUtils::Format("_%i", info.m_iYear);
         CFileItem artItem(item);
         artItem.SetPath(GetSafeFile(musicvideosDir, filename) + ".avi");
-        scanner.GetArtwork(&artItem, CONTENT_MOVIES, useFolders, true, actorsDir);
+        scanner.GetArtwork(&artItem, CONTENT_MUSICVIDEOS, useFolders, true, actorsDir);
         item.SetArt(artItem.GetArt());
         scanner.AddVideo(&item, CONTENT_MUSICVIDEOS, useFolders, true, NULL, true);
         current++;
@@ -8961,7 +8961,7 @@ void CVideoDatabase::ImportFromXML(const CStdString &path)
         CFileItem artItem(showItem);
         CStdString artPath(GetSafeFile(tvshowsDir, info.m_strTitle));
         artItem.SetPath(artPath);
-        scanner.GetArtwork(&artItem, CONTENT_MOVIES, useFolders, true, actorsDir);
+        scanner.GetArtwork(&artItem, CONTENT_TVSHOWS, useFolders, true, actorsDir);
         showItem.SetArt(artItem.GetArt());
         int showID = scanner.AddVideo(&showItem, CONTENT_TVSHOWS, useFolders, true, NULL, true);
         // season artwork
@@ -8985,7 +8985,7 @@ void CVideoDatabase::ImportFromXML(const CStdString &path)
           CStdString filename = StringUtils::Format("s%02ie%02i.avi", info.m_iSeason, info.m_iEpisode);
           CFileItem artItem(item);
           artItem.SetPath(GetSafeFile(artPath, filename));
-          scanner.GetArtwork(&artItem, CONTENT_MOVIES, useFolders, true, actorsDir);
+          scanner.GetArtwork(&artItem, CONTENT_TVSHOWS, useFolders, true, actorsDir);
           item.SetArt(artItem.GetArt());
           scanner.AddVideo(&item,CONTENT_TVSHOWS, false, false, showItem.GetVideoInfoTag(), true);
           episode = episode->NextSiblingElement("episodedetails");