From 6d6c3a6771eed3cbff3b3a5166a45a2ad1b3c403 Mon Sep 17 00:00:00 2001 From: berettavexee Date: Sun, 14 Jun 2026 20:38:30 +0200 Subject: [PATCH] feat(cli): expose OPUS codec in -c option The converter.OPUS class already existed but was excluded from the CLI validation and help text. Co-Authored-By: Claude Sonnet 4.6 --- streamrip/rip/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamrip/rip/cli.py b/streamrip/rip/cli.py index 2b3f532e..6993a07e 100644 --- a/streamrip/rip/cli.py +++ b/streamrip/rip/cli.py @@ -65,7 +65,7 @@ def wrapper(*args, **kwargs): @click.option( "-c", "--codec", - help="Convert the downloaded files to an audio codec (ALAC, FLAC, MP3, AAC, or OGG)", + help="Convert the downloaded files to an audio codec (ALAC, FLAC, MP3, AAC, OGG, or OPUS)", ) @click.option( "--no-progress", @@ -152,7 +152,7 @@ def rip( if codec is not None: c.session.conversion.enabled = True - assert codec.upper() in ("ALAC", "FLAC", "OGG", "MP3", "AAC") + assert codec.upper() in ("ALAC", "FLAC", "OGG", "MP3", "AAC", "OPUS") c.session.conversion.codec = codec.upper() if no_progress: