From 01d4e23f0108a55412b9a1b3494788affbc347b6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 26 Feb 2016 18:22:07 +0000 Subject: [PATCH] Fix formatMultiEpisode preview format --- source/net/filebot/web/EpisodeFormat.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/net/filebot/web/EpisodeFormat.java b/source/net/filebot/web/EpisodeFormat.java index 2133c500..10b86fa8 100644 --- a/source/net/filebot/web/EpisodeFormat.java +++ b/source/net/filebot/web/EpisodeFormat.java @@ -15,7 +15,6 @@ import java.util.TreeSet; import java.util.function.Function; import java.util.regex.Matcher; import java.util.regex.Pattern; -import java.util.stream.IntStream; import java.util.stream.Stream; public class EpisodeFormat extends Format { @@ -113,7 +112,7 @@ public class EpisodeFormat extends Format { public String formatMultiRangeNumbers(List episodes, String seasonFormat, String episodeFormat) { return getSeasonEpisodeNumbers(episodes).entrySet().stream().map(it -> { String s = it.getKey() >= 0 ? String.format(seasonFormat, it.getKey()) : ""; - return IntStream.of(it.getValue().first(), it.getValue().last()).distinct().mapToObj(i -> String.format(episodeFormat, i)).collect(joining("-", s, "")); + return Stream.of(it.getValue().first(), it.getValue().last()).distinct().map(i -> String.format(episodeFormat, i)).collect(joining("-", s, "")); }).collect(joining(" - ")); }