Jonas L
bfde17edf7
fix(worker): ensure celery beat is started ( #3007 )
...
The celery seem to ignore the first flag when `worker` is not part of
the `argv`.
2024-05-05 23:32:29 +02:00
Jonas L
9c548b365e
feat: start celery worker programmatically ( #2988 )
...
### Description
Allow us to be more flexible with the option passed the celery worker,
for example, to change the logging level.
2024-04-13 21:03:57 +02:00
Jonas L
7040d0e4bd
fix: trigger legacy tasks manager every 5m ( #2987 )
...
### Description
This ensures that when the LibreTime interface is not used for a long
time, we still have the task manager run essential tasks for the
schedule.
Related to #2670
2024-04-13 19:12:45 +02:00
libretime-bot
4795170feb
chore(main): release 4.0.0 ( #2834 )
...
🤖 I have created a release *beep* *boop*
---
## [4.0.0](https://github.com/libretime/libretime/compare/3.2.0...4.0.0 )
(2024-01-07)
### ⚠ BREAKING CHANGES
* 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.
* **installer:** The default listen port for the installer is now
`8080`. We recommend that you put a reverse proxy in front of LibreTime.
* **installer:** The `--update-nginx` flag was removed from the
installer. The nginx configuration deployed by the installer will now
always be overwritten. Make sure to move your customizations to a
reverse proxy configuration.
* The default system output (`stream.outputs.system[].kind`) changed
from `alsa` to `pulseaudio`. Make sure to update your configuration file
if you rely on the default system output.
* The `general.secret_key` configuration field is now required. Make
sure to update your configuration file and add a secret key.
### Features
* default system output is now `pulseaudio`
([#2842 ](https://github.com/libretime/libretime/issues/2842 ))
([083ee3f
](083ee3f1dd
)),
closes [#2542 ](https://github.com/libretime/libretime/issues/2542 )
* disable uvicorn worker lifespan
([#2845 ](https://github.com/libretime/libretime/issues/2845 ))
([8743c84
](8743c84d0f
))
* **installer:** add the `--storage-path` flag
([#2865 ](https://github.com/libretime/libretime/issues/2865 ))
([5b23852
](5b23852f8d
))
* **installer:** change default listen port to 8080
([#2852 ](https://github.com/libretime/libretime/issues/2852 ))
([f72b7f9
](f72b7f9c97
))
* **installer:** remove the `--update-nginx` flag
([#2851 ](https://github.com/libretime/libretime/issues/2851 ))
([35d7eac
](35d7eace13
))
* **playout:** configure device for alsa and pulseaudio system outputs
([#2654 ](https://github.com/libretime/libretime/issues/2654 ))
([06af18b
](06af18b84e
))
* rewrite cloud-init config
([#2853 ](https://github.com/libretime/libretime/issues/2853 ))
([8406d52
](8406d520d7
))
* run python in optimized mode
([#2874 ](https://github.com/libretime/libretime/issues/2874 ))
([3f7fc99
](3f7fc99b6b
))
* the `general.secret_key` configuration field is now required
([#2841 ](https://github.com/libretime/libretime/issues/2841 ))
([0d2d1a2
](0d2d1a2673
)),
closes [#2426 ](https://github.com/libretime/libretime/issues/2426 )
* use nginx to serve media files
([#2860 ](https://github.com/libretime/libretime/issues/2860 ))
([4603c17
](4603c1759f
))
### Bug Fixes
* add parent function name in setValue exception
([#2777 ](https://github.com/libretime/libretime/issues/2777 ))
([c764a5a
](c764a5a648
))
* **api:** ensure non ascii paths are handled by X-Accel-Redirect
([#2861 ](https://github.com/libretime/libretime/issues/2861 ))
([0ce63f3
](0ce63f3bf0
))
* **api:** enum schema description
([#2803 ](https://github.com/libretime/libretime/issues/2803 ))
([976b70e
](976b70ed32
))
* **api:** let nginx handle the media file content type
([#2862 ](https://github.com/libretime/libretime/issues/2862 ))
([72268ad
](72268ad9bb
))
* **api:** move gunicorn worker config to python file
([#2854 ](https://github.com/libretime/libretime/issues/2854 ))
([43221d9
](43221d9d7f
))
* **api:** paths with question marks chars are handled by
X-Accel-Redirect
([#2875 ](https://github.com/libretime/libretime/issues/2875 ))
([b2c1ceb
](b2c1ceb89f
))
* **deps:** update dependency friendsofphp/php-cs-fixer to <3.42.1
(main) ([#2765 ](https://github.com/libretime/libretime/issues/2765 ))
([8ae4dce
](8ae4dce9e7
))
* **deps:** update dependency friendsofphp/php-cs-fixer to <3.43.2
(main) ([#2848 ](https://github.com/libretime/libretime/issues/2848 ))
([62e5f4d
](62e5f4dfbb
))
* **deps:** update dependency friendsofphp/php-cs-fixer to <3.45.1
(main) ([#2855 ](https://github.com/libretime/libretime/issues/2855 ))
([6f84328
](6f84328380
))
* **deps:** update dependency friendsofphp/php-cs-fixer to <3.46.1
(main) ([#2868 ](https://github.com/libretime/libretime/issues/2868 ))
([4827dbc
](4827dbce71
))
* **legacy:** allow uploading opus files
([#2804 ](https://github.com/libretime/libretime/issues/2804 ))
([f252a16
](f252a16637
))
* **legacy:** declare previously undeclared variable
([#2793 ](https://github.com/libretime/libretime/issues/2793 ))
([e2cfbf4
](e2cfbf4c03
))
* **legacy:** ensure last played criteria works with never played files
([#2840 ](https://github.com/libretime/libretime/issues/2840 ))
([24ee383
](24ee3830c2
))
* **playout:** increase file download chunk size to 8192 bytes
([#2863 ](https://github.com/libretime/libretime/issues/2863 ))
([7ed1be1
](7ed1be1816
))
* **playout:** remove empty file when the download request failed
([#2864 ](https://github.com/libretime/libretime/issues/2864 ))
([2facbfa
](2facbfaff2
))
* **worker:** unbound variable when episode url returns HTTP 404
([#2844 ](https://github.com/libretime/libretime/issues/2844 ))
([3f39689
](3f396895e5
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
---------
Co-authored-by: jo <ljonas@riseup.net>
2024-01-07 16:56:33 +01:00
Jonas L
3f7fc99b6b
feat: run python in optimized mode ( #2874 )
...
Set PYTHONOPTIMIZE=2 to enable
https://docs.python.org/3/using/cmdline.html#cmdoption-OO
2024-01-07 14:30:20 +01:00
Jonas L
3f396895e5
fix(worker): unbound variable when episode url returns HTTP 404 ( #2844 )
...
### Description
When the episode URL return a 404, the tmp_file is never set, and we
have an unbound variable exception.
2023-12-28 14:05:35 +01:00
Jonas L
413b37d5e5
refactor(worker): add require secret_key config field ( #2846 )
...
Missing secret_key change from
https://github.com/libretime/libretime/pull/2841
2023-12-28 14:01:54 +01:00
Jonas L
e7a678e91f
build: replace custom release script with release-please ( #2817 )
...
* build: replace custom release script with release-please
* include package-name
2023-12-22 19:19:12 +01:00
Jonas L
26737abad2
chore: release 3.2.0 ( #2754 )
2023-10-16 21:26:59 +02:00
Jonas L
d071a53fdf
chore: widen dev deps version range ( #2755 )
2023-10-16 09:40:46 +01:00
renovate[bot]
f2fc9c138b
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.33 ( #2748 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-14 17:02:54 +02:00
renovate[bot]
201a74d0d1
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.32 ( #2703 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-15 15:47:06 +01:00
renovate[bot]
c51a3c3d17
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.31 ( #2675 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 15:18:57 +02:00
renovate[bot]
6748a8175f
chore(deps): update dependency mutagen to >=1.45.1,<1.48 ( #2682 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 15:18:33 +02:00
renovate[bot]
372fb9e76c
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.30 ( #2642 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-05 09:29:41 +02:00
renovate[bot]
2d413013a6
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.29 ( #2625 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-12 08:53:29 +02:00
renovate[bot]
02cd0fdfca
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.28 ( #2611 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-06 21:32:03 +02:00
renovate[bot]
66a9e1fb7f
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.27 ( #2599 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24 09:06:20 +02:00
renovate[bot]
c4bf174ff5
chore(deps): update dependency requests-mock to >=1.10.0,<1.12 ( #2583 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-12 09:38:04 +02:00
renovate[bot]
30ac8dd6e5
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.26 ( #2577 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 08:35:46 +02:00
jo
08e2eec0a3
chore: release 3.1.0
2023-05-26 15:34:43 +02:00
renovate[bot]
52361c1b9b
chore(deps): update dependency types-requests to >=2.31.0,<2.32 (main) ( #2561 )
...
* chore(deps): update dependency types-requests to >=2.31.0,<2.32
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-05-25 15:12:42 +02:00
renovate[bot]
8ad00a5e5e
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.25 ( #2559 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-24 18:50:16 +02:00
renovate[bot]
51a3add302
chore(deps): update dependency requests to >=2.31.0,<2.32 [security] ( #2558 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-24 18:23:55 +02:00
renovate[bot]
2581b68e38
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.24 ( #2550 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-15 18:06:43 +02:00
jo
a363b3adfb
feat: install inside a python3 venv
2023-05-11 09:52:58 +01:00
renovate[bot]
f11d493968
chore(deps): update dependency types-requests to >=2.25.1,<2.31 ( #2538 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-05 17:31:17 +02:00
renovate[bot]
935a993f6f
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.23 ( #2537 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-05 17:31:04 +02:00
renovate[bot]
4b12c5a5f1
chore(deps): update dependency requests to >=2.25.1,<2.31 ( #2535 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-03 21:30:39 +02:00
renovate[bot]
aa304cc77a
chore(deps): update dependency types-requests to >=2.25.1,<2.30 ( #2533 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-29 13:38:16 +02:00
renovate[bot]
c2c58cf250
chore(deps): update dependency requests to >=2.25.1,<2.30 ( #2528 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-26 19:09:59 +02:00
renovate[bot]
bcddc90fe8
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.22 ( #2526 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-26 12:38:23 +02:00
renovate[bot]
5a083886c5
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.21 ( #2514 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-19 17:13:47 +02:00
renovate[bot]
76343117f5
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.20 ( #2499 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-04 14:16:06 +02:00
renovate[bot]
6b502fd113
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.19
2023-03-28 19:57:03 +02:00
renovate[bot]
6a7d72cdf9
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.18 ( #2466 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-16 16:45:45 +00:00
renovate[bot]
903a643c01
chore(deps): update dependency sentry-sdk to >=1.15.0,<1.17
2023-03-15 11:16:08 +01: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
9384df7be2
Merge branch '3.0.x' into main
2023-02-26 20:16:38 +01: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
c414068c16
test: re-enable pylint logging-fstring-interpolation
2023-02-26 19:09:51 +02:00
jo
d35ee41bb9
chore: release 3.0.2
2023-02-21 13:37:04 +01:00
jo
3606bd2b2b
chore: add isort pre-commit hook
2023-02-03 12:38:58 +01:00
jo
284fd5c688
chore: set dev dependencies version ranges
2023-02-03 07:36:58 +02:00
jo
715144a92d
chore: move isort config to pyproject.toml
2023-01-16 08:42:23 +02:00
jo
14beb885a3
chore: split test and coverage tasks
2023-01-16 08:42:23 +02:00
jo
37ba9d0986
chore: release 3.0.1
2022-12-20 16:27:29 +01:00
jo
86ceac76d8
chore: release 3.0.1
2022-12-20 16:16:30 +01:00
jo
f56e7ea8fd
fix(worker): replace deprecated cgi.parse_header
2022-12-20 15:54:44 +01:00