package org.lodder.subtools.subsort.lib.control;

import java.util.List;

import org.lodder.subtools.sublibrary.exception.ReleaseControlException;
import org.lodder.subtools.sublibrary.logging.Logger;
import org.lodder.subtools.sublibrary.model.TvRelease;
import org.lodder.subtools.sublibrary.settings.model.MappingTvdbScene;

public class EpisodeFileControl extends VideoFileControl {

  public EpisodeFileControl(TvRelease tvRelease) {
    super(tvRelease);
  }

  public TvRelease process(List<MappingTvdbScene> dict) throws ReleaseControlException {
    Logger.instance.trace("EpisodeFileControl", "process", "");

    TvRelease tvRelease = (TvRelease) release;
    // return episodeFile;
    if (tvRelease.getShow().equals("")) {
      throw new ReleaseControlException("Unable to extract episode details, check file", release);
    } else {
      Logger.instance.debug("Showname: " + tvRelease.getShow());
      Logger.instance.debug("Season: " + tvRelease.getSeason());
      Logger.instance.debug("Episode: " + tvRelease.getEpisodeNumbers());

      return tvRelease;
    }
  }
}

@@ -182,22 +182,23 @@
 ary.
-logging.Logger
+model.TvRelease
 ;%0Aim
@@ -229,38 +229,54 @@
 .sublibrary.
-model.TvReleas
+settings.model.MappingTvdbScen
 e;%0Aimport or
@@ -308,100 +308,235 @@
 ary.
-settings.model.MappingTvdbScene;%0A%0Apublic class EpisodeFileControl extends VideoFileControl %7B
+util.http.DropBoxClient;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class EpisodeFileControl extends VideoFileControl %7B%0A%0A  private static final Logger LOGGER = LoggerFactory.getLogger(DropBoxClient.class);
 %0A%0A  
@@ -704,73 +704,8 @@
 n %7B%0A
-    Logger.instance.trace(%22EpisodeFileControl%22, %22process%22, %22%22);%0A%0A
     
@@ -939,43 +939,72 @@
    L
-ogger.instance.debug(%22Showname: %22 +
+OGGER.debug(%22process: showname %5B%7B%7D%5D, season %5B%7B%7D%5D, episode %5B%7B%7D%5D%22,
  tvR
@@ -1023,117 +1023,42 @@
 ow()
-);
+,
 %0A      
-Logger.instance.debug(%22Season: %22 + tvRelease.getSeason());%0A      Logger.instance.debug(%22Episode: %22 +
+    tvRelease.getSeason(),
  tvR

Convert EpisodeFileControl from old logger to new LOGGER slf4j