1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00
Commit Graph

780 Commits

Author SHA1 Message Date
Alban Féron
a14a7da11d
Log failed login attempts
Closes #257
2023-07-14 12:17:06 +02:00
Louis-Philippe Véronneau
4bc80bfce5
Replace distutils.dir_util.remove_tree() by shutil.rmtree().
In Python 3.10 and 3.11, distutils has been formally marked as deprecated.
Code that imports distutils will no longer work from Python 3.12.

I'm pretty sure distutils.dir_util.remove_tree() and shutil.rmtree() do
the same exact same thing and this should fix the issue :)
2023-06-13 15:50:11 -04:00
Alban Féron
abe0b79968
Properly close database connections when they're not in use
Watcher
Closes #253
2023-04-21 17:04:44 +02:00
Alban Féron
32a74706c2
Properly close database connections when they're not in use
Daemon startup, background scans
Ref #253
2023-04-20 18:17:10 +02:00
Alban Féron
893a007f29
Properly close database connections when they're not in use
CLI and web only
Ref #253
2023-04-20 16:50:54 +02:00
Alban Féron
f3e743dece
Version bump 2023-04-02 16:13:54 +02:00
Alban Féron
62f921d05f
Fix #252 migrations 2023-04-02 16:00:56 +02:00
Carey Metcalfe
639c68291a Add database migrations to fix up the bitrate units
The migration assumes that no audio files will be <16kbps and only wav
files will be more than 16,000kbps.
2023-03-31 17:40:29 -04: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
dc93b43c41
Docs: add a note about supysonic-server tuning 2023-03-25 15:59:52 +01:00
Alban Féron
cf73d5a26d
Fix getAlbumList2 for PostgreSQL
Closes #245 (for real)
2023-03-18 17:39:07 +01:00
Alban Féron
034a47d1d7
Fix getAlbumList for PostgreSQL
Ref #245
2023-03-18 17:29:30 +01: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
03ac57ca26
log rotate documentation 2023-03-18 12:54:11 +01:00
vithyze
eac6bdf1a3
Add a setting to disable log rotation 2023-03-18 12:40:44 +01:00
Alban Féron
8e2adf8fc8
Fix getting starred stuff
Closes #246
2023-02-25 16:30:05 +01:00
Alban Féron
245e9c7c54
Merge remote-tracking branch 'lolspark/patch-1' 2023-02-11 17:59:36 +01:00
Alban Féron
56162adbef
Drop the "pragmas" kw for Python SQLite migrations
Fixes #244
2023-02-11 14:47:54 +01:00
lolspark
f696a2dc0d
Update configuration.rst
Added example for windows in daemon section.
2023-02-02 16:23:19 +04:00
Alban Féron
536c4e9fb0
Version bump 2023-01-20 19:32:11 +01:00
Alban Féron
0957fef148
Fix failing deletions from the scanner 2023-01-17 22:59:43 +01:00
Alban Féron
36efefcda6
Fix supysonic-server with gunicorn creating the application too early
Was causing SQL connection issues when using forked workers

Closes #241
2023-01-16 22:10:39 +01:00
Alban Féron
be6b617e60
black 2023-01-15 16:28:27 +01:00
Alban Féron
d5a4f1856c
Genre related fixes
Fix /getGenres for DBMSs other tha SQLite
Don't list an empty genre

Ref #241
2023-01-15 16:26:59 +01:00
Alban Féron
ad688a23c3
Fix FK errors when deleting a user 2023-01-15 16:04:37 +01:00
Alban Féron
724f04726e
Adding missing foreign key on client_prefs 2023-01-15 15:51:27 +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
4bbd7e94b0
Use hex-encoded string for id instead of bytes on DBMSs that don't provide native UUID support
Closes #241
2023-01-11 23:12:13 +01:00
Alban Féron
ba1fbf4b73
Forgot to update badge and docs about Python version 2023-01-08 16:40:51 +01:00
Alban Féron
399686f17b
Version bump 2023-01-08 16:20:23 +01:00
Alban Féron
82187fd4c4
pyupgrade 2023-01-08 16:16:28 +01:00
Alban Féron
14dc63631f
Fixed error on daemon quit 2023-01-08 15:53:59 +01:00
Alban Féron
30734fe9ab
Fix getSongsByGenre + remove some useless DISTINCTs 2023-01-02 18:08:30 +01:00
Alban Féron
09d48fdb2e
Fix pony leftover in jukebox 2023-01-01 17:21:35 +01:00
Alban Féron
4d249adcf2
Drop Python 3.6 2023-01-01 14:00:20 +01:00
Alban Féron
6ab0488620
Add missing save calls in Last.fm handling 2022-12-31 18:24:29 +01:00
Alban Féron
b87091dd56
Force tests to run on Ubuntu 20.04 and test for py 3.11 and 3.12
Ubuntu 20.04 should allow Python 3.6 tests to run, even if this version is EOL
2022-12-31 17:58:35 +01:00
Alban Féron
f6b859d11f
Fix average ratings for peewee pre-3.15.4 2022-12-31 17:40:19 +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
153c5f42ba
Porting supysonic.api.user 2022-12-30 16:55:20 +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
50b98e641a
Fix for peewee pre-3.15.4 2022-12-23 17:34:45 +01:00
Alban Féron
b2c45ff03f
Porting supysonic.api.media 2022-12-23 15:36:40 +01:00