Skip to content

Helpful scripts for managing a Real Debrid library

Notifications You must be signed in to change notification settings

s-krilla/rd_refresh

Repository files navigation

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

About

Helpful scripts for managing a Real Debrid library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •