Merge pull request #4676 from jmarshallnz/dont_set_scraper_on_tvshow_on_nfo
authorjmarshallnz <jcmarsha@gmail.com>
Wed, 4 Jun 2014 06:21:49 +0000 (18:21 +1200)
committerTrent Nelson <trent.nelson@pivosgroup.com>
Sat, 7 Jun 2014 05:57:50 +0000 (13:57 +0800)
[tvshows] don't set scraper if we find a tvshow.nfo file.

xbmc/video/VideoInfoScanner.cpp

index ed2f43e..07caba2 100644 (file)
@@ -497,13 +497,6 @@ namespace VIDEO
     // handle .nfo files
     if (useLocal)
       result = CheckForNFOFile(pItem, bDirNames, info2, scrUrl);
-    if (result != CNfoFile::NO_NFO && result != CNfoFile::ERROR_NFO)
-    { // check for preconfigured scraper; if found, overwrite with interpreted scraper (from Nfofile)
-      // but keep current scan settings
-      SScanSettings settings;
-      if (m_database.GetScraperForPath(pItem->GetPath(), settings))
-        m_database.SetScraperForPath(pItem->GetPath(), info2, settings);
-    }
     if (result == CNfoFile::FULL_NFO)
     {
       pItem->GetVideoInfoTag()->Reset();