Automated Torrent Search and Download Notification Workflow

This workflow implements an automated movie seed search and download notification feature. After users submit a movie title request via Webhook, the system searches for relevant seeds on the KickassTorrents and Rarbg platforms and automatically downloads them using the Transmission client. Even if the Session ID becomes invalid, the system can automatically refresh and retry the download. Meanwhile, users receive real-time download status notifications through a Telegram bot, ensuring that the entire process is efficient and transparent, greatly enhancing the convenience of managing film and television resources.

Workflow Diagram
Automated Torrent Search and Download Notification Workflow Workflow diagram

Workflow Name

Automated Torrent Search and Download Notification Workflow

Key Features and Highlights

This workflow enables automatic reception of movie title requests via Webhook, performs torrent searches on two major platforms—KickassTorrents and Rarbg—and initiates downloads through the Transmission client upon finding relevant torrents. It intelligently determines whether a torrent exists and handles download failures caused by expired Transmission Session IDs by automatically refreshing the Session ID and retrying the download. Regardless of success or failure, users receive instant notifications via a Telegram bot, ensuring a transparent and efficient process.

Core Problems Addressed

  • Automates torrent resource searching and downloading, eliminating manual lookup and operation complexities.
  • Ensures reliable execution of download requests by automatically handling Transmission Session expiration issues.
  • Provides real-time feedback on download status, enhancing user experience and process controllability.

Application Scenarios

  • Film enthusiasts or media content managers needing quick downloads of specified movie torrents.
  • Automated torrent resource management on home servers or NAS devices.
  • User groups requiring download status alerts via chat tools.

Main Workflow Steps

  1. Webhook Request Reception: Listens for POST requests on a specified endpoint, receiving requests containing movie titles.
  2. Torrent Search: Invokes the TorrentSearchApi via a custom function node to search for torrents related to the movie title on KickassTorrents and Rarbg, returning the top 5 results.
  3. Torrent Availability Check: If no torrents are found, sends a Telegram message notifying “Torrent not found.”
  4. Download Initiation: If torrents are found, calls the Transmission RPC interface to add the download task, specifying the download directory and torrent magnet link.
  5. Error Handling and Retry: If the download request fails with a 409 error due to Session ID conflict, automatically fetches a new Session ID and retries the download request.
  6. Download Notification: Upon successful task addition, sends a Telegram message via the bot to notify the user that the download has started.

Involved Systems and Services

  • Webhook: Serves as the external trigger endpoint to receive request data.
  • TorrentSearchApi: Used to query torrent providers KickassTorrents and Rarbg.
  • Transmission RPC Interface: Executes torrent download tasks.
  • Telegram Bot: Sends download status notification messages to users.

Target Users and Value

  • Individual or team-based film resource managers seeking to simplify download workflows and maintain real-time download status awareness.
  • Tech enthusiasts and automation engineers looking for efficient automated download solutions.
  • NAS and home server users who want to remotely control and monitor download tasks via chat tools.

By integrating multiple services with intelligent process control, this workflow significantly enhances automation and interactivity in torrent downloading, making it an ideal solution for automated film resource management.

Automated Torrent Search and Download Notification Workflow