protected override void DoCheck(SetProgressDelegate prog, ICollection <ShowItem> showList, TVDoc.ScanSettings settings) { //for each directory in settings directory //for each file in directory //for each saved show (order by recent) //does show match selected file? //if so add series to list of series scanned if (!Active()) { LOGGER.Info("Not looking for new shows as 'Auto-Add' is turned off"); return; } //Don't support unattended mode if (settings.Unattended || settings.Hidden) { LOGGER.Info("Not looking for new shows as app is unattended"); return; } List <string> possibleShowNames = GetPossibleShowNameStrings(); List <ShowItem> addedShows = FinderHelper.FindShows(possibleShowNames, MDoc); if (addedShows.Count <= 0) { return; } lock (TheTVDB.SERIES_LOCK) { MDoc.Library.AddRange(addedShows); MDoc.ShowAddedOrEdited(false, false, false); } MDoc.ShowAddedOrEdited(true, false, false); LOGGER.Info("Added new shows called: {0}", string.Join(",", addedShows.Select(s => s.ShowName))); //add each new show into the shows being scanned foreach (ShowItem si in addedShows) { showList.Add(si); } }