Browse Source

Added Demonoid search (compatible with the search module version 1.6).

pull/11/head
Eric Kok 13 years ago
parent
commit
e29d1b5a0a
  1. 5
      android/res/values/changelog.xml
  2. 9
      android/src/org/transdroid/preferences/Preferences.java

5
android/res/values/changelog.xml

@ -1,6 +1,11 @@ @@ -1,6 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="changes">
Transdroid 1.1.4\n
- Support for Seedstuff servers\n
- Automatic update checker for app and search module\n
- Added Demonoid search\n
\n
Transdroid 1.1.3\n
- View active (seeding or downloading) torrents\n
- qBittorrent: view trackers and bugfix for removal\n

9
android/src/org/transdroid/preferences/Preferences.java

@ -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");

Loading…
Cancel
Save