mirror of
https://github.com/iv-org/invidious.git
synced 2026-07-07 14:16:45 -05:00
Formats raw bitrate values (e.g. 128000) to readable kilobit labels (e.g. 128k) in listen mode quality selection. Root cause: The player.ecr template was displaying raw bitrate integers with a 'k' suffix appended, resulting in confusing labels like '128000k' instead of '128k'. Fix: - Added format_audio_quality_label helper in helpers.cr that divides bitrate by 1000 and rounds to integer - Updated player.ecr to use the new helper for audio stream quality labels - Added spec coverage for the new helper Closes #2513