1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00
Commit Graph

366 Commits

Author SHA1 Message Date
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
0b6891a5c4
Redefined models using peewee
Obviously untested, and breaks everything 🙃
2022-11-27 16:37:56 +01:00
Alban Féron
9db3549734
Bump API version to 1.12.0
Ref #235
2022-10-01 14:02:16 +02:00
Alban Féron
3b0aa20b51
Advertise hls endpoint as not supported 2022-09-10 15:59:10 +02: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
bc373e595f
Factor in index construction 2022-09-09 15:14:50 +02:00
Alban Féron
65a7131c05
Version bump 2022-02-27 15:27:08 +01:00
Alban Féron
4bee23ce23
Fix covers not being scanned as such when modified 2022-01-30 16:31:10 +01:00
Alban Féron
f387cce9ca
Prevent naming collisions when zipping albums 2022-01-29 17:15:03 +01:00
Alban Féron
62bad3b987
Version bump 2022-01-01 19:39:55 +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
c3f911b3f4
Display version and proper URL on web UI 2021-11-28 15:13:33 +01:00
Alban Féron
ddb7c6966c
Version bump 2021-11-21 17:54:08 +01:00
Alban Féron
8f5a9a3b73
Properly close connections when killing the daemon 2021-11-21 11:43:28 +01:00
Alban Féron
8ab9f444b7
Rationalizing/modernizing building stuff
Metadata in `setup.cfg` rather than `pyproject.toml` as I'm a bit confused
about `setuptools` support for PEP-621.
Test stuff still in `setup.py`, this needs updating and I'm not satisfied with
the way they are loaded/discovered.
2021-11-14 18:08:22 +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
a033d45605
Adding doc for the newly added supysonic-server 2021-11-06 17:52:49 +01:00
Alban Féron
91cb3fb179
black 2021-11-06 17:45:25 +01:00
Alban Féron
f8c3d99e87
Embedded server using poorly designed wrappers on some WSGI servers 2021-11-01 17:41:56 +01:00
Carey Metcalfe
359e391fcc Implement recursive downloading of folders
Example use case:
```
Some Album/
├── CD1
│   └── <songs>
├── CD2
│   └── <songs>
└── cover.jpg
```

Previously, downloading the `Some Album` folder would result in no data
being sent (not even `cover.jpg`)

This commit changes folder-based downloads so that the entire folder
tree (including any non-music) is added to the returned zip file. This
allows any included album art, scans, notes, etc. to be distributed with
the files.

Album-based downloads are unaffected.
2021-10-08 00:48:45 -04:00
Carey Metcalfe
387a5e3de3 Switch to using zipstream-ng to generate and stream zip files
- Fixes zip downloads failing when zipping enough data that Zip64
   extensions are required by automatically enabling them if needed.
 - Fixes zip downloads failing when a file has a datestamp that zipfiles
   cannot store (pre-1980 or post-2108) by clamping them within the
   supported range.
 - Massively speeds up zip downloads by disabling compression (audio
   files generally don't compress well anyway)
 - Computes the total size of a generated zip file before streaming it
   and sets the `Content-Length` header. This allows clients to show a
   final size and progress bar while downloading, as well as detect if
   the download fails.
 - Adds a check to prevent sending an empty zip file to the client if
   there was no content to download (will error out instead).
2021-10-08 00:38:09 -04:00
Carey Metcalfe
5490189484 Add cover art to downloaded zip files
- Only includes cover art in the zip file if it's provided separately
  from the files (ie. doesn't extract it from the tracks)
- Refactors the existing code for implementing the `/getCoverArt` API
  endpoint to allow it to be reused.
2021-10-08 00:06:45 -04:00
Alban Féron
e8d3f164b0
Slightly improved genre merging 2021-09-18 17:07:53 +02:00
Dave Holland
a1eeeb8ba9 merge identical genre tags in album info 2021-09-13 14:00:48 +01:00
Alban Féron
e6e20d1669
Work around race when creating ClientPrefs
Closes #220
2021-09-11 16:21:04 +02:00
vincent
aea8ebeb13 fix del issue when unschedule scanning queue 2021-06-11 20:40:18 +02:00
Alban Féron
9d34270227
Merge branch 'playlist-export' 2021-04-10 15:49:54 +02:00
Alban Féron
9324025c41
Added disclaimer before exporting playlist 2021-04-10 15:47:31 +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
Robert Sprunk
08329fc8bc Export playlists to m3u using web interface 2021-02-01 20:28:11 +01:00
Robert Sprunk
d05889df5b Check id of the user who created the playlist 2021-02-01 20:21:15 +01:00
Alban Féron
be88f5fb78
Version bump 2021-01-30 15:04:33 +01:00
Alban Féron
bd370f57ff
Read lyrics from metadata
Closes #212
2021-01-23 17:16:15 +01:00
Alban Féron
bba254f339
Import cleanup 2021-01-16 12:27:11 +01:00
vincent
e22620b147 change route call method 2021-01-16 09:44:06 +01:00
vincent
22c3727784 modify route management 2021-01-13 21:10:44 +01:00
vincent
c52141e5e9 change distinct following #208 2021-01-07 20:20:35 +01:00
Alban Féron
0b67aeb070
Version bump 2020-12-13 17:10: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