Skip to content

feat(cli): expose OPUS codec in -c option#989

Open
berettavexee wants to merge 1 commit into
nathom:devfrom
berettavexee:feat/opus-codec
Open

feat(cli): expose OPUS codec in -c option#989
berettavexee wants to merge 1 commit into
nathom:devfrom
berettavexee:feat/opus-codec

Conversation

@berettavexee

@berettavexee berettavexee commented Jun 14, 2026

Copy link
Copy Markdown

Summary

The converter.OPUS class already existed and was fully implemented (using libopus, container .opus, default bitrate 128k), and was registered in converter.get(). However it was silently excluded from the CLI -c / --codec option by the validation assert and the help text.

This PR makes OPUS available without adding any new code:

  • Add "OPUS" to the allowed values in the assert in rip/cli.py
  • Update the --codec help string to mention OPUS

Test plan

  • rip url <deezer_track_url> -c opus → file downloaded and converted to .opus
  • rip --help shows OPUS in the codec list

🤖 Generated with Claude Code

The converter.OPUS class already existed but was excluded from the CLI
validation and help text.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@berettavexee

Copy link
Copy Markdown
Author

I must be one of only two people on earth who use the Opus codec. I’ve just realised that conversion is partially supported. Here’s a two-line patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant