From c348b96a42d161337fe7e44b7f28c6c29072872a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Feb 2013 20:14:39 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20replace=20existing=20episodes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java b/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java index 91fe098..6c6cfc0 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java @@ -63,7 +63,9 @@ public class EpisodeFilter implements Filter { if (episode == null) { continue; } - episodes.put(episode, episode); + if (!episodes.containsKey(episode)) { + episodes.put(episode, episode); + } episode = episodes.get(episode); episode.addTorrentFile(torrentFile); } -- 2.7.4