MetaBrainz Foundation
Fix decimal rounding in the ListenBrainz addon for Kodi
Kodi is a multi-platform media center software that can be extended with addons. One addon is a ListenBrainz addon which will submit what a user listens to in Kodi to ListenBrainz.
This addon currently does a simple typecast of floats to integers, which leads to all numbers being rounded down (e.g., "2.1" and "2.9" both become "2"). This can be a cause of some lack of accuracy. It would be preferably to round to nearest number rather than just rounding down.
Your task, should you choose to accept it, is to ensure that all places in the Kodi ListenBrainz addon where proper rounding should be applied, have proper rounding applied.
Delivery:
Submit a merge request on the GitLab project page and have it accepted.
Task tags
Students who completed this task
Max.Godfrey