Skip to content

mkopnsrc/plex-qbt-speed-limiter

Repository files navigation

plex-qbt-speed-limiter

Plex and qBittorrent Speed Limit Management Script

Overview

This script manages the upload and download speed limits for qBittorrent based on Plex streaming activity. When someone is streaming from Plex, the script sets specific speed limits for qBittorrent. If no one is streaming, it removes these limits.

Features

  • Monitors Plex for current streaming sessions.
  • Adjusts qBittorrent upload and download speed limits based on Plex streaming activity.
  • If no streams found then, remove qBittorrent upload and download speed limits.
  • Logs activity and errors to both console and a log file.

Requirements

  • Python 3.x
  • requests library
  • qbittorrent-api library
  • python-dotenv library

Install required libraries

pip install -r requirements.txt

Installation

  1. Clone the repository:
    git clone https://github.com/mkopnsrc/plex-qbt-speed-limiter.git
    cd plex-qbt-speed-limiter
    
  2. Update environment file:
    cp .env_SAMPLE .env
    vi .env
    
  3. Set Execute permission:
    chmod u+x qbt_rate_limiter.py
    
  4. Run script:
    python3 qbt_rate_limiter.py
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages