|
|
|
@ -624,6 +624,7 @@ public class Preferences {
@@ -624,6 +624,7 @@ public class Preferences {
|
|
|
|
|
*/ |
|
|
|
|
public static List<SiteSettings> getSupportedSiteSettings() { |
|
|
|
|
List<SiteSettings> settings = new ArrayList<SiteSettings>(); |
|
|
|
|
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")); |
|
|
|
@ -644,7 +645,9 @@ public class Preferences {
@@ -644,7 +645,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_demonoid")) { |
|
|
|
|
return "Demonoid"; |
|
|
|
|
} else if (preferencesKey.equals("site_extratorrent")) { |
|
|
|
|
return "ExtraTorrent"; |
|
|
|
|
} else if (preferencesKey.equals("site_ezrss")) { |
|
|
|
|
return "EzRss"; |
|
|
|
@ -669,7 +672,9 @@ public class Preferences {
@@ -669,7 +672,9 @@ public class Preferences {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static SiteSettings getSupportedSiteSetting(String preferencesKey) { |
|
|
|
|
if (preferencesKey.equals("site_extratorrent")) { |
|
|
|
|
if (preferencesKey.equals("site_demonoid")) { |
|
|
|
|
return new SiteSettings(preferencesKey, "Demonoid"); |
|
|
|
|
} else if (preferencesKey.equals("site_extratorrent")) { |
|
|
|
|
return new SiteSettings(preferencesKey, "ExtraTorrent"); |
|
|
|
|
} else if (preferencesKey.equals("site_ezrss")) { |
|
|
|
|
return new SiteSettings(preferencesKey, "EzRss"); |
|
|
|
|