Skip to content

[Bug]: replayGain not returned when it's 0.0 #4236

@elmuz

Description

@elmuz

I confirm that:

  • I have searched the existing open AND closed issues to see if an issue already exists for the bug I've encountered
  • I'm using the latest version (your issue may have been fixed already)

Version

0.56.1 (fa2cf36)

Current Behavior

Retrieving info via API using getAlbum, I am collecting info regarding replayGain. Usually four subfields are available: peak/gain at both track and album level. However, I am noticing that when one of those value is 0.0 is not returned (i.e. the dict lacks the key).

Expected Behavior

I expect that gain/peak values are returned even though they are 0.

Steps To Reproduce

No response

Environment

- OS: debian 12
- Browser: -
- Client: curl / python requests

How Navidrome is installed?

Docker

Configuration

Relevant log output

Anything else?

No response

Code of Conduct

  • I agree to follow Navidrome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageNew bug reports that need to be evaluated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions