Skip to content

Instantly share code, notes, and snippets.

View danwilldev's full-sized avatar
📚
Studying

Daniel Williams danwilldev

📚
Studying
  • United Kingdom
View GitHub Profile
@danwilldev
danwilldev / pauseResume.py
Last active April 14, 2025 22:24
A script to pause active torrents when new torrent added. To stop overwhelming of HDDs. Script runs continuously until the initial torrents have ended. Pausing any torrents that start uploading that are not being raced. If new torrents are added afterwards the script exits without resuming torrents as it assumes a new instance will be running an…
#!/usr/bin/env python3
from qbittorrentapi import Client
import sys, time
#----------------CONFIG----------------
catagoriesToExclude = ['autodl-1', 'autodl-2', 'autodl-3']
tagsToExclude = ['tackerName']
uploadSpeedCutOff = 15000000
uploadSpeedCutOffToggle = True
tag = 'Temp Paused'
#This is my death generating program! Created by Daniel Williams, feel free to use and share improvments!
import random
print('This is a program to guess your death age!')
age = int(input('How old are you? '))
print('So you are %s years old?'% age)
userinput = input('NO CAPS: Yes or No?: ')
if userinput == 'no':#Loops from here :)
print('You made a mistake!')
print('Restart the program')
raise SystemExit #Remember for test, ends code.