Who is this workflow for? Streamline your media-center management by automating torrent searches and downloads using transmission-daemon integrated with n8n. This workflow allows you to initiate torrent downloads effortlessly through voice commands, enhancing your overall user experience..

What does this workflow do?

Goal

The primary objective is to automate the process of searching for a movie by name and triggering its download using transmission-daemon. This is achieved through integrating Google Assistant, IFTTT, and n8n.

Setup

Prerequisites

  • Transmission Daemon: Ensure it is installed, running, and properly authenticated.
  • n8n: Configure a self-hosted instance or set it up using Docker Compose with the necessary npm packages.
  • Telegram Bot Credentials (Optional): For sending notifications upon workflow completion.

Configuration

  • Install torrent-search-api Package
   cd ~/n8n_dir   npm install torrent-search-api
  1. Configure docker-compose.yamlEnsure all dependencies for torrent-search-api are included. Below is a simplified snippet; refer to the full configuration in the original documentation for detailed setup.
  2.    version: '3.3'   services:     n8n:       container_name: n8n       image: 'n8nio/n8n:latest-rpi'       ports:         - '5678:5678'       restart: always       volumes:         - '~/n8n_dir/.n8n:/home/node/.n8n'         - '~/n8n_dir/node_modules:/usr/local/lib/node_modules'       environment:         - N8N_BASIC_AUTH_ACTIVE=true         - N8N_BASIC_AUTH_USER=username         - N8N_BASIC_AUTH_PASSWORD=your_secret_n8n_password         - EXECUTIONS_DATA_PRUNE=true         - EXECUTIONS_DATA_MAX_AGE=120         - EXECUTIONS_TIMEOUT=300         - EXECUTIONS_TIMEOUT_MAX=500         - GENERIC_TIMEZONE=Europe/Berlin         - NODE_FUNCTION_ALLOW_EXTERNAL=torrent-search-api
    1. Run n8nStart the n8n service using Docker Compose.
    2.    docker-compose up -d
      1. Create and Import WorkflowAccess the n8n interface, create a new workflow, and import the provided workflow template.
      2. Configure Workflow Nodes

        Transmission

        • Authenticate Transmission
        • Open the Start download node.
        • Edit credentials to include Transmission’s Basic Auth.
        • Repeat the process for the Start download new token node.
        • This dual authentication bypasses Transmission’s security protocol by utilizing the X-Transmission-Session-Id from the first request.

        Telegram

        • Set Up Telegram Bot
        • Create a Telegram bot and obtain the necessary credentials.
        • Configure the Torrent not found and Telegram1 nodes to send notifications.
        • Retrieve your Chat ID using a bot like useridinfobot.

        Ok Google Automation

        • Set Up IFTTT Trigger
        • Connect your Google Assistant account with IFTTT.
        • Create an applet using the Say a phrase with a text ingredient trigger.
        • Example triggers:
          • “Scarica [movie name]” β†’ “download [movie name]”
          • “Metti in download [movie name]” β†’ “put in download [movie name]”
        • Configure Webhook
        • Link the IFTTT applet to trigger the n8n webhook.
        • Ensure the webhook URL points to your n8n instance.
        • Unauthorized Downloads: Implement additional authentication for webhook requests to prevent malicious downloads. This can be achieved by including a shared token in the webhook payload.
        • Library Vulnerabilities: The torrent-search-api and its dependencies may have vulnerabilities. Regularly update these packages and monitor for security patches to maintain system integrity.
        • Content Safety: Ensure that only authorized and safe content is downloaded to avoid potential copyright infringements or malware.

        To enhance download accuracy:

        • Introduce a validation step between torrent search and download to verify the correctness of the movie title.
        • Implement filters to prevent downloading copyrighted or inappropriate material.
        • Use free and open-source content to minimize legal risks and ensure content safety.

        By following this guide, you can set up an efficient and secure automated torrent downloading system tailored to your media-center needs.

        πŸ€– Why Use This Automation Workflow?

        • Efficiency: Automate repetitive torrent search and download tasks, saving time and effort.
        • Integration: Seamlessly connects Google Assistant with your transmission-daemon via n8n.
        • Customization: Flexible setup allows for additional integrations like Telegram notifications and enhanced security measures.

        πŸ‘¨β€πŸ’» Who is This Workflow For?

        This workflow is ideal for:

        • Media Enthusiasts: Individuals who frequently download movies or music via torrents.
        • Tech-Savvy Users: Users comfortable with configuring automation tools and managing server setups.
        • Home Media Center Operators: Those looking to enhance their media servers with automated functionalities.

        🎯 Use Cases

        1. Voice-Activated Downloads: Initiate torrent downloads using Google Assistant commands.
        2. Automated Notifications: Receive Telegram alerts when a download is completed or if a torrent isn’t found.
        3. Enhanced Security: Implement measures to prevent unauthorized or malicious torrent downloads.

        TL;DR

        This workflow automates the process of searching for and downloading torrents using transmission-daemon, controlled via voice commands through Google Assistant and IFTTT. By integrating n8n, Telegram notifications, and robust authentication measures, it offers a seamless and secure solution for managing your media-center downloads.

Help us find the best n8n templates

About

A curated directory of the best n8n templates for workflow automations.