A set of useful scripts for managing a Real Debrid library
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
Set up cron jobs to execute operations - for example:
sudo chmod +x refresh.py
*/15 * * * * /path/to/refresh.py
Or use 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
- Finds "dead" torrents
- Re-adds torrents
- Selects the same files
- Deletes the old torrent
Warning - excessive API calls
- Compares torrent and downloads and finds restricted downloads links
- Unrestricts download links
- Refreshes "bad" torrents