Fix getMediaInfo() issues

This commit is contained in:
Reinhard Pointner 2016-10-28 23:25:17 +08:00
parent a42ee00b57
commit 98466424e7
1 changed files with 3 additions and 2 deletions

View File

@ -46,6 +46,7 @@ import net.filebot.WebServices;
import net.filebot.format.AssociativeScriptObject;
import net.filebot.format.ExpressionFormat;
import net.filebot.format.MediaBindingBean;
import net.filebot.format.SuppressedThrowables;
import net.filebot.media.MediaDetection;
import net.filebot.similarity.SeasonEpisodeMatcher.SxE;
import net.filebot.web.Movie;
@ -441,8 +442,8 @@ public abstract class ScriptShellBaseClass extends Script {
try {
return formatter.format(new MediaBindingBean(o, f));
} catch (Exception e) {
debug.warning("Failed to read media info: " + e);
} catch (SuppressedThrowables e) {
debug.warning(format("Failed to read media info: %s: %s: %s", e.getMessage(), format, f));
}
return null;