1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 19:52:16 +00:00
supysonic/tests
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
..
api Fix getting starred stuff 2023-02-25 16:30:05 +01:00
assets Implement musicFolderId paramenter on various endpoints 2022-09-10 15:50:10 +02:00
base Fix bitrate units when scanning 2023-03-31 16:23:11 -04:00
frontend pyupgrade 2023-01-08 16:16:28 +01:00
managers black 2023-01-15 16:28:27 +01:00
net Setting to enable or disable ChartLyrics 2023-03-18 16:04:00 +01:00
__init__.py Use test discovery rather than explicit suites 2021-11-20 21:01:00 +01:00
issue85.py Fix independent tests 2022-12-31 17:17:49 +01:00
issue129.py Fix independent tests 2022-12-31 17:17:49 +01:00
issue133.py Fix independent tests 2022-12-31 17:17:49 +01:00
issue139.py Fix independent tests 2022-12-31 17:17:49 +01:00
issue148.py Fix independent tests 2022-12-31 17:17:49 +01:00
issue221.py pyupgrade 2023-01-08 16:16:28 +01:00
testbase.py Porting supysonic.api.albums_songs 2022-12-18 16:50:03 +01:00
utils.py pyupgrade 2020-11-22 16:12:14 +01:00