f4310ed6883d916397743a48f6fd4564873470b8
Drop source file/line prefixes from logs so console output is cleaner and easier to scan during long-running jobs.
DRMDtool
drmdtool is a utility for processing .drmd files using N_m3u8DL-RE.
Configuration
Create a config.toml file in the same directory as the drmdtool executable:
[General]
BaseDir = "/path/to/save/downloads"
Format = "mkv"
TempBaseDir = "/tmp/nre"
EnableConsole = true
MaxUploadMB = 32
[WatchFolder]
Path = "/path/to/watched/folder"
PollingInterval = 10
UsePolling = true
UseInotify = false
[N_m3u8DLRE]
Path = "/path/to/N_m3u8DL-RE"
[Server]
Host = "127.0.0.1"
Port = 8080
ReadTimeoutSec = 30
WriteTimeoutSec = 30
IdleTimeoutSec = 60
ReadHeaderTimeoutS = 10
[Security]
AuthToken = ""
Configuration Options
-
General
BaseDir: Directory where downloaded files will be saved.Format: Output format for the downloaded files (e.g.,mkv,mp4).TempBaseDir: Temporary directory for intermediate files.EnableConsole: Boolean to enable or disable console output.MaxUploadMB: Maximum allowed upload size for the web UI.
-
WatchFolder
Path: Directory to watch for new.drmdfiles.PollingInterval: Interval in seconds for polling the watch folder.UsePolling: Boolean to enable or disable folder polling.UseInotify: Boolean to enable or disable inotify for file watching.
-
N_m3u8DLRE
Path: Path to the N_m3u8DL-RE executable.
-
Server
Host: Bind address for the web server (127.0.0.1recommended).Port: Web server port.ReadTimeoutSec,WriteTimeoutSec,IdleTimeoutSec,ReadHeaderTimeoutS: HTTP timeout settings.
-
Security
AuthToken: Optional token for protecting all endpoints. Recommended when binding to a non-loopback host.
Environment Variable Overrides
You can override the configuration options using environment variables. The following environment variables are supported:
BASE_DIR: OverridesGeneral.BaseDirFORMAT: OverridesGeneral.FormatTEMP_BASE_DIR: OverridesGeneral.TempBaseDirENABLE_CONSOLE: OverridesGeneral.EnableConsole(set totrueorfalse)MAX_UPLOAD_MB: OverridesGeneral.MaxUploadMBWATCHED_FOLDER: OverridesWatchFolder.PathUSE_POLLING: OverridesWatchFolder.UsePolling(set totrueorfalse)USE_INOTIFY: OverridesWatchFolder.UseInotify(set totrueorfalse)POLLING_INTERVAL: OverridesWatchFolder.PollingIntervalSERVER_HOST: OverridesServer.HostSERVER_PORT: OverridesServer.PortAUTH_TOKEN: OverridesSecurity.AuthToken
Web UI Usage
-
Run the executable:
./drmdtool -
Open a web browser and go to
http://localhost:8080If
Security.AuthTokenis configured, include it as a query parameter:http://localhost:8080/?token=YOUR_TOKEN -
Use the interface to upload .drmd files and monitor download progress
CLI Usage
To process a file directly from the command line:
./drmdtool -f /path/to/file.drmd
This will download the file and save it in the base directory specified in the config.
Previews
Index Page
Select Page
Progress Page
Description
Languages
Go
98.6%
Makefile
1.4%


