private bool ScanFile(string partialPath, string fullPath) { var includeGroup = Plugin.Instance.Configuration.SeriesGrouping == Ordering.GroupType.ShokoGroup; var config = Plugin.Instance.Configuration; var(file, episode, series, _group) = ApiManager.GetFileInfoByPathSync(fullPath, null); // We warn here since we enabled the provider in our library, but we can't find a match for the given file path. if (file == null) { Logger.LogWarning($"Skipped unknown file at path \"{partialPath}\""); return(false); } Logger.LogInformation($"Found file \"{file.Id}\" at path \"{partialPath}\""); // We're going to post process this file later, but we don't want to include it in our library for now. if (episode.ExtraType != null) { Logger.LogInformation($"File was assigned an extra type, so ignoring file with id \"{file.Id}\" at path \"{partialPath}\""); ApiManager.MarkEpisodeAsIgnored(episode.Id, series.Id, fullPath); return(true); } return(false); }