Plex & qBittorrent Bandwidth Optimizer
detail.loadingPreview
Automatically prevent buffering on remote Plex streams by intelligently managing your qBittorrent download speeds. This workflow ensures a smooth viewing experience for your remote users by throttling torrents when they start watching content and resuming full speed once they stop.
About This Workflow
Is your Plex Media Server struggling to deliver smooth remote streams because your torrent client is consuming all available bandwidth? This n8n workflow provides a smart solution by automatically adjusting qBittorrent's download speed limits based on remote Plex playback activity. It listens for events like 'play' or 'resume' from Plex, and if a remote user is detected, it will engage throttling on qBittorrent. When playback 'pauses' or 'stops,' your torrent client can return to full speed. Say goodbye to manual adjustments and hello to seamless, buffer-free streaming for your friends and family, without sacrificing your download progress.
Key Features
- Plex Webhook Integration: Triggers automatically upon key Plex playback events such as play, resume, pause, and stop.
- Intelligent Remote Stream Detection: Only acts when a remote user begins streaming, leaving your local network usage unaffected.
- qBittorrent API Connectivity: Securely authenticates and interacts with your qBittorrent instance to manage speed limits.
- Current State Awareness: Checks qBittorrent's existing throttle status to avoid redundant actions, ensuring efficient operation.
How To Use
- Configure Plex Webhooks: In your Plex Media Server settings, navigate to 'Webhooks' and add a new webhook. Point it to the unique URL generated by the 'Webhook' node in this n8n workflow. Ensure you select
On Play,On Resume,On Pause, andOn Stopevents to send notifications. - Set Global qBittorrent Variables: Open the 'Global Variables' node in the workflow. Update the placeholders for
qbittorent.username,qbittorent.password,qbittorent.internalIP, andqbittorent.portwith your specific qBittorrent client's login credentials and network details. - Implement Throttling Actions: The provided workflow snippet checks the qBittorrent throttle state. To fully implement the throttling logic:
- After the 'Check if Throttled' node (for 'Play' and 'Resume' paths), add a new
HTTP Requestnode to enable qBittorrent's speed limits if the current state is not throttled (i.e., when the 'Check if Throttled' node outputs to its 'false' branch). - Similarly, for the 'Pause' and 'Stop' paths, after checking the throttle state, add an
HTTP Requestnode to disable speed limits if qBittorrent is currently throttled.
- After the 'Check if Throttled' node (for 'Play' and 'Resume' paths), add a new
- Activate Workflow: Save and activate the workflow in n8n. Your Plex and qBittorrent clients will now automatically coordinate bandwidth usage.
Apps Used
Workflow JSON
{
"id": "5c4a0b1a-eca7-4da8-b9f6-9d4d2cbe2d72",
"name": "Plex & qBittorrent Bandwidth Optimizer",
"nodes": 8,
"category": "Personal",
"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: 5c4a0b1a-eca7...
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
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.
Send Obsidian Notes as Emails with Dynamic Attachments
This workflow empowers you to transform your Obsidian notes into dynamic emails, complete with custom metadata from YAML frontmatter and automated attachment handling. Seamlessly share your thoughts and files directly from your preferred note-taking environment.
Automate Your Daily Briefing: News, Emails, and Tasks
Streamline your day by automatically fetching the latest news from Times of India, important emails from your Gmail, and your upcoming Todoist tasks. Get a consolidated, beautifully formatted daily digest delivered straight to your inbox.