Skip to content

Instantly share code, notes, and snippets.

@dawtmaytrikx
dawtmaytrikx / scenecrc.py
Last active October 26, 2023 20:25
Renames media files according to the release name over at srrdb.com and compares the hash to identify corrupted files
#!/usr/bin/python3
import os
import pycurl
from io import BytesIO
from time import sleep
import zlib
import sys
import json
from colorama import Fore
@dawtmaytrikx
dawtmaytrikx / scenegroups_xrel2arr.py
Last active April 18, 2022 12:34
Gets the most recent English TV/MOViE releases from xREL and adds the groups to sonarr/radarr whitelists (release profiles or restrictions)
#!/usr/bin/python3
import sqlite3
from collections import namedtuple
import sys
import requests
import time
import datetime
sonarr = namedtuple('sonarr', 'url, apikey, required, ignored')