Permalink
Browse files

Fixed import of fanart for tvshow/mvideo

  • Loading branch information...
1 parent ee6e19c commit bce2387d78fb7d31b2535d2f284822b943e17f49 @Jojjec1 Jojjec1 committed Mar 23, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/video/VideoDatabase.cpp
@@ -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");

0 comments on commit bce2387

Please sign in to comment.