A CLI tool to search and add magnet into your real-debrid account
Project description
Debrify
Table of Contents
Overview
Debrify is a Python-based command-line application designed to help users efficiently search and add torrent magnets to Real Debrid. It focuses exclusively on adding cached torrents to Real Debrid for instant availability.
Debrify utilizes a local database created with DuckDB, populated from the open-source torrentcsv dataset. This approach enables fast and reliable torrent searches. When adding a torrent magnet, the tool attempts to add the largest file in the magnet to Real Debrid. If the file is not cached and instantly available, it will not be added, ensuring only ready-to-stream files are processed.
Features
- Search Torrents: Quickly search for torrents using keywords from the locally created database.
- Batch Add Torrents: Add all torrents matching a specific keyword or phrase to Real Debrid in one go.
- Selective Range Adding: Choose a specific range of results when adding torrents to Real Debrid, providing better control over what is added.
- Efficient Database Handling: Uses DuckDB for fast and optimized database queries based on the torrentcsv dataset.
- Cached Torrents Only: Ensures only instantly available torrents are added to Real Debrid, improving user experience.
Installation
For Developers
-
Clone the repository:
git clone https://github.com/your-username/debrify.git cd debrify
-
Install the application:
pip install .
-
Run the application:
python main.py --help
Refer to the Usage and Commands sections for available commands.
For Users
-
Download the appropriate release for your operating system (Linux, Windows, or Mac) from the Releases section.
-
Unzip the downloaded file.
-
Open a terminal or command prompt in the extracted folder.
-
Run the following command:
./main --helpRefer to the Usage and Commands sections for available commands.
Usage
-
Update the Database:
debrify --force-updateThis updates the local database with the latest data from the torrentcsv dataset.
-
Set Real Debrid API Key: Obtain your Real Debrid API key from Real Debrid API Token and set it:
debrify --set-debrid-api-key YOUR_DEBRID_API_KEY
-
Add Torrents Based on Keywords: To add all torrents matching specified keywords to your Real Debrid account:
debrify --keywords keyword1,keyword2
-
List Torrents Without Adding: To list torrents matching specific keywords without adding them to Real Debrid:
debrify --keywords keyword1 --download-to-debrid false
-
Add Torrents in a Specific Range: After listing torrents, you can specify a range to add:
debrify --keywords keyword1 --download-range 0-100
This will attempt to check and add cached torrents from the specified range.
Commands
--force-update: Deletes the existing database and updates it with the latest data from torrentcsv.debrify --force-update--set-debrid-api-key: Sets the Real Debrid API key for your account.debrify --set-debrid-api-key YOUR_DEBRID_API_KEY
--keywords: Specifies keywords to search in the database. Keywords can be comma-separated, and space within groups is preserved.debrify --keywords keyword1,keyword2
--download-to-debrid: Specifies whether to attempt adding torrents to Real Debrid. Acceptstrueorfalse.debrify --keywords keyword1 --download-to-debrid false
--download-range: Specifies a range of results (start-end) to attempt adding to Real Debrid.debrify --keywords keyword1 --download-range 0-100
--print-results: Enables or disables printing of results. Acceptstrueorfalse.debrify --keywords keyword1 --print-results true
-vor--version: Displays the current version of the application.debrify -v
Examples
-
Update the Database:
debrify --force-updateUpdates the local database with the latest data from the torrentcsv dataset.
-
Set Real Debrid API Key:
debrify --set-debrid-api-key YOUR_DEBRID_API_KEY
Sets the Real Debrid API key for the application.
-
Add Torrents Based on Keywords:
debrify --keywords ubuntu
Adds all torrents matching the keyword "ubuntu" to your Real Debrid account.
-
List Torrents Without Adding:
debrify --keywords ubuntu --download-to-debrid false
Lists all torrents matching the keyword "ubuntu" without adding them to Real Debrid.
-
Add Torrents in a Specific Range:
debrify --keywords ubuntu --download-range 0-100
Adds cached torrents from the search results for "ubuntu" in the specified range (0-100).
Contributing
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your feature description"
- Push to your branch:
git push origin feature/your-feature-name
- Open a pull request and describe your changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- torrentcsv: For providing the open-source dataset used to build the database.
- DuckDB: For its powerful and efficient database capabilities.
- Real Debrid: For enabling seamless torrent management.
- rd-api-py: For providing wrapper for the real debrid APIs
- The open-source community for their invaluable contributions and support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file debrify-0.0.1.tar.gz.
File metadata
- Download URL: debrify-0.0.1.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7e767a31d6dc24b56fcb3355cc671377ae889d3fbe7f7aea7a2e32632b0c76
|
|
| MD5 |
16f6532efcc6cc402ce771c629391331
|
|
| BLAKE2b-256 |
18fca0bd9e621c525db0d7988ea53a05cb3661d67d5c2e0a3079df0aa91ef789
|
File details
Details for the file debrify-0.0.1-py3-none-any.whl.
File metadata
- Download URL: debrify-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd8d2f0bf2f9951d5cec1dc8db27e7ce18837607f47c1d2ea6f79fe804b3fbd7
|
|
| MD5 |
66e75689be344850ad7fced6b9517562
|
|
| BLAKE2b-256 |
37907a20ce9ddc51b86c8e847701d0e38ad2a539d88b44f5795a5c3bc46de9d3
|