Skip to main content
Version: 3.0.0-beta.2

LibreTime 3.0.0 beta 0

This version was released the 2022-09-16.

info

Please report new issues and/or feature requests in the issue tracker.

For general discussion or if you need help, you can join the discourse forum or chat on the mattermost server.

The full tarball for the 3.0.0-beta.0 release of LibreTime is available here.

💖 Contributors​

The LibreTime project wants to thank the following contributors for authoring PRs to this release:

  • @jooola
  • @paddatrapper
  • Milo Ivir

🚀 Features​

  • playout: use liquidsoap version functions
  • playout: replace pytz with zoneinfo (#1969)
  • installer: remove allow-restart flag (#1970)
  • rename AirtimeApiClient to ApiClient
  • playout: use single clients instance (#1980)
  • api: don't use trailing slashes (#1982)
  • api: cast StreamSetting raw_value to value (#1991)
  • worker: load callback details from config (#1994)
  • analyzer: load callback details from config and file_id (#1993)
  • api-client: rewrite api-client v2
  • playout: integrate api-client v2 calls
  • api: don't use hyperlinked serializers (#1984)
  • shared: load env config using jsonschema
  • installer: use ed for config update (#2013)
  • move off_air_meta stream setting to pref table (#2023)
  • move stream liquisoap status to pref table
  • move stream stats status to pref table
  • analyzer: override paths using env variables
  • playout: rewrite stats collector (#2028)
  • legacy: setup config schema validation
  • legacy: add config dot notation access
  • shared: pass config data via init (#2042)
  • playout: create liquidsoap client
  • playout: integrate new liquisoap client
  • worker: rename service and package to libretime-worker (#2065)
  • playout: improve generate_*_events (#2088)
  • api: remove set passwords command
  • remove cc_stream_setting models
  • installer: deploy stream config
  • legacy: read stream config from file
  • api: add /info and /stream/* endpoints
  • shared: create stream config models
  • playout: build liquidsoap entrypoint with stream config
  • playout: stats collector using stream config
  • playout: allow updating message_offline value
  • playout: remove stream_setting update handler
  • playout: liquidsoap bootstrap using new api endpoints
  • playout: allow liquidsoap listen address configuration
  • api: move /api-auth to /api/browser (#2094)
  • add container setup
  • move timezone preference to config file (#2096)
  • playout: move message handling to main thread

🐛 Bug fixes​

  • api-client: get status_code from response
  • analyzer: remove outdated urllib3 workaround
  • api-client: fix base_url joining for client v2 (#1998)
  • api: update set_icecast_passwords StreamSetting fields (#2001)
  • legacy: get local logo file (#1999)
  • installer: clean legacy files before copying (#2002)
  • legacy: sanitize track_type_id when updating file (#2003)
  • shared: validator value type can be wrong
  • shared: remove unused field from rabbitmq config (#2012)
  • playout: replace deprecated harbor.bind_addr (#2025)
  • legacy: do not rely on undefined SERVER_NAME (#2031)
  • api-client: remove unused v1 methods
  • playout: use stream download when fetching files (#2048)
  • playout: add thread names (#2056)
  • legacy: args comma syntax error
  • legacy: 404 on listeners stats
  • deps: update dependency mdx-mermaid to v1.3.0 [security]
  • playout: py36 compatibility broken typings
  • playout: py39 compatibility zoneinfo import
  • api: install gunicorn from pip for bionic
  • installer: only upgrade pip packages if needed
  • installer: fix compatibility with bionic
  • legacy: look in /legacy for a VERSION file
  • playout: missing live show events (#2087)
  • legacy: config default values are not sanitized
  • installer: add liquidsoap config section
  • installer: move non reusable fields from default output
  • legacy: consistent with docs in outputs public_url generation
  • playout: also shutdown on SIGTERM (#2104)
  • installer: simplify distro support notice (#2106)
  • shared: install tzdata distributions package (#2105)
  • installer: config dir should be read only
  • installer: config should not be world readable
  • legacy: track_type_id should cast to int not text (#2112)
  • worker: rewrite podcast download task
  • shared: load env from oneOf union schema
  • deps: update dependency friendsofphp/php-cs-fixer to <3.11.1
  • nginx depends on legacy in docker-compose (#2147)
  • playout: remove shutdown_handler

🔥 Deprecation and removal​

Ubuntu Bionic support deprecation​

Support for Ubuntu Bionic is being deprecated, and will be removed in LibreTime v3.1.0. Maintenance only versions (3.0.x) for Ubuntu Bionic will be provided until the distribution release reaches its end of life. Please see the supported distributions release policy for details.

Along with the Ubuntu Bionic deprecation, the following dependencies versions are also being deprecated:

Debian Buster support deprecation​

Support for Debian Buster is being deprecated, and will be removed in LibreTime v3.1.0. Maintenance only versions (3.0.x) for Debian Buster will be provided until the distribution release reaches its end of life. Please see the supported distributions release policy for details.

Along with the Debian Buster deprecation, the following dependencies versions are also being deprecated:

⬆️ Before upgrading​

caution

Please follow this before the upgrade procedure.

File based stream configuration​

The stream configuration moved from the database to the configuration file. A configuration sample can be found in the project folder under installer/config.yml. Make sure to save your existing stream config to the configuration file.

info

To prevent accidental data loss during upgrade, the stream configuration data will only be removed from the database in future releases. You can view the data using the following commands:

sudo -u libretime libretime-api dbshell --command="
SELECT *
FROM cc_stream_setting
ORDER BY keyname;"

sudo -u libretime libretime-api dbshell --command="
SELECT *
FROM cc_pref
WHERE keystr IN (
'default_icecast_password',
'default_stream_mount_point',
'live_dj_connection_url_override',
'live_dj_source_connection_url',
'master_dj_connection_url_override',
'master_dj_source_connection_url'
)
ORDER BY keystr;"

Timezone configuration​

The timezone preference moved from the database to the configuration file. Make sure to save your existing timezone preference to the configuration file.

info

To prevent accidental data loss during upgrade, the timezone preference will only be removed from the database in future releases. You can view the data using the following commands:

sudo -u libretime libretime-api dbshell --command="SELECT * FROM cc_pref WHERE keystr = 'timezone'";

Worker python package and service​

The libretime-celery python package and service was renamed to libretime-worker. Make sure to remove the old python package and service using the following command:

sudo pip3 uninstall libretime-celery

sudo rm -f \
/etc/systemd/system/libretime-celery.service \
/usr/lib/systemd/system/libretime-celery.service