Pahiro / Magnet-to-RD

Automatically send magnet links to Real-Debrid, check for duplicates, and select specific file types
11 stars 0 forks source link

Magnet Link to Real-Debrid (Auto-Select Specific Files)

Description

This userscript automates the process of sending magnet links to Real-Debrid, checking for duplicates, and selecting specific file types (e.g., .mp3, .m4b, .mp4, .mkv, .cbz, .cbr) for download. It adds a "send" icon next to magnet links on web pages, allowing you to quickly and efficiently manage your torrent files with Real-Debrid. The original design was intended for TPB but it'll still add an RD icon wherever it finds a magnet link.

Note: The main reason we're selecting files is that rar'ed torrents (torrents with multiple filetypes are compressed by RD) are still not working well with rclone and zurg. Note that I have found zurg to be a lot more responsive than rclone_rd.

Features

Installation

  1. Install a Userscript Manager: If you haven’t already, install a userscript manager like Tampermonkey or Greasemonkey in your browser.
  2. Add the Script:
    • Open the userscript manager dashboard.
    • Create a new script and copy the content from the magnet-link-to-real-debrid.user.js file into the editor.
    • Save the script.

Configuration

  1. Replace YOUR_REAL_DEBRID_API_KEY: Insert your Real-Debrid API key in the script where indicated.
  2. Adjust File Types (Optional): Modify the allowedExtensions array if you want to include or exclude specific file types.

Usage

License

This script is provided as-is. Feel free to modify and use it according to your needs. No warranty is provided for its functionality.