Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.17 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.17 KB

rd_refresh

A set of useful scripts for managing a Real Debrid library

Installation

Install rd_api_py

pip install rd_api_py

Set environment variables in .env

RD_APITOKEN="your_token_here"
REFRESH_INTERVAL=15 # Interval (minutes) between refreshes - optional
LOGLEVEL=INFO # Default INFO - optional

# rd_api_py configuration - optional, defaults recommended 
SLEEP=2000 # Delay (ms) between requests
LONG_SLEEP=30000 # Long delay (ms) every 500 requests

Usage

Set up cron jobs to execute operations - for example:

sudo chmod +x refresh.py
*/15 * * * * /path/to/refresh.py

Or use Docker.

Docker

version: "3"

services:
  rd_refresh:
    container_name: rd_refresh
    image: ghcr.io/s-krilla/rd_refresh:latest
    environment:
      - RD_APITOKEN=yourtokenhere
    restart: unless-stopped

refresh.py

  • Finds "dead" torrents
  • Re-adds torrents
  • Selects the same files
  • Deletes the old torrent

unrestrict.py

Warning - excessive API calls

  • Compares torrent and downloads and finds restricted downloads links
  • Unrestricts download links
  • Refreshes "bad" torrents