From 4c07edb65b73b442eb94aec3ea80862393e3198a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 24 Jun 2013 09:58:37 +0000 Subject: [PATCH] * remove Sublight/Subscene related visible components --- .../net/sourceforge/filebot/WebServices.java | 17 +---------- .../filebot/ui/subtitle/SubtitlePanel.java | 29 +------------------ website/scripts/configure.login.groovy | 21 -------------- 3 files changed, 2 insertions(+), 65 deletions(-) diff --git a/source/net/sourceforge/filebot/WebServices.java b/source/net/sourceforge/filebot/WebServices.java index 7336a404..8e75c327 100644 --- a/source/net/sourceforge/filebot/WebServices.java +++ b/source/net/sourceforge/filebot/WebServices.java @@ -33,8 +33,6 @@ import net.sourceforge.filebot.web.MusicIdentificationService; import net.sourceforge.filebot.web.OpenSubtitlesClient; import net.sourceforge.filebot.web.SearchResult; import net.sourceforge.filebot.web.SerienjunkiesClient; -import net.sourceforge.filebot.web.SublightSubtitleClient; -import net.sourceforge.filebot.web.SubsceneSubtitleClient; import net.sourceforge.filebot.web.SubtitleProvider; import net.sourceforge.filebot.web.TMDbClient; import net.sourceforge.filebot.web.TVRageClient; @@ -61,8 +59,7 @@ public final class WebServices { // subtitle dbs public static final OpenSubtitlesClient OpenSubtitles = new OpenSubtitlesClient(String.format("%s %s", getApplicationName(), getApplicationVersion())); - public static final SubsceneSubtitleClient Subscene = new SubsceneSubtitleClient(); - public static final SublightSubtitleClient Sublight = new SublightSubtitleClient(); + //TODO remove Subscene/Sublight from codebase // misc public static final FanartTV FanartTV = new FanartTV(Settings.getApplicationProperty("fanart.tv.apikey")); @@ -238,12 +235,6 @@ public final class WebServices { static { String[] osdbLogin = getLogin("osdb.user"); OpenSubtitles.setUser(osdbLogin[0], osdbLogin[1]); - - String[] sublightClientLogin = getLogin("sublight.client"); - Sublight.setClient(sublightClientLogin[0], sublightClientLogin[1]); - - String[] sublightUserLogin = getLogin("sublight.user"); - Sublight.setUser(sublightUserLogin[0], sublightUserLogin[1]); } @@ -263,12 +254,6 @@ public final class WebServices { if (id.equals("osdb.user")) { settings.put(id, value); OpenSubtitles.setUser(user, password); - } else if (id.equals("sublight.user")) { - settings.put(id, value); - Sublight.setUser(user, password); - } else if (id.equals("sublight.client")) { - settings.put(id, value); - Sublight.setClient(user, password); } else { throw new IllegalArgumentException(); } diff --git a/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java b/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java index 5552efe1..2e875a4e 100644 --- a/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java +++ b/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java @@ -43,7 +43,6 @@ import net.sourceforge.filebot.ui.LanguageComboBox; import net.sourceforge.filebot.ui.SelectDialog; import net.sourceforge.filebot.web.OpenSubtitlesClient; import net.sourceforge.filebot.web.SearchResult; -import net.sourceforge.filebot.web.SublightSubtitleClient; import net.sourceforge.filebot.web.SubtitleDescriptor; import net.sourceforge.filebot.web.SubtitleProvider; import net.sourceforge.filebot.web.VideoHashSubtitleService; @@ -250,22 +249,11 @@ public class SubtitlePanel extends AbstractSearchPanel 0 && sublPass.getPassword().length > 0) { - SublightSubtitleClient sublight = new SublightSubtitleClient(); - sublight.setClient(getApplicationProperty("sublight.clientid"), getApplicationProperty("sublight.apikey")); - sublight.setUser(sublUser.getText(), new String(sublPass.getPassword())); - sublight.login(); - } - } catch (Exception e) { - UILogger.log(Level.WARNING, "Sublight: " + e.getMessage()); - approved = false; - } + authPanel.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); if (approved) { WebServices.setLogin("osdb.user", osdbUser.getText(), new String(osdbPass.getPassword())); - WebServices.setLogin("sublight.user", sublUser.getText(), new String(sublPass.getPassword())); - WebServices.setLogin("sublight.client", getApplicationProperty("sublight.clientid"), getApplicationProperty("sublight.apikey")); authPanel.setVisible(false); } } @@ -318,9 +294,6 @@ public class SubtitlePanel extends AbstractSearchPanel