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.
- 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.
- Python 3.x
requests
libraryqbittorrent-api
librarypython-dotenv
library
pip install -r requirements.txt
- Clone the repository:
git clone https://github.com/mkopnsrc/plex-qbt-speed-limiter.git cd plex-qbt-speed-limiter
- Update environment file:
cp .env_SAMPLE .env vi .env
- Set Execute permission:
chmod u+x qbt_rate_limiter.py
- Run script:
python3 qbt_rate_limiter.py