1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00
supysonic/tests/base
Carey Metcalfe 109f81e713 Fix bitrate units when scanning
In `0183bcb6` the scanner switched from using Mutagen to Mediafile for
scanning files. Prior to this commit, the bitrate from Mutagen was
divided by 1000 to convert it from bps to kbps. After switching to
Mediafile, the conversion was dropped even though Mediafile also reports
bitrate in bps.

This commit adds back the conversion to kbps and adds a test that checks
that the bitrate and some other metadata is correct.

This commit will fix transcoding being applied in some cases where it
isn't needed. This was happening because the bitrate in the DB was
always larger than the requested bitrate due to its units.
2023-03-31 16:23:11 -04:00
..
__init__.py Use test discovery rather than explicit suites 2021-11-20 21:01:00 +01:00
test_cache.py Removing shebang and executable flag from explicit python files 2020-11-22 16:28:26 +01:00
test_cli.py pyupgrade 2023-01-08 16:16:28 +01:00
test_config.py Removing shebang and executable flag from explicit python files 2020-11-22 16:28:26 +01:00
test_db.py Enforce foreign keys on SQLite 2023-01-14 16:45:44 +01:00
test_scanner.py Fix bitrate units when scanning 2023-03-31 16:23:11 -04:00
test_secret.py Removing shebang and executable flag from explicit python files 2020-11-22 16:28:26 +01:00
test_watcher.py Porting supysonic.watcher 2022-12-11 15:53:55 +01:00