https://github.com/dashed/torbox-dmm-sync
https://github.com/dashed/torbox-dmm-sync
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dashed/torbox-dmm-sync
- Owner: dashed
- Created: 2024-11-22T05:11:36.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-27T02:03:08.000Z (about 1 year ago)
- Last Synced: 2025-04-10T12:59:10.314Z (10 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# torbox-dmm-sync
> Sync DMM magnet links to TorBox.
Credits: https://gist.github.com/eliasbenb/10a4a49f3feb9df19b0b8ed838babb82
## Usage instructions
0. Export and download your DMM backup JSON from: https://debridmediamanager.com/library
1. Install `uv`. See: https://docs.astral.sh/uv/getting-started/installation/
- Also create and activate the virtual environment: `uv venv` and `source .venv/bin/activate`
2. Run the script using one of these methods:
```bash
# Using environment variables
TORBOX_API_KEY="your-api-key" DMM_BACKUP_JSON_FILE="path/to/dmm-backup.json" uv run torbox-magnet-importer.py
# Using command line arguments
uv run torbox-magnet-importer.py --api-key "your-api-key" --input-file "path/to/dmm-backup.json"
# Dry run (simulate without making changes)
uv run torbox-magnet-importer.py --api-key "your-api-key" --input-file "path/to/dmm-backup.json" --dry-run
```
### Options
- `--api-key`: TorBox API key (can also use TORBOX_API_KEY env var)
- `--input-file`: Path to DMM backup JSON file (can also use DMM_BACKUP_JSON_FILE env var)
- `--dry-run`: Perform a dry run without making any changes
- `--no-log-file`: Disable logging to file
Get torbox API key from: https://torbox.app/settings