Automate Your Media Downloads with n8n and Transmission
detail.loadingPreview
Streamline your media acquisition process by automatically searching for and downloading torrents using n8n and Transmission. This workflow triggers on a webhook, searches for torrents, and initiates downloads.
About This Workflow
This n8n workflow automates the process of finding and downloading media files. Upon receiving a webhook request with a title, it leverages the torrent-search-api to search across multiple providers like KickassTorrents and Rarbg. If torrents are found, it attempts to initiate a download via the Transmission RPC API. The workflow includes robust error handling, including a mechanism to refresh the Transmission session ID if a 409 conflict occurs. Notifications are sent via Telegram for both successful downloads and when a requested item cannot be found. This creates a seamless, hands-off experience for media enthusiasts.
Key Features
- Automated Torrent Discovery: Instantly search for torrents across popular providers upon receiving a webhook.
- Direct Download Integration: Seamlessly send magnet links to your Transmission client for automatic downloading.
- Intelligent Error Handling: Automatically refreshes Transmission session IDs to prevent download failures.
- Real-time Notifications: Receive Telegram alerts for both successful downloads and when media cannot be found.
- Customizable Download Paths: Specify your preferred download directory within Transmission.
How To Use
- Webhook Node: Configure the
Webhooknode to receive incoming POST requests. EnsurerawBodyis enabled. - SearchTorrent Node: Input your desired media title into the
functionCode. Ensure theWebhooknode's output (body.title) is correctly referenced. - IF Node: Set the condition to check if the
foundproperty fromSearchTorrentistrue. - Start download Node: Configure the Transmission RPC URL (
http://localhost:9091/transmission/rpc). Set upbasicAuthcredentials for your Transmission client. Use themagnetlink from theSearchTorrentnode in thefilenameparameter and specify yourdownload-dir. - IF2 Node: Configure this node to check if the
error.statusCodefromStart downloadis409. - Start download new token Node: This node is triggered if the
IF2condition (409 error) is met. It uses thex-transmission-session-idfrom the previous request's error response to retry the download. - Torrent not found Node: Connect this to the
falseoutput of theIFnode to send a Telegram notification when no torrents are found. - Telegram1 Node: Connect this to the
trueoutput of theIF2node (after a successful download with a new token) or to thefalseoutput of theIF2node (if the initial download was successful) to confirm the download.
Apps Used
Workflow JSON
{
"id": "e16d54b4-a76a-4140-8469-f5e21085c65a",
"name": "Automate Your Media Downloads with n8n and Transmission",
"nodes": 7,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: e16d54b4-a76a...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.