Sign inSign up

starkev/yggtrackercut

By starkev

•Updated 2 days ago

Removes a qBittorrent tracker once a download threshold is reached

Image
0

322

starkev/yggtrackercut repository overview

YggTrackerCut logo

⁠YggTrackerCut

Version Platform Python License

English⁠ | Français⁠


⁠English

⁠Description

YggTrackerCut connects to qBittorrent's Web UI and automatically removes a specific tracker (originally built for Yggreborn) from a torrent as soon as it starts downloading, once a configurable data threshold is reached. This avoids affecting the tracker's ratio tracking once the download is underway.

⁠Features

#FeatureDescription
1Targeted removalRemoves only the configured tracker, leaves all others untouched
2Threshold-basedTriggers once a torrent has downloaded a set amount (in MB)
3Continuous monitoringRuns as a background loop, checks active downloads periodically
4Auto-reconnectRe-authenticates automatically if the WebUI session expires
5Docker-readyShips as a container, configurable entirely via environment variables

⁠Requirements

  • qBittorrent with Web UI enabled
  • Docker (or Python 3.12+ if run standalone)

⁠Installation & Usage

docker run -d \
  --name yggtrackercut \
  --network host \
  -e QBIT_URL="http://localhost:8080" \
  -e QBIT_USER="admin" \
  -e QBIT_PASS="yourpassword" \
  -e TRACKER_MATCH="tracker.yggreborn.org" \
  -e THRESHOLD_MB="10" \
  -e CHECK_INTERVAL="10" \
  starkev/yggtrackercut:latest
⁠Option 2 — Docker Compose
docker compose up -d
⁠Option 3 — Python script
pip install requests
python3 YggTrackerCut.py

⁠Environment Variables

VariableDescriptionDefault
QBIT_URLqBittorrent Web UI addresshttp://localhost:8080
QBIT_USERWeb UI usernameadmin
QBIT_PASSWeb UI passwordchangeme
TRACKER_MATCHSubstring identifying the tracker to removetracker.yggreborn.org
THRESHOLD_MBDownload threshold in MB before removal10
CHECK_INTERVALSeconds between each check10

⁠Notes

  • Only torrents with status "downloading" are checked, to limit unnecessary API calls.
  • The container uses network_mode: host to reach qBittorrent on localhost.

⁠Disclaimer

Removing a tracker changes how a torrent reports activity to that tracker. You are solely responsible for how you use this tool and for complying with the rules of any tracker or site you use it with.


⁠Français

⁠Description

YggTrackerCut se connecte au WebUI de qBittorrent et supprime automatiquement un tracker précis (conçu à l'origine pour Yggreborn) d'un torrent dès qu'il commence à télécharger, une fois un seuil de données configurable atteint. Cela évite d'impacter le suivi de ratio du tracker une fois le téléchargement lancé.

⁠Fonctionnalités

#FonctionnalitéDescription
1Suppression cibléeNe retire que le tracker configuré, laisse tous les autres intacts
2Basé sur un seuilSe déclenche une fois un volume défini (en Mo) téléchargé
3Surveillance continueTourne en boucle en arrière-plan, vérifie les téléchargements actifs
4Reconnexion autoSe ré-authentifie automatiquement si la session WebUI expire
5Prêt pour DockerFourni en container, entièrement configurable via variables d'environnement

⁠Prérequis

  • qBittorrent avec le WebUI activé
  • Docker (ou Python 3.12+ en usage autonome)

⁠Installation & Utilisation

⁠Option 1 — Docker (recommandé)
docker run -d \
  --name yggtrackercut \
  --network host \
  -e QBIT_URL="http://localhost:8080" \
  -e QBIT_USER="admin" \
  -e QBIT_PASS="tonmotdepasse" \
  -e TRACKER_MATCH="tracker.yggreborn.org" \
  -e THRESHOLD_MB="10" \
  -e CHECK_INTERVAL="10" \
  starkev/yggtrackercut:latest
⁠Option 2 — Docker Compose
docker compose up -d
⁠Option 3 — Script Python
pip install requests
python3 YggTrackerCut.py

⁠Variables d'environnement

VariableDescriptionValeur par défaut
QBIT_URLAdresse du WebUI qBittorrenthttp://localhost:8080
QBIT_USERIdentifiant WebUIadmin
QBIT_PASSMot de passe WebUIchangeme
TRACKER_MATCHSous-chaîne identifiant le tracker à supprimertracker.yggreborn.org
THRESHOLD_MBSeuil de déclenchement en Mo10
CHECK_INTERVALIntervalle entre deux vérifications, en secondes10

⁠Notes

  • Seuls les torrents au statut "en téléchargement" sont vérifiés, pour limiter les appels API inutiles.
  • Le container utilise network_mode: host pour joindre qBittorrent sur localhost.

⁠Avertissement

Supprimer un tracker modifie la façon dont un torrent remonte son activité à ce tracker. Tu es seul responsable de l'usage de cet outil et du respect des règles du tracker ou du site avec lequel tu l'utilises.

Tag summary

Content type

Image

Digest

sha256:8d8b93f2d…

Size

45.5 MB

Last updated

2 days ago

docker pull starkev/yggtrackercut