|
|
|
@ -626,6 +626,7 @@ public class Preferences {
@@ -626,6 +626,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")); |
|
|
|
@ -646,7 +647,9 @@ public class Preferences {
@@ -646,7 +647,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"; |
|
|
|
@ -671,7 +674,9 @@ public class Preferences {
@@ -671,7 +674,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"); |
|
|
|
|