Don’t replace existing episodes.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Feb 2013 19:14:39 +0000 (20:14 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Feb 2013 19:14:39 +0000 (20:14 +0100)
src/main/java/net/pterodactylus/rhynodge/filters/EpisodeFilter.java

index 91fe098..6c6cfc0 100644 (file)
@@ -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);
                }