This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This script will add all the torrents in the BT_backup folder to transmission | |
It will also add the labels and download directory from the corresponding quickresume file | |
Once a torrent is added, it will be renamed to .added so it won't be added again (if the script is run again) | |
Make sure to edit the Client() settings to match your transmission settings and the path to the BT_backup folder | |
Run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pynput | |
from pynput.keyboard import Key | |
from time import sleep | |
keyboard = pynput.keyboard.Controller() | |
def enter(): | |
keyboard.press(Key.enter) | |
sleep(0.1) | |
keyboard.release(Key.enter) |