Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# chmod +x this script (terminal command e.g. `chmod +x xseed_qbit_cat_filter.sh`)
# put the following execution command in your qbit with its absolute path from qbit's
# perspective (container path if docker).
#
# /path/to/xseed_qbit_cat_filter.sh "%F" "%L" "%N" "%T" "%I"
TORRENT_PATH=$1
TORRENT_CAT=$2
@zakkarry
zakkarry / xseed.sh
Last active May 26, 2025 02:20
#!/usr/bin/env bash
### UPDATED FOR SEASON PACK FROM USENET SUPPORT IN
### CROSS SEED v6 ONLY!! v5 IS NOT SUPPORTED FOR USENET
### SEASON PACKS AND WILL ALWAYS FAIL TO FIND MATCHES
### TO ENABLE THIS FEATURE YOU _MUST_ SWITCH TO THE
### ON IMPORT COMPLETE EVENT TYPE IN YOUR SONARR SETTINGS
# Load environment variables from .env file if it exists
# in the same directory as this bash script

libtorrent Settings

Option Name Description
"active_tracker_limit" This is the total number of active torrents, the default is 1600. If you have more than 1600 torrents, they will queue randomly to achieve this max. This setting is independent of the regular total active preference option. You will need to increase this as well if you are seeding more than the default of 1600.
"aio_threads" This specifies the number of I/O threads to use for torrenting. Default is 10. Unless you have a very high-performance SSD or many slow disks in a striped RAID array, you should not increase this much
#!/usr/bin/env python3
import asyncio
import json
import random
import requests
from enum import Enum
from urllib.parse import urlparse
### CONFIGURATION VARIABLES ###
#!/usr/bin/env python3
import asyncio
import json
import os
from pathlib import Path
import random
import re
import shutil
import requests
from enum import Enum
#!/usr/bin/python3
# This script was written by zakkarry ( https://github.com/zakkarry )
# Simply follow the basic configuration options below to remove all 'cross-seed'
# tags from all torrents from qBittorrent client matching the options below.
#
# If you do not know how to use environmental variables, or do not need to, simply
# configure the second part of the OBIT_* variables, where the actual URL and strings are.
#
# If you need to, you can use this script to remove any tag as well, simply modify CROSS_SEED_TAG
# from 'cross-seed' to whichever tag you wish to remove.
### ---------- SETUP ---------- ###
# python 3.12+ ( was not extensively tested on pre-3.12 versions!! )
# pip install bencodepy
## AUTHORED BY zakkarry with help from Q
### ---------- SETUP ---------- ###
@zakkarry
zakkarry / README-mkdocs.md
Last active January 29, 2025 20:24

TRaSH Development Docker Container

This is a container designed to be used with the TRaSH-Guides repository.

Requirements

  • Docker
  • Cloned Repository

Installation

@zakkarry
zakkarry / reconnect.py
Last active January 29, 2025 20:24
#!/usr/bin/env python3
import json
import random
import requests
import time
from enum import Enum
from urllib.parse import urlparse
### CONFIGURATION VARIABLES ###