|
|
|
@ -629,6 +629,7 @@ public class Preferences {
@@ -629,6 +629,7 @@ public class Preferences {
|
|
|
|
|
*/ |
|
|
|
|
public static List<SiteSettings> getSupportedSiteSettings() { |
|
|
|
|
List<SiteSettings> settings = new ArrayList<SiteSettings>(); |
|
|
|
|
settings.add(new SiteSettings("site_bitsnoop", "Bitsnoop")); |
|
|
|
|
settings.add(new SiteSettings("site_extratorrent", "ExtraTorrent")); |
|
|
|
|
settings.add(new SiteSettings("site_isohunt", "isoHunt")); |
|
|
|
|
settings.add(new SiteSettings("site_kickasstorrents", "KickassTorrents")); |
|
|
|
@ -649,7 +650,9 @@ public class Preferences {
@@ -649,7 +650,9 @@ public class Preferences {
|
|
|
|
|
* @return The Transdroid Torrent Search site key, f.e. 'Mininova' |
|
|
|
|
*/ |
|
|
|
|
public static String getCursorKeyForPreferencesKey(String preferencesKey) { |
|
|
|
|
if (preferencesKey.equals("site_extratorrent")) { |
|
|
|
|
if (preferencesKey.equals("site_bitsnoop")) { |
|
|
|
|
return "Bitsnoop"; |
|
|
|
|
} else if (preferencesKey.equals("site_extratorrent")) { |
|
|
|
|
return "ExtraTorrent"; |
|
|
|
|
} else if (preferencesKey.equals("site_isohunt")) { |
|
|
|
|
return "Isohunt"; |
|
|
|
@ -674,7 +677,9 @@ public class Preferences {
@@ -674,7 +677,9 @@ public class Preferences {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static SiteSettings getSupportedSiteSetting(String preferencesKey) { |
|
|
|
|
if (preferencesKey.equals("site_extratorrent")) { |
|
|
|
|
if (preferencesKey.equals("site_bitsnoop")) { |
|
|
|
|
return new SiteSettings(preferencesKey, "Bitsnoop"); |
|
|
|
|
} else if (preferencesKey.equals("site_extratorrent")) { |
|
|
|
|
return new SiteSettings(preferencesKey, "ExtraTorrent"); |
|
|
|
|
} else if (preferencesKey.equals("site_isohunt")) { |
|
|
|
|
return new SiteSettings(preferencesKey, "Isohunt"); |
|
|
|
|