[GH-ISSUE #40] [Bug Report] Download format is disregarded #33

Closed
opened 2026-02-27 04:57:11 +03:00 by kerem · 1 comment
Owner

Originally created by @PrzemekTomczyk on GitHub (Jul 31, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/40

Originally assigned to: @Googolplexed0 on GitHub.

Bug Description
Specifying download format in the config or as an argument is disregarded and output results in an ogg file

Bug Triggering Command
zotify --codec opus

Error Traceback / Logs
No error or crash

Zotify Version
v0.9.0

Originally created by @PrzemekTomczyk on GitHub (Jul 31, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/40 Originally assigned to: @Googolplexed0 on GitHub. **Bug Description** Specifying download format in the config or as an argument is disregarded and output results in an ogg file **Bug Triggering Command** zotify --codec opus **Error Traceback / Logs** No error or crash **Zotify Version** v0.9.0
kerem 2026-02-27 04:57:11 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Googolplexed0 commented on GitHub (Aug 7, 2025):

Not a bug. Using the --codec setting changes the transcode library for FFMPEG (--codec opus selects libopus, leading to a lossy transcode, which is not recommended). The library automatically chooses an appropriate file type for that codec. Opus audio streams can be stored in an .ogg file (see Ogg Encapsulation for the Opus Audio Codec). Although most music players check the codec rather than the file extension, there is generally more support for the .ogg file suffix than .opus when the file suffix does matter.

If you really want the files to end in .opus, just use a bulk renaming tool to change it.

<!-- gh-comment-id:3166142541 --> @Googolplexed0 commented on GitHub (Aug 7, 2025): Not a bug. Using the `--codec` setting changes the transcode library for FFMPEG (`--codec opus` selects `libopus`, leading to a lossy transcode, which is not recommended). The library automatically chooses an appropriate file type for that codec. Opus audio streams can be stored in an `.ogg` file (see [Ogg Encapsulation for the Opus Audio Codec](https://datatracker.ietf.org/doc/html/rfc7845)). Although most music players check the codec rather than the file extension, there is generally more support for the `.ogg` file suffix than `.opus` when the file suffix does matter. If you really want the files to end in .opus, just use a bulk renaming tool to change it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#33
No description provided.