Permalink
Browse files

fixed: do not return NO_NFO in case the default scraper was disabled/…

…uninstalled
  • Loading branch information...
1 parent 3c74998 commit 9456bdf45d9f9af9d4a258e26b0369950651d8bf vdrfan committed Mar 12, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 xbmc/NfoFile.cpp
View
@@ -68,9 +68,7 @@ CNfoFile::NFOResult CNfoFile::Create(const CStdString& strPath, const ScraperPtr
AddonPtr addon;
ScraperPtr defaultScraper;
- if (!CAddonMgr::Get().GetDefault(m_type, addon))
- return NO_NFO;
- else
+ if (CAddonMgr::Get().GetDefault(m_type, addon))
defaultScraper = boost::dynamic_pointer_cast<CScraper>(addon);
if (m_type == ADDON_SCRAPER_ALBUMS)
@@ -121,7 +119,7 @@ CNfoFile::NFOResult CNfoFile::Create(const CStdString& strPath, const ScraperPtr
AddScrapers(addons,vecScrapers);
// add default scraper
- if ((m_info && m_info->ID() != defaultScraper->ID()) || !m_info)
+ if (defaultScraper && m_info && m_info->ID() != defaultScraper->ID())
vecScrapers.push_back(defaultScraper);
// search ..

0 comments on commit 9456bdf

Please sign in to comment.