Permalink
Browse files

Merge pull request #4464 from Jojjec1/master

Fixed import of fanart for tvshow/mvideo
  • Loading branch information...
2 parents f1c69f0 + bce2387 commit 56c4aeed9fab05f7ce687c9ce2fef54f98100249 @jmarshallnz jmarshallnz committed Mar 24, 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 56c4aee

Please sign in to comment.