1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-15 06:32:16 +00:00
Commit Graph

191 Commits

Author SHA1 Message Date
Alban Féron
1feaae7637
Silence auth errors from tests 2024-01-02 15:13:43 +01:00
Alban Féron
c2a9d42772
Fix failing test with Flask >=3.0.0
Fixes #260
2024-01-02 13:22:43 +01:00
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
Alban Féron
27df94e578
Setting to enable or disable ChartLyrics
Will be disabled by default
(cherry picked from commit b662162ca7)
2023-03-18 16:04:00 +01:00
Alban Féron
8e2adf8fc8
Fix getting starred stuff
Closes #246
2023-02-25 16:30:05 +01:00
Alban Féron
0957fef148
Fix failing deletions from the scanner 2023-01-17 22:59:43 +01:00
Alban Féron
be6b617e60
black 2023-01-15 16:28:27 +01:00
Alban Féron
ad688a23c3
Fix FK errors when deleting a user 2023-01-15 16:04:37 +01:00
Alban Féron
09a5fb12ed
Fix integrity errors when deleting a root folder 2023-01-14 16:47:57 +01:00
Alban Féron
b57b086e04
Enforce foreign keys on SQLite 2023-01-14 16:45:44 +01:00
Alban Féron
82187fd4c4
pyupgrade 2023-01-08 16:16:28 +01:00
Alban Féron
30734fe9ab
Fix getSongsByGenre + remove some useless DISTINCTs 2023-01-02 18:08:30 +01:00
Alban Féron
e51abfe80f
Fix independent tests 2022-12-31 17:17:49 +01:00
Alban Féron
ee8165bb03
Fix requesting lyrics 2022-12-31 17:01:20 +01:00
Alban Féron
e510f9622a
Porting supysonic.frontend 2022-12-31 16:47:24 +01:00
Alban Féron
42283817fe
Fix transcoding tests 2022-12-30 16:44:09 +01:00
Alban Féron
dd2ef2ffeb
Porting supysonic.api.search 2022-12-30 16:41:00 +01:00
Alban Féron
8b93e0bc6e
Fix on scanner queuing 2022-12-30 15:21:30 +01:00
Alban Féron
4fa744efcd
Porting supysonic.api.radio 2022-12-30 15:08:13 +01:00
Alban Féron
6179daf4ce
Porting supysonic.api.playlists 2022-12-23 18:57:14 +01:00
Alban Féron
b2c45ff03f
Porting supysonic.api.media 2022-12-23 15:36:40 +01:00
Alban Féron
95f77cc170
Porting supysonic.api.browse 2022-12-18 18:03:51 +01:00
Alban Féron
7401b4dec9
Porting supysonic.api.annotation 2022-12-18 17:24:05 +01:00
Alban Féron
2b472b4d97
Porting supysonic.api.albums_songs 2022-12-18 16:50:03 +01:00
Alban Féron
c5246c74bb
Porting supysonic.watcher
Which mostly means fixing the scanner
2022-12-11 15:53:55 +01:00
Alban Féron
cd369f6c7f
Porting supysonic.cli 2022-12-11 15:13:48 +01:00
Alban Féron
83ba85aaf1
Port supysonic.scanner 2022-12-10 18:04:09 +01:00
Alban Féron
e589247458
Port supysonic.managers.user.UserManager 2022-12-10 17:12:44 +01:00
Alban Féron
ccdd73f8a0
Port supysonic.managers.folder.FolderManager 2022-12-10 16:55:02 +01:00
Alban Féron
64cf272887
Fix supysonic.utils.get_secret_key 2022-12-10 15:48:06 +01:00
Alban Féron
6bdee81e57
Fixing a good chunk of supysonic.db 2022-12-10 15:14:37 +01:00
Alban Féron
e52a7043b0
Implement musicFolderId paramenter on various endpoints
Bumped API version to 1.12.0 along the way.
`getArtits` also got it event if it seems it has been added with version 1.14.0,
but I'm a bit concerned as to how clients will behave on authentication if the server
advertise itself as 1.13.0+

Closes #235
Ref #74
2022-09-10 15:50:10 +02:00
Alban Féron
8d6821df99
Try to fix flaky test
Closes #229
2022-01-30 17:00:32 +01:00
Alban Féron
430d5a0dad
Try to fix stalling tests 2021-12-04 17:43:08 +01:00
Alban Féron
799bfa3dde
Code style 2021-11-28 17:15:05 +01:00
Alban Féron
632b1bc835
Fixed tests
Come to think of it, I wonder how they could ever work
2021-11-28 12:48:43 +01:00
Alban Féron
3b0023e1ac
Test tweaks 2021-11-21 12:20:48 +01:00
Alban Féron
b4e737c243
Use test discovery rather than explicit suites 2021-11-20 21:01:00 +01:00
Alban Féron
f4bfc735e8
Rewriting the CLI using click rather than cmd+argparse 2021-11-12 10:28:14 +01:00
Alban Féron
f8c3d99e87
Embedded server using poorly designed wrappers on some WSGI servers 2021-11-01 17:41:56 +01:00
Alban Féron
8652c47ec3
Added test for #221 2021-09-18 17:00:02 +02:00
ankitdobhal
8eca8ba60f
Fixed antipattern
- Remove unnecessary return statement
- Remove unnecessary `del` statement from local scope
- Consider merging the comparisons with 'in'
2021-02-21 11:29:43 +01:00
Alban Féron
dcef74ca70
Allow renaming users with the CLI 2021-02-07 16:35:55 +01:00
Alban Féron
bd370f57ff
Read lyrics from metadata
Closes #212
2021-01-23 17:16:15 +01:00
Alban Féron
f8018b2751
Some housekeeping
Trying to make flake8 happy
2020-11-29 17:24:28 +01:00
Alban Féron
36cea89b26
Improving scan tests 2020-11-28 15:15:24 +01:00
Alban Féron
6bb3cd71cf
chmod -x 2020-11-28 12:25:43 +01:00
vincent
d08db741bc
add test for api scan endpoint 2020-11-28 12:22:48 +01:00
vincent
13b7c4b3de
add version parameter to ApiTestBase class 2020-11-28 12:20:20 +01:00
Alban Féron
2c100a021a
Properly release resources
Hunting for the last ResourceWarnings
2020-11-22 18:09:15 +01:00