package org.lodder.subtools.multisubdownloader.lib;

import org.lodder.subtools.multisubdownloader.settings.model.Settings;
import org.lodder.subtools.sublibrary.logging.Logger;
import org.lodder.subtools.sublibrary.model.Subtitle.SubtitleSource;

public class Info {

  public static void subtitleSources(Settings settings) {
    Logger.instance.log("----- Subtitle Providers ------");
    for (SubtitleSource source : SubtitleSource.values()) {
      boolean enabled = false;
      switch (source){
        case ADDIC7ED:
          enabled = settings.isSerieSourceAddic7ed();
          break;
        case LOCAL:
          enabled = settings.isSerieSourceLocal();
          break;
        case OPENSUBTITLES:
          enabled = settings.isSerieSourceOpensubtitles();
          break;
        case PODNAPISI:
          enabled = settings.isSerieSourcePodnapisi();
          break;
        case SUBSMAX:
          enabled = settings.isSerieSourceSubsMax();
          break;
        case TVSUBTITLES:
          enabled = settings.isSerieSourceTvSubtitles();
          break;
        default:
          break;
        
      }
      Logger.instance.log(" - provider : " + source.toString() + " enabled: " + enabled);
    }
    Logger.instance.log("-----------------------------");
  }

  public static void subtitleFiltering(Settings settings) {
    Logger.instance.log("----- Subtitle Filtering ------");
    Logger.instance.log(" - OptionSubtitleExactMatch : " + settings.isOptionSubtitleExactMatch());
    Logger.instance.log(" - OptionSubtitleKeywordMatch : "
        + settings.isOptionSubtitleKeywordMatch());
    Logger.instance.log(" - OptionSubtitleExcludeHearingImpaired : "
        + settings.isOptionSubtitleExcludeHearingImpaired());
    Logger.instance.log("-------------------------------");
  }

  public static void downloadOptions(Settings settings) {
    Logger.instance.log("----- Download Options ------");
    Logger.instance.log(" - OptionsAlwaysConfirm : " + settings.isOptionsAlwaysConfirm());
    Logger.instance.log("-----------------------------");
  }
}

@@ -159,113 +159,195 @@
 ary.
-logging.Logger;%0Aimport org.lodder.subtools.sublibrary.model.Subtitle.SubtitleSource;%0A%0Apublic class Info %7B
+model.Subtitle.SubtitleSource;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class Info %7B%0A  %0A  private static final Logger LOGGER = LoggerFactory.getLogger(Info.class);
 %0A%0A  
@@ -407,34 +407,26 @@
  %7B%0A    L
-ogger.instance.log
+OGGER.info
 (%22----- 
@@ -1200,34 +1200,26 @@
 %0A      L
-ogger.instance.log
+OGGER.info
 (%22 - pro
@@ -1286,34 +1286,26 @@
  %7D%0A    L
-ogger.instance.log
+OGGER.info
 (%22------
@@ -1401,34 +1401,26 @@
  %7B%0A    L
-ogger.instance.log
+OGGER.info
 (%22----- 
@@ -1453,34 +1453,26 @@
 );%0A    L
-ogger.instance.log
+OGGER.info
 (%22 - Opt
@@ -1544,34 +1544,26 @@
 );%0A    L
-ogger.instance.log
+OGGER.info
 (%22 - Opt
@@ -1647,34 +1647,26 @@
 );%0A    L
-ogger.instance.log
+OGGER.info
 (%22 - Opt
@@ -1770,34 +1770,26 @@
 );%0A    L
-ogger.instance.log
+OGGER.info
 (%22------
@@ -1885,34 +1885,26 @@
  %7B%0A    L
-ogger.instance.log
+OGGER.info
 (%22----- 
@@ -1935,34 +1935,26 @@
 );%0A    L
-ogger.instance.log
+OGGER.info
 (%22 - Opt
@@ -2022,26 +2022,18 @@
    L
-ogger.instance.log
+OGGER.info
 (%22--

Convert Info from old logger to new LOGGER slf4j