Git Product home page Git Product logo

transdroid-search's Introduction

transdroid-search

Transdroid Torrent Search is an Android application that provides torrent search results to other Android apps by exposing ContentProviders. Originally part of Transdroid, it now supplies torrent links for 15+ public and private torrent sites to various torrent-related Android applications.

The latest .apk is available via transdroid.org/latest-search and code is available under the Lesser GPL v3 license.

Get it on transdroid.org Get it on F-Droid

Usage

Transdroid Torrent Search provides access to torrent searches on a variety of sites. Instead of providing a search interface itself, it allows Android application to access the data via a content provider.

Getting search results

Acquiring search results for a specific query can be as easy as as two lines of code:

Uri uri = Uri.parse("content://org.transdroid.search.torrentsearchprovider/search/" + query);
Cursor results = managedQuery(uri, null, null, null, null);

The returned Cursor can be used in a ListActivity or elsewhere. The following fields are available in the returned cursor:

String[] fields = new String[] { "_ID", "NAME", "TORRENTURL", "DETAILSURL", "SIZE", "ADDED", "SEEDERS", "LEECHERS" };

Customizing search results

A specific site may be queried and the preferred sort order can be given:

Uri uri = Uri.parse("content://org.transdroid.search.torrentsearchprovider/search/" + query);
Cursor results = managedQuery(uri, null, "SITE = ?", new String[] { siteCode }, sortOrder)

Here, siteCode is the code of one of the supported torrent sites. The default is RARBG. The orderCode is either BySeeders (default) or Combined. Note that no errors are returned when a site or sort order doesn't exist (although they are written to LogCat); a null Cursor is returned instead. (This is a limitation of ContentResolvers.)

Supported torrent sites

To get a listing of (the codes of) the support torrent sites, including custom RSS sites defined, you may use another provider:

uri = Uri.parse("content://org.transdroid.search.torrentsitesprovider/sites");
Cursor sites = managedQuery(uri, null, null, null, null);

The returned Cursor contains the following fields:

String[] fields = new String[] { "_ID", "CODE", "NAME", "RSSURL" };

Developed By

  • Eric Kok (Original developer) [email protected]
  • Steve Garon
  • Gabor Tanka
  • Eric Taix
  • Alon Albert
  • John Conrad
  • Toon Schoenmakers
  • Gabor Foldvari
  • Marco Furlando
  • Mário Franco
  • Martin Piffault
  • Colby Brown
  • Thomas Riccardi
  • and others...

License

Copyright 2010-2019 Eric Kok et al.

Transdroid Torrent Search is free software: you can redistribute 
it and/or modify it under the terms of the GNU Lesser General 
Public License as published by the Free Software Foundation, 
either version 3 of the License, or (at your option) any later 
version.

Transdroid Torrent Search is distributed in the hope that it will 
be useful, but WITHOUT ANY WARRANTY; without even the implied 
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with Transdroid.  If not, see <http://www.gnu.org/licenses/>.

Some code/libraries are used in the project:

transdroid-search's People

Contributors

erickok avatar issinoho avatar johnconrad avatar alonalbert avatar lightglitch avatar mpiffault avatar deed02392 avatar niluge-kiwi avatar pere00 avatar t-gabor avatar thismachinechills avatar colbybrown242 avatar eric-kok-ezeeworld avatar pjankovsky avatar poussinou avatar s111 avatar schoentoon avatar gfoldv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.