From b087fbc4902057487af251dfe96029e65af91a88 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 11 Jun 2009 15:21:50 +0000 Subject: [PATCH] * reverse episode list ... again ... (tv.com just can't decide) --- source/net/sourceforge/filebot/web/TVDotComClient.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/net/sourceforge/filebot/web/TVDotComClient.java b/source/net/sourceforge/filebot/web/TVDotComClient.java index 3511b356..348b49e6 100644 --- a/source/net/sourceforge/filebot/web/TVDotComClient.java +++ b/source/net/sourceforge/filebot/web/TVDotComClient.java @@ -10,6 +10,7 @@ import java.net.URI; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; @@ -22,18 +23,18 @@ import java.util.regex.Pattern; import javax.swing.Icon; -import net.sourceforge.filebot.ResourceManager; - import org.w3c.dom.Document; import org.w3c.dom.Node; import org.xml.sax.SAXException; +import net.sourceforge.filebot.ResourceManager; + public class TVDotComClient implements EpisodeListProvider { private static final String host = "www.tv.com"; - + @Override public String getName() { return "TV.com"; @@ -179,6 +180,9 @@ public class TVDotComClient implements EpisodeListProvider { episodes.add(new Episode(searchResult.getName(), season, episode, title)); } + // episodes are listed in reverse order + Collections.reverse(episodes); + return episodes; }