From: David ‘Bombe’ Roden Date: Tue, 19 Feb 2013 19:14:39 +0000 (+0100) Subject: Don’t replace existing episodes. X-Git-Tag: 0.1~22 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c348b96a42d161337fe7e44b7f28c6c29072872a;p=rhynodge.git Don’t replace existing episodes. --- 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); }