From 920c049b768cd24ec198492514be7295b16ce29f Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Wed, 29 Aug 2012 17:51:40 +0200 Subject: [PATCH] Updated the available search sites. --- .../transdroid/preferences/Preferences.java | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/android/src/org/transdroid/preferences/Preferences.java b/android/src/org/transdroid/preferences/Preferences.java index 96f1a2e0..6bc813b3 100644 --- a/android/src/org/transdroid/preferences/Preferences.java +++ b/android/src/org/transdroid/preferences/Preferences.java @@ -629,11 +629,10 @@ public class Preferences { */ public static List getSupportedSiteSettings() { List settings = new ArrayList(); - settings.add(new SiteSettings("site_demonoid", "Demonoid")); settings.add(new SiteSettings("site_extratorrent", "ExtraTorrent")); - settings.add(new SiteSettings("site_ezrss", "EzRss")); settings.add(new SiteSettings("site_isohunt", "isoHunt")); settings.add(new SiteSettings("site_kickasstorrents", "KickassTorrents")); + settings.add(new SiteSettings("site_limetorrents", "LimeTorrents")); settings.add(new SiteSettings("site_mininova", "Mininova")); settings.add(new SiteSettings("site_monova", "Monova")); settings.add(new SiteSettings("site_thepiratebay", "The Pirate Bay")); @@ -650,16 +649,14 @@ public class Preferences { * @return The Transdroid Torrent Search site key, f.e. 'Mininova' */ public static String getCursorKeyForPreferencesKey(String preferencesKey) { - if (preferencesKey.equals("site_demonoid")) { - return "Demonoid"; - } else if (preferencesKey.equals("site_extratorrent")) { + if (preferencesKey.equals("site_extratorrent")) { return "ExtraTorrent"; - } else if (preferencesKey.equals("site_ezrss")) { - return "EzRss"; } else if (preferencesKey.equals("site_isohunt")) { return "Isohunt"; } else if (preferencesKey.equals("site_kickasstorrents")) { return "KickassTorents"; + } else if (preferencesKey.equals("site_limetorrents")) { + return "LimeTorrents"; } else if (preferencesKey.equals("site_mininova")) { return "Mininova"; } else if (preferencesKey.equals("site_monova")) { @@ -677,16 +674,14 @@ public class Preferences { } public static SiteSettings getSupportedSiteSetting(String preferencesKey) { - if (preferencesKey.equals("site_demonoid")) { - return new SiteSettings(preferencesKey, "Demonoid"); - } else if (preferencesKey.equals("site_extratorrent")) { + if (preferencesKey.equals("site_extratorrent")) { return new SiteSettings(preferencesKey, "ExtraTorrent"); - } else if (preferencesKey.equals("site_ezrss")) { - return new SiteSettings(preferencesKey, "EzRss"); } else if (preferencesKey.equals("site_isohunt")) { return new SiteSettings(preferencesKey, "Isohunt"); } else if (preferencesKey.equals("site_kickasstorrents")) { return new SiteSettings(preferencesKey, "KickassTorents"); + } else if (preferencesKey.equals("site_limetorrents")) { + return new SiteSettings(preferencesKey, "LimeTorrents"); } else if (preferencesKey.equals("site_mininova")) { return new SiteSettings(preferencesKey, "Mininova"); } else if (preferencesKey.equals("site_monova")) {