Permalink
Browse files

use a list of allowed types rather than disallowed types of library i…

…tems to filter out items that don't require further processing.
  • Loading branch information...
1 parent a19d329 commit 92858a007b1a208ce19e38f1d872fd17d8666601 Jonathan Marshall committed Oct 14, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 xbmc/video/VideoThumbLoader.cpp
@@ -202,12 +202,10 @@ bool CVideoThumbLoader::LoadItem(CFileItem* pItem)
{
FillLibraryArt(*pItem);
- if (pItem->GetVideoInfoTag()->m_type == "set" ||
- pItem->GetVideoInfoTag()->m_type == "actor" ||
- pItem->GetVideoInfoTag()->m_type == "artist" ||
- pItem->GetVideoInfoTag()->m_type == "director" ||
- pItem->GetVideoInfoTag()->m_type == "writer" ||
- pItem->GetVideoInfoTag()->m_type == "season" )
+ if (pItem->GetVideoInfoTag()->m_type != "movie" &&
+ pItem->GetVideoInfoTag()->m_type != "tvshow" &&
+ pItem->GetVideoInfoTag()->m_type != "episode" &&
+ pItem->GetVideoInfoTag()->m_type != "musicvideo")
{
m_database->Close();
return true; // nothing else to be done

0 comments on commit 92858a0

Please sign in to comment.