From e29d1b5a0af760e04970994254e53fef3ab184f7 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Fri, 9 Mar 2012 11:53:09 +0100 Subject: [PATCH] Added Demonoid search (compatible with the search module version 1.6). --- android/res/values/changelog.xml | 5 +++++ android/src/org/transdroid/preferences/Preferences.java | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/android/res/values/changelog.xml b/android/res/values/changelog.xml index 66ab74cd..55a8314d 100644 --- a/android/res/values/changelog.xml +++ b/android/res/values/changelog.xml @@ -1,6 +1,11 @@ +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 diff --git a/android/src/org/transdroid/preferences/Preferences.java b/android/src/org/transdroid/preferences/Preferences.java index d645a615..72f4e3d1 100644 --- a/android/src/org/transdroid/preferences/Preferences.java +++ b/android/src/org/transdroid/preferences/Preferences.java @@ -624,6 +624,7 @@ 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")); @@ -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 { } 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");