Kyle Robbertze
81e8fa90ed
chore: fix linting ignore comments ( #3084 )
...
### Description
There is now a too-many-positional-arguments check
2024-09-30 16:08:23 +01:00
Thomas Göttgens
9757b1b78c
feat(api): implement file deletion ( #2960 )
...
This implements the file delete to the Django API. Previously, the code was only manipulating the database while leaving the file in place.
Co-authored-by: jo <ljonas@riseup.net>
2024-05-05 22:44:30 +02:00
Jonas L
35d0dec4a8
fix: apply replay gain preferences on scheduled files ( #2945 )
...
### Description
The replay gain preferences are applied in the legacy code, but the
playout code was missing this feature. The replay gain was not applied
when playout fetched the schedules.
37d1a7685e/legacy/application/models/Schedule.php (L881-L886)
2024-02-08 20:29:10 +01:00
renovate[bot]
7a3fffd45f
chore(deps): update pre-commit hook psf/black-pre-commit-mirror to v24 ( #2917 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
|
[psf/black-pre-commit-mirror](https://togithub.com/psf/black-pre-commit-mirror )
| repository | major | `23.12.1` -> `24.1.1` |
Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://togithub.com/renovatebot/renovate/discussions/new )
if you have any questions.
---
### Release Notes
<details>
<summary>psf/black-pre-commit-mirror
(psf/black-pre-commit-mirror)</summary>
###
[`v24.1.1`](https://togithub.com/psf/black-pre-commit-mirror/compare/24.1.0...24.1.1 )
[Compare
Source](https://togithub.com/psf/black-pre-commit-mirror/compare/24.1.0...24.1.1 )
###
[`v24.1.0`](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.0 )
[Compare
Source](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-02-02 20:24:25 +01:00
Jonas L
b2c1ceb89f
fix(api): paths with question marks chars are handled by X-Accel-Redirect ( #2875 )
...
Use the filepath_to_uri function instead.
2024-01-07 15:07:01 +01:00
Jonas L
72268ad9bb
fix(api): let nginx handle the media file content type ( #2862 )
2024-01-01 13:07:35 +01:00
Jonas L
0ce63f3bf0
fix(api): ensure non ascii paths are handled by X-Accel-Redirect ( #2861 )
2024-01-01 12:58:19 +01:00
Jonas L
4603c1759f
feat!: use nginx to serve media files ( #2860 )
...
Closes #2522
To reduce the strain on the API service, we moved the media file serving
to the Nginx web server. The API is still handling the authentication,
but delegates the serving using the `X-Accel-Redirect` header.
BREAKING CHANGE: The media file serving is now handled by Nginx instead
of the API service. The `storage.path` field is now used in the Nginx
configuration, so make sure to update the Nginx configuration file if
you change it.
2023-12-30 18:59:15 +01:00
Jonas L
43221d9d7f
fix(api): move gunicorn worker config to python file ( #2854 )
...
### Description
Passing the --lifespan flag to gunicorn does not forward the option to
uvicorn.
2023-12-29 17:47:50 +01:00
Jonas L
0d2d1a2673
feat!: the `general.secret_key` configuration field is now required ( #2841 )
...
BREAKING CHANGE: The `general.secret_key` configuration field is now
required. Make sure to update your configuration file and add a secret
key.
Closes #2426
2023-12-27 18:15:47 +01:00
Jonas L
d80100a216
refactor(api): fix deprecation warnings ( #2839 )
...
Fix some deprecation warnings related to the pydantic upgrade.
2023-12-27 15:46:38 +01:00
Jonas L
651bb9261c
chore(api): disable duplicate-code check ( #2799 )
...
* chore(api): disable duplicate-code check
* refactor: fix linting errors
2023-12-18 18:54:07 +01:00
jo
c2c0be1fbc
feat(api): add email configuration
2023-06-02 07:44:34 +01:00
Jonas L
001466f8fd
feat(legacy): move session store to database ( #2523 )
2023-05-30 22:25:50 +02:00
jo
a8e2ce7732
fix(api): upgrade django code (pre-commit)
2023-04-24 20:46:48 +01:00
Jonas L
7962c0adf6
feat(api): add cors headers middleware ( #2479 )
2023-03-23 14:40:30 +00:00
Jonas L
d800c5e280
feat: use secret_key config field instead of api_key ( #2444 )
...
Fixes #2426
2023-03-22 09:14:11 +00:00
Jonas L
c7381a4f80
fix(api): cast string value to int enum ( #2461 )
2023-03-15 21:19:04 +00:00
jo
b7214b5d46
feat: add sentry sdk
2023-03-14 14:59:45 +00:00
jo
a60d83311b
feat: add python packages version
2023-03-14 14:59:45 +00:00
jo
72aa1c1dae
fix(api): explicit FileImportStatusEnum in schema
2023-03-14 13:29:55 +01:00
jo
38bff1d4df
test(api): fix linting errors
2023-03-14 11:23:14 +00:00
jo
861698987c
refactor: don't use f-string on logging statements
...
The strings are now be formatted if the logging level is enabled.
2023-02-26 19:09:51 +02:00
jo
87de25052a
cuepoints analyzer disabled by default
2023-02-15 10:13:32 +02:00
jo
f5e46c6f3d
feat: configure cue points analysis per track type
2023-02-15 10:13:32 +02:00
jo
f8f6fda794
chore: raise from specific exceptions
2023-02-03 07:36:58 +02:00
renovate[bot]
f585172850
chore(deps): update dependency django to v4 ( #2268 )
...
* chore(deps): update dependency django to v4
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2022-12-07 10:20:36 +01:00
Jonas L
cff98f2d23
feat(legacy): remove db allowed_cors_origins preference ( #2095 )
...
- Remove after deprecation in eb8e7b3415
2022-10-11 13:38:31 +02:00
jo
e54c8d22e1
feat: delete cc_pref stream preferences rows
...
- Delete the previously deprecated cc_pref stream preferences rows.
2022-10-11 11:32:51 +02:00
jo
8a6b5907be
feat: drop cc_stream_setting table
...
- Remove the previously deprecated cc_stream_setting table.
2022-10-11 11:32:51 +02:00
jo
3d124eba7e
fix(api): allow single digit version for legacy schema
2022-10-11 11:32:51 +02:00
jo
10a60d3673
chore: bump legacy schema version
2022-09-15 17:11:01 +02:00
jo
882f8e04c6
chore(api): rename legacy migration files
2022-09-15 17:11:01 +02:00
Jonas L
9b3207b8a4
feat: move timezone preference to config file ( #2096 )
...
BREAKING CHANGE: The timezone preference moved to the configuration
file.
2022-09-14 12:48:08 +02:00
Jonas L
35476f9d6d
feat(api): move /api-auth to /api/browser ( #2094 )
2022-09-06 21:30:43 +02:00
Jonas L
ef1de34111
fix(playout): missing live show events ( #2087 )
2022-09-06 14:09:04 +02:00
jo
12d2d4b15a
feat(api): add /info and /stream/* endpoints
2022-09-06 13:21:54 +02:00
jo
5bf62dd9cb
feat(legacy): read stream config from file
...
- We don't delete the stream preferences from the database to prevent data loss. This will be handled in a future release.
2022-09-06 13:21:54 +02:00
jo
65d3552fc7
feat: remove cc_stream_setting models
...
- We don't drop the cc_stream_setting table from the database to prevent data loss. This will be handled in a future release.
2022-09-06 13:21:54 +02:00
jo
2a74649882
feat(api): remove set passwords command
2022-09-06 13:21:54 +02:00
Jonas L
1147853c63
feat(shared): pass config data via init ( #2042 )
2022-08-12 15:12:39 +02:00
Jonas L
7082c9693d
test(api): conftest at top level for global fixture access ( #2038 )
2022-08-10 12:36:56 +02:00
jo
406d42323a
feat: move stream stats status to pref table
2022-08-07 08:50:06 +02:00
jo
2b533d4724
feat: move stream liquisoap status to pref table
2022-08-07 08:50:06 +02:00
Jonas L
6c59ff588b
feat: move off_air_meta stream setting to pref table ( #2023 )
2022-08-06 19:18:40 +02:00
Jonas L
e97b06496a
feat(api): don't use hyperlinked serializers ( #1984 )
2022-07-27 09:54:57 +02:00
Jonas L
57d1f3a953
fix(api): update set_icecast_passwords StreamSetting fields ( #2001 )
2022-07-26 23:24:13 +02:00
Jonas L
951dc68394
feat(api): cast StreamSetting raw_value to value ( #1991 )
2022-07-26 14:16:34 +02:00
Jonas L
04c0b11901
test(api): create api_client pytest fixture ( #1990 )
2022-07-25 21:21:21 +02:00
Jonas L
f08af1f3fa
feat(api): don't use trailing slashes ( #1982 )
2022-07-22 17:34:09 +02:00