Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…uninstalled
  • Loading branch information...
commit 9456bdf45d9f9af9d4a258e26b0369950651d8bf 1 parent 3c74998
vdrfan authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 xbmc/NfoFile.cpp
View
6 xbmc/NfoFile.cpp
@@ -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 ..
Please sign in to comment.
Something went wrong with that request. Please try again.