Transdroid Torrent Search เป็นแอปพลิเคชัน Android ที่ให้ผลการค้นหาฝนตกหนักแก่แอป Android อื่น ๆ โดยการเปิดเผย ContentProvider
เดิมเป็นส่วนหนึ่งของ Transdroid ปัจจุบันมีลิงก์ torrent สำหรับไซต์ torrent สาธารณะและส่วนตัวมากกว่า 15 แห่งไปยังแอปพลิเคชัน Android ที่เกี่ยวข้องกับ torrent
.apk ล่าสุดมีให้ใช้งานผ่าน transdroid.org/latest-search และโค้ดมีให้ใช้งานภายใต้ใบอนุญาต Lesser GPL v3
Transdroid Torrent Search ให้การเข้าถึงการค้นหาทอร์เรนต์บนเว็บไซต์ต่างๆ แทนที่จะให้อินเทอร์เฟซการค้นหา ช่วยให้แอปพลิเคชัน Android เข้าถึงข้อมูลผ่านผู้ให้บริการเนื้อหาได้
การรับผลการค้นหาสำหรับข้อความค้นหาเฉพาะอาจทำได้ง่ายเพียงแค่ใช้โค้ดสองบรรทัด:
Uri uri = Uri.parse("content://org.transdroid.search.torrentsearchprovider/search/" + query); Cursor results = managedQuery(uri, null, null, null, null);
Cursor
ที่ส่งคืนสามารถใช้ได้ใน ListActivity
หรือที่อื่น ๆ ฟิลด์ต่อไปนี้มีอยู่ในเคอร์เซอร์ที่ส่งคืน:
String[] fields = new String[] { "_ID", "NAME", "TORRENTURL", "DETAILSURL", "SIZE", "ADDED", "SEEDERS", "LEECHERS" };
อาจมีการค้นหาไซต์เฉพาะและสามารถเรียงลำดับที่ต้องการได้:
Uri uri = Uri.parse("content://org.transdroid.search.torrentsearchprovider/search/" + query); Cursor results = managedQuery(uri, null, "SITE = ?", new String[] { siteCode }, sortOrder)
ในที่นี้ siteCode
คือโค้ดของหนึ่งในไซต์ฝนตกหนักที่รองรับ ค่าเริ่มต้นคือ RARBG
orderCode
อาจเป็น BySeeders (ค่าเริ่มต้น) หรือแบบรวม โปรดทราบว่าจะไม่มีการส่งคืนข้อผิดพลาดเมื่อไม่มีไซต์หรือลำดับการจัดเรียง (แม้ว่าจะเขียนไปยัง LogCat) Cursor
ที่เป็นโมฆะจะถูกส่งกลับแทน (นี่เป็นข้อจำกัดของ ContentResolver
)
หากต้องการรับรายการ (รหัสของ) ไซต์ทอร์เรนต์ที่รองรับ รวมถึงไซต์ RSS แบบกำหนดเองที่กำหนดไว้ คุณอาจใช้ผู้ให้บริการรายอื่น:
uri = Uri.parse("content://org.transdroid.search.torrentsitesprovider/sites"); Cursor sites = managedQuery(uri, null, null, null, null);
Cursor
ที่ส่งคืนประกอบด้วยฟิลด์ต่อไปนี้:
String[] fields = new String[] { "_ID", "CODE", "NAME", "RSSURL" };
Eric Kok (ผู้พัฒนาดั้งเดิม) [email protected]
สตีฟ การอน
กาบอร์ ทันก้า
เอริก เทกซ์
อลอน อัลเบิร์ต
จอห์น คอนราด
ตูน เชินเมเกอร์ส
กาบอร์ โฟลด์วารี
มาร์โก เฟอร์ลันโด
มาริโอ ฟรังโก
มาร์ติน พิฟโฟลต์
โคลบี้ บราวน์
โธมัส ริคคาร์ดี
และอื่น ๆ...
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/>.
โค้ด/ไลบรารีบางตัวถูกใช้ในโครงการ:
RssParser (การเรียนรู้-หุ่นยนต์) โดย Tane Piper (โดเมนสาธารณะ)
android-json-rpc โดย alexd (ใบอนุญาต MIT)
วอลเลย์โดย Google (Apache License 2.0)