/* * is there a way to move this to the superclass ... * */ public static void LoadAll() { string[] providers = getFiles(location); string status = "Providers found:"; foreach (string file in providers) { Logger.Instance.LogMessage("Provider: " + file, LogLevel.DEBUG); try { SubtitleProvider rel = new SubtitleProvider(file); if (String.IsNullOrEmpty(rel.Name)) { Logger.Instance.LogMessage("Invalid provider file: " + file, LogLevel.ERROR); rel.delete(); continue; } status += " " + rel.Name + ","; } catch (Exception ex) { Logger.Instance.LogMessage("Invalid provider file: " + file + " Error: " + ex.Message, LogLevel.ERROR); } } status = status.TrimEnd(new char[] { ',' }); //Logger.Instance.LogMessage(status, LogLevel.INFO); }
/* * is there a way to move this to the superclass ... * */ public static void LoadAll() { string[] providers = getConfigurationFileNames(location); string status = "Providers found:"; foreach (string file in providers) { Logger.Instance.LogMessage("Provider: " + file, LogLevel.DEBUG); try { SubtitleProvider rel = new SubtitleProvider(file); if (String.IsNullOrEmpty(rel.Name)) { Logger.Instance.LogMessage("Invalid provider file: " + file, LogLevel.ERROR); rel.delete(); continue; } status += " " + rel.Name + ","; } catch (Exception ex) { Logger.Instance.LogMessage("Invalid provider file: " + file + " Error: " + ex.Message, LogLevel.ERROR); } } status = status.TrimEnd(new char[] { ',' }); //Logger.Instance.LogMessage(status, LogLevel.INFO); }