Browse Source

Added Bitsnoop to the list of supported search sites.

pull/11/head
Eric Kok 12 years ago
parent
commit
bc5e23412d
  1. 4
      android/AndroidManifest.xml
  2. 3
      android/res/values/changelog.xml
  3. 15
      android/src/org/transdroid/preferences/Preferences.java

4
android/AndroidManifest.xml

@ -18,8 +18,8 @@
--> -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.transdroid" package="org.transdroid"
android:versionName="1.1.8" android:versionName="1.1.9"
android:versionCode="150" android:versionCode="151"
android:installLocation="auto"> android:installLocation="auto">
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="13" /> <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="13" />

3
android/res/values/changelog.xml

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<string name="changes"> <string name="changes">
Transdroid 1.1.9\n
- Added Bitsnoop to search sites\n
\n
Transdroid 1.1.8\n Transdroid 1.1.8\n
- Improved BitComet support, by Sergey\n - Improved BitComet support, by Sergey\n
- Fix for non-English KTorrent\n - Fix for non-English KTorrent\n

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

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

Loading…
Cancel
Save