Commit Graph

1324 Commits

Author SHA1 Message Date
Philipp Wolfer e169e8edb1 Subsonic: Fixed casing of "bitRate" attribute
This follows the Subsonic / OpenSubsonic API spec

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2695>
2024-02-02 08:47:38 +00:00
Philipp Wolfer 0fab0470c2 Subsonic: Actually implement getArtistInfo2 endpoint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2695>
2024-02-02 08:47:38 +00:00
Philipp Wolfer 81401075aa Add OpenSubsonic support
Fixes #2270

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2695>
2024-02-02 08:47:38 +00:00
petitminion ae9fea0cf1 implement pylistenbrainz NOCHANGELOG 2024-01-30 11:32:14 +00:00
Georg Krause 06d135875b chore(api): Update dj-rest-auth to 5.0.2 and django-allauth to 0.55.2
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2670>
2024-01-03 10:02:03 +00:00
Georg Krause 150a9f68a4 fix(api): Use correct data field for rate limiting identity field
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2653>
2023-11-28 18:09:56 +00:00
Georg Krause 69876867d5 fix(embed): Make sure embed has sane default image and correct link
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2650>
2023-11-28 12:16:22 +00:00
Georg Krause 3db367f4bc feat(api): Add codeOfConduct to NodeInfo Endpoint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2641>
2023-11-24 13:41:40 +00:00
Georg Krause a0ae9bbb70 feat(api): Add NodeInfo 2.1
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2604>
2023-11-23 11:47:03 +01:00
Georg Krause 71140d5a9b feat(settings): Allow to set the instances server location
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2604>
2023-11-23 11:47:03 +01:00
Georg Krause 1a0596b102 feat(settings): Allow moderators to set moderation languages
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2604>
2023-11-23 11:47:00 +01:00
Georg Krause 523245d035 fix(api): Use proper renderer for nodeinfo in browser
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2604>
2023-11-23 11:46:27 +01:00
Georg Krause a05b44f27b feat(api): Add atom1.0 to node info services
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2604>
2023-11-23 11:46:27 +01:00
Ciarán Ainsworth a7c76279f6 Apply 1 suggestion(s) to 1 file(s)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2607>
2023-11-19 14:16:42 +00:00
Petitminion 363a4b5d35 resolves review
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2607>
2023-11-19 14:16:42 +00:00
Petitminion 179c53695e make setting dynamic
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2607>
2023-11-19 14:16:42 +00:00
Petitminion 2e3205a19d Only allow MusicBrainz tagged file on a pod (#2083)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2607>
2023-11-19 14:16:42 +00:00
Georg Krause 7ac6447308 Merge branch 'stable' into develop 2023-11-16 09:46:02 +00:00
Georg Krause 64b3fdf273 Version bump and changelog for 1.3.4 2023-11-16 09:33:49 +00:00
Georg Krause ab73f355c0 fix: minor spelling issues
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2602>
2023-11-07 11:54:02 +00:00
petitminion 7ccb2d88f8 Avoid troi radio to give duplicates (#2231) 2023-11-03 16:13:53 +00:00
Georg Krause 9d23d10e23 Adopt Gitpod to architecture changes 2023-10-13 10:12:05 +00:00
alextprog ccec8288ef fix: Make Artist ordering by name case insensitive
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2431>
2023-10-10 13:02:13 +02:00
petitminion 4ad806b8e9 Cache radio queryset. New api endpoint for radio tracks : api/v2/radios/sessions/$sessionid/tracks?count=$count 2023-09-25 22:28:11 +00:00
Georg Krause afbaa49bb3 fix: Make sure to set right target when none is given
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2506>
2023-09-25 11:33:21 +00:00
jooola b20b33b838 style: Simplify code
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2506>
2023-09-25 11:33:21 +00:00
Georg Krause cb4c27dce0 feat(api): Add inplace_to_s3 management command
This command allows to update Uploads that originally were imported
using --in_place but are moved to s3. This command does not copy any
file, it just makes sure the files are read from S3 after they have been
moved.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2506>
2023-09-25 11:33:21 +00:00
petitminion f821dcbbc2 Create a testing environment in production for ListenBrainz recommendation engine (troi-recommendation-playground) 2023-09-12 16:09:34 +00:00
Georg Krause 03f435193d Version bump and changelog for 1.3.3 2023-09-07 08:29:13 +02:00
Georg Krause ec8dc8e09f Merge branch stable into develop 2023-09-01 14:24:58 +02:00
Georg Krause b043900aaf Version bump and changelog for 1.3.2 2023-09-01 13:36:41 +02:00
Georg Krause 02bb83e3f4 fix(api): Fix password reset via email
The original serializes assumes if allauth is installed, its also used
for the token generation. Thats not the case for us, so we need to
overwrite this behavior

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2565>
2023-08-31 17:51:46 +00:00
Georg Krause e78191c917 fix: Fetch nodeinfo endpoint address from .well-known/nodeinfo when checking instance availability
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2561>
2023-08-31 12:06:34 +00:00
codl 2e2e0b74ba fix #2199
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2551>
2023-08-23 17:13:56 +00:00
jo abadf6c9fb
style: format file with black==23.7.0 2023-07-25 19:04:32 +02:00
Georg Krause 232ca0f050 Merge branch 'stable' into develop 2023-06-28 13:05:47 +02:00
Georg Krause cc7fde67b6 Version bump and changelog for 1.3.1 2023-06-27 20:33:58 +02:00
jo d83d338044 chore: fix spelling errors
(cherry picked from commit 8fb60c9203)

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2505>
2023-06-27 12:17:45 +00:00
Georg Krause 59ecd8c6d4 fix(api): Fix misleading help texts for funkwhale-manage script
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2507>
2023-06-27 11:45:03 +00:00
Petitminion dac14a36e5 fix: Avoid high memory usage when pruning a lot of skipped uploads
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2512>
2023-06-27 07:48:01 +00:00
Georg Krause a46c8e7f41 fix(api): Avoid the creation of users using djangos createsuperuser command 2023-06-12 09:36:52 +00:00
Georg Krause 3f5758aa7f feat(cli): Implicitly set staff flag if superuser flag is set 2023-06-12 09:36:52 +00:00
jo 8fb60c9203
chore: fix spelling errors 2023-06-09 11:30:27 +02:00
Georg Krause 32b0171ff1 Version bump and changelog for 1.3.0 2023-06-01 18:38:50 +02:00
Georg Krause 6d7905f6a0
feat: allow the creation of random test notifications 2023-05-16 14:43:30 +02:00
Georg Krause e6af9321d9 Version bump and changelog for 1.3.0-rc6 2023-05-12 09:02:14 +02:00
jo 94521d2b86 feat(api): replace pytz with zoneinfo
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2388>
2023-04-04 07:08:47 +00:00
jo 22c255700e
style: format code using black v23 2023-03-28 19:49:24 +02:00
Georg krause 70cd2e58b5 Version bump and changelog for 1.3.0-rc5 2023-03-26 14:17:15 +02:00
Georg krause b0d6a0407a Merge branch 'pre-release/1.3.0' into develop 2023-03-24 18:17:44 +01:00
Georg krause 09a1e20d68 Version bump and changelog for 2023-03-24 14:28:45 +01:00
Philipp Wolfer c1c48c9960 maloja: update submitted payload to follow latest maloja spec
See https://github.com/krateng/maloja/blob/master/API.md

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2359>
2023-03-22 11:58:01 +00:00
Georg Krause 6678457d41
style: Fix missing , 2023-03-22 09:52:07 +01:00
Laurin W 0c88b63d78
fix: allow blank summary field in ActorSerializer 2023-03-20 12:34:14 +01:00
Marcos Peña c55a1d1da4 Fix(dev): fix docker development set-up (#2102)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2367>
2023-03-20 11:23:51 +00:00
ppom c7e7014b5c wording fix 2023-03-03 23:40:09 +01:00
jo 9bf0367372 feat(api): find version using importlib.metadata
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2332>
2023-01-31 06:57:32 +00:00
jo 6528039e95 fix(api): pylint crashes on redefined-builtin
See https://github.com/PyCQA/pylint/issues/8079

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2203>
2023-01-29 12:47:02 +00:00
jo 96bbe2131a fix: log exception if we can't get the event loop
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2341>
2023-01-27 17:37:41 +01:00
Georg Krause e04a1b188d
Version bump and changelog for 1.3.0-rc3 2023-01-23 14:24:46 +01:00
Georg Krause 0729b52f3d
Version bump and changelog for 1.3.0-rc2 2023-01-23 10:41:22 +01:00
Philipp Wolfer e556a592b5 Fix API call for retrieving details of federated library
The implementation of RetrieveModelMixin.retrieve was incomplete.

Fixes #2046

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2335>
2023-01-23 07:36:22 +00:00
Philipp Wolfer 7da78afa43 maloja: fix submission of artist names
Payload must be submitted as JSON and artist must be an array

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2328>
2023-01-22 10:45:32 +00:00
Georg Krause 16a88210bc
Version bump and changelog for 1.3.0-rc1 2023-01-20 09:40:58 +01:00
Georg Krause 934e179d59 fix: Local instance is always reachable to itself
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2321>
2023-01-19 17:56:50 +00:00
jo 14b5e137bd
feat: prefer using the funkwhale-manage entrypoint
This replaces `poetry run python3 manage.py` with `venv/bin/funkwhale-manage`.

Command running `venv/bin/funkwhale-manage` assume the current working directory is `/srv/funkwhale` on common deployments.

In the funkwhale api docker image, the funwhale-manage command line
interface is available globally.
2023-01-16 02:11:07 +01:00
jo efbdc027ab
fix: use versioned python3 instead of python 2023-01-13 16:55:05 +01:00
Georg Krause 85e3984e3b fix: Can't purge failed files #1929
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2280>
2023-01-05 19:39:01 +01:00
Ciarán Ainsworth 101b1b6a23 fix(api): Add href to protected attributes
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2312>
2022-12-29 17:25:30 +00:00
Petitminion 03a5a83a3b Random and less listened radio filter out un-owned content on library section (#2007)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2285>
2022-12-19 17:13:29 +00:00
jo b359bb6498 fix: timeout on spa manifest requests
The previous behaviour had a loop of requests between the front
app and the api when querying the pwa manifest.

This reduce the coupling around the pwa manifest file between the api
and the front app, by uplicating the files so each "service" has a copy
of it, while keeping them in sync and having the front pwa manifest as
single source of truth.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2291>
2022-12-19 14:33:12 +01:00
Petitminion 311ea7b3b7 fix RuntimeWarning: DateTimeField Domain.last_successful_contact 2022-12-16 17:02:22 +00:00
Georg Krause 180cd1cc48 fix: Add missing fields to Spa Manifest Serializer
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2256>
2022-12-15 23:43:43 +00:00
wvffle 57ca334887 Fix cookies not being set on new frontend deployment 2022-12-13 13:58:11 +00:00
jo 6f2ecf832c feat: create funkwhale-manage entrypoint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2191>
2022-12-12 16:31:00 +01:00
Georg Krause b136273dd4 fix: Fix Serializer for inline channel artists 2022-11-26 20:23:17 +00:00
JuniorJPDJ 5c32cace64 fix(api): merge migrations after merging stable to develop 2022-11-25 20:03:37 +01:00
Georg Krause 0602de6d81
Merge branch 'stable' into develop 2022-11-25 18:10:45 +01:00
Georg Krause 817c8fbcaa
Version bump and changelog for 1.2.9 2022-11-25 17:59:23 +01:00
jo 054a9e54f5
docs: fix spelling errors (pre-commit) 2022-11-24 01:43:36 +01:00
jo 8d9946d35a refactor: upgrade code to >=python3.7 (pre-commit)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2189>
2022-11-23 22:08:55 +00:00
jo cff619679b
chore: format files using isort (pre-commit) 2022-11-23 21:55:37 +01:00
jo 4159bc1209 chore: format files using black (pre-commit) 2022-11-23 20:41:45 +00:00
jo 0061e82ecd chore: clean files using pre-commit 2022-11-22 14:30:01 +00:00
Marcos Peña aa17f9679b Resolves reuse of invitation code 2022-11-21 18:50:08 +00:00
Georg Krause 6908f4bf74 Resolve "value too long for type character varying(255) during import_files" 2022-11-21 18:12:49 +00:00
petitminion 01fd1503c9 add playlists radio to search result page 2022-11-20 10:49:23 +00:00
Marcos Peña 5248a252ec Resolves 404 on skipped upload 2022-11-19 16:56:38 +00:00
Georg Krause ceab2252fb chore: Improve comments and remove useless try/catch 2022-11-15 18:03:43 +00:00
Georg Krause 515b502364 Fix oauth to respond with unhashed token on creation 2022-11-15 18:03:43 +00:00
Georg Krause cfabb6fa3e Resolve "NodeInfo 2.0 endpoint returns incorrect type for field `metadatalibrary`" NOCHANGELOG 2022-11-15 09:33:11 +00:00
petitminion c3431c6a63 resolve play all radio in search page NOCHANGELOG 2022-11-14 18:39:46 +00:00
JuniorJPDJ 3c7d9b5ac8 perf(radio/pick): speedup radio track picking code NOCHANGELOG 2022-11-08 08:53:32 +00:00
Philipp Wolfer 24f0ee319e listenbrainz: submit duration 2022-11-08 07:51:03 +00:00
Georg Krause b0c82ce09f fix(oauth): Fix too many arguments error by removing not used token 2022-11-08 07:34:49 +00:00
Georg Krause 2c6bb23715 fix: Adjust call for previous refactoring 2022-11-08 07:34:49 +00:00
Georg Krause b377f8f883 chore: Remove unused imports 2022-11-08 07:34:49 +00:00
Georg Krause 127a10f3d9 refactor(auth): Move check for verificated mail address to user class 2022-11-08 07:34:49 +00:00
JuniorJPDJ 64e7c68699 refactor(api): remove unnecessary or wrong `is` keyword usage 2022-11-07 13:28:52 +00:00
RenovateBot 6a787e8479 Update dependency djangorestframework to v3.14.0 (develop) NOCHANGELOG 2022-11-06 19:29:38 +00:00