Commit Graph

319 Commits

Author SHA1 Message Date
jo 090a5c93ac fix(legacy): look in /legacy for a VERSION file 2022-09-04 17:49:28 +02:00
jo 252ab00a8e style(legacy): format config 2022-09-04 17:49:28 +02:00
Jonas L c28c048bf4
chore: use https links (#2075) 2022-08-25 16:25:54 +02:00
jo 85f7c6d89b test(legacy): enable stdout logs 2022-08-25 10:52:38 +02:00
jo 0dd96345c9 chore(legacy): fix config validator name 2022-08-25 10:52:38 +02:00
jo 4d0cbe4d15 fix(legacy): 404 on listeners stats 2022-08-25 10:52:38 +02:00
jo 9001a18f2d fix(legacy): args comma syntax error 2022-08-24 12:18:40 +02:00
jo 3f2f2cb50b ci(legacy): catch syntax errors on older php versions 2022-08-24 12:18:40 +02:00
Jonas L 2edbf15bf4
feat(worker): rename service and package to libretime-worker (#2065)
BREAKING CHANGE: The `libretime-celery` python package and service was renamed to `libretime-worker`. Make sure to remove the old python package and service.
2022-08-20 08:13:30 +02:00
Weblate (bot) e6945a0e45
chore(legacy): translated using weblate (Croatian) (#2059)
Currently translated at 72.7% (692 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-08-15 07:55:37 +02:00
Weblate (bot) 2a3822b4d1
chore(legacy): translated using weblate (Croatian) (#2054)
Currently translated at 56.6% (539 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-08-13 17:14:54 +02:00
Weblate (bot) 151b47e60f
chore(legacy): translated using weblate (Croatian) (#2052)
Currently translated at 56.2% (535 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-08-12 21:06:00 +02:00
jo e8785124e0 feat(legacy): add config dot notation access 2022-08-11 13:17:39 +02:00
jo f483852ccd refactor(legacy): clean config
- sort imports
- improve indentation
- rename internal_values to legacy_values
- reorder functions
 remove unused isYesValue
2022-08-11 13:17:39 +02:00
jo 21254b048d feat(legacy): setup config schema validation
BREAKING CHANGE: Unrecognized values in the configuration file will
raise validation errors, please make sure to cleanup your configuration
file.
2022-08-11 11:26:16 +02:00
jo d9815fb76f chore(legacy): sort composer packages 2022-08-11 11:26:16 +02:00
Jonas L 1550d44ac5
style(legacy): format (#2039) 2022-08-10 13:38:19 +02:00
Jonas L 45c283504e
fix(legacy): do not rely on undefined SERVER_NAME (#2031) 2022-08-09 20:24:09 +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
Weblate (bot) 782a3b140e
chore(legacy): translated using weblate (German) (#2010)
Currently translated at 75.0% (714 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

Co-authored-by: Domenik Töfflinger <domenikt96@yahoo.de>
2022-07-31 11:26:09 +02:00
Milo Ivir d7e6b6a776 chore(legacy): translated using weblate (Croatian)
Currently translated at 55.0% (524 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/hr/
2022-07-30 21:19:16 +02:00
Jonas L f137be09a1
fix(legacy): sanitize track_type_id when updating file (#2003)
Fixes #2000
2022-07-27 09:52:09 +02:00
Jonas L fc856c5667
fix(legacy): get local logo file (#1999)
Load logo content from the local file instead of the public location.
2022-07-27 09:51:14 +02:00
Jonas L 067b35e9bb
feat(analyzer): load callback details from config and file_id (#1993) 2022-07-26 14:19:22 +02:00
Jonas L d93731807c
feat(worker): load callback details from config (#1994) 2022-07-26 14:18:41 +02:00
jo 71b3f7f065 chore: remove schedule unused independent_event 2022-07-20 12:05:01 +02:00
Weblate (bot) 794e75e600
chore(legacy): translated using weblate (English (United Kingdom)) (#1962)
Currently translated at 77.4% (737 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/en_GB/

Co-authored-by: Kyle Robbertze <github@paddatrapper.com>
2022-07-14 11:23:56 +02:00
jo a8cb62586e feat: remove unused cc_country table 2022-07-12 11:33:22 +02:00
jo f234aa7c42 fix(legacy): no invalid track type in smartblock criteria 2022-07-12 11:32:26 +02:00
jo fdd3ff1e5a style(legacy): format tools/composer.json 2022-07-11 17:35:02 +02:00
jo c28fe32cdc style(legacy): php-cs-fixer upgrade 2022-07-11 17:30:52 +02:00
jo 25fbf5cf32 chore(legacy): commit tools composer.json
Allow to keep track of the tools version and not have unexpected version bumps.
2022-07-11 17:30:52 +02:00
jo 829b9bcd5b chore(legacy): use Config::getPublicUrl helper
Replace Application_Common_HTTPHelper::getStationUrl with Config::getPublicUrl.
2022-07-08 11:03:10 +02:00
jo 72960593c7 chore(legacy): use Config::getBasePath helper
Replace Application_Common_OsPath::getBaseDir with Config::getBasePath.
2022-07-08 11:03:10 +02:00
jo 712ecd70b4 chore(legacy): remove exploded public_url config
Replace exploded public_url parts with validated url object.
2022-07-08 11:03:10 +02:00
Mykola c309b4df13 chore(legacy): translated using weblate (Ukrainian)
Currently translated at 100.0% (951 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/uk/
2022-07-07 22:12:39 +02:00
Maxime Leroy edf2e41abe chore(legacy): translated using weblate (French)
Currently translated at 100.0% (951 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/
2022-07-07 22:12:39 +02:00
jo db976881f0 fix: use constrained foreign key for files track_type 2022-07-07 21:07:41 +02:00
jo bcaea16c19 fix(legacy): check empty before iteration on files 2022-07-07 21:07:41 +02:00
jo 5e8f7d430f style(legacy): format files 2022-07-07 21:07:41 +02:00
Jonas L 4d393fa14e
style(legacy): format files (#1946) 2022-07-07 20:01:15 +02:00
Jonas L eb19283d96
fix(legacy): don't log 'could not obtain lock' exception (#1943)
Fixes #1490
2022-07-07 16:47:56 +02:00
jo c6bba21ef9 fix(legacy): station-metadata api endpoint
- Remove hardcoded http://
- Add missing $request variable
2022-07-07 16:44:27 +02:00
jo be7447b28f style(legacy): format ApiController.php 2022-07-07 16:44:27 +02:00
jo ec45717ccf feat: replace apache2 with nginx + php-fpm
BREAKING CHANGE: The `apache2` webserver has been replaced with `nginx` and `php-fpm`, be sure to uninstall `apache2` and clean related configuration files from your system before upgrading.
2022-07-07 10:51:07 +02:00
jo f1270fed6f feat(legacy): don't guess cors url from server 2022-07-07 10:51:07 +02:00
Jonas L 652ce53f89
chore(legacy): add missing datatables uk_UA i18n (#1937) 2022-07-05 08:36:25 +02:00
Jonas L 703a8e5856
chore: remove cloud storage remainings (#1934) 2022-07-04 22:09:14 +02:00
jo 0e6b0da142 feat(legacy): add Ukrainian language 2022-07-04 20:00:51 +02:00
jo ed30bfd367 chore(legacy): update locales from code 2022-07-04 19:49:52 +02:00
jo fa136fad97 chore: explicit schedule file metadata dict values 2022-07-01 11:07:26 +02:00
jo 216ab62507 style(legacy): format Schedule.php 2022-07-01 11:07:26 +02:00
jo 523f646acc feat(legacy): compute md5 during early upload 2022-06-28 19:05:14 +02:00
jo df3b4fccd4 style(legacy): format CcFiles.php 2022-06-28 19:05:14 +02:00
Weblate (bot) c0bddf83a8
chore(legacy): translated using weblate (Turkish) (#1923)
Currently translated at 43.7% (420 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/tr/

Co-authored-by: metezd <itoldyouthat@protonmail.com>
2022-06-28 09:42:45 +02:00
Weblate (bot) be7e11216e
chore(legacy): translated using weblate (Turkish) (#1918)
Currently translated at 42.4% (407 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/tr/

Co-authored-by: metezd <itoldyouthat@protonmail.com>
2022-06-26 16:08:39 +02:00
Jonas L 9c042c881a
feat: remove unused cc_perms table (#1909) 2022-06-22 16:32:39 +02:00
Jonas L 4837a1885d
feat: remove unused cc_sess table (#1907) 2022-06-22 15:15:31 +02:00
jo 71cfab79ef feat: rename default stream mount point to main
This will not change the default mount point if you are upgrading.

BREAKING: The default stream mount point changed from `airtime_128` to `main`. Be sure to updates your clients accordingly.
2022-06-18 12:08:29 +02:00
jo f936ba39ed style(legacy): format stream settings model 2022-06-18 12:08:29 +02:00
Jonas L 8d2b340017
fix(legacy): remove file directory metadata (#1887) 2022-06-17 16:02:13 +02:00
rinka 97900e8b7c chore(legacy): translated using weblate (French)
Currently translated at 100.0% (959 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/
2022-06-16 12:13:25 +02:00
rinka e8a9b64c4d chore(legacy): translated using weblate (French)
Currently translated at 100.0% (959 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/
2022-06-15 15:13:28 +02:00
jo 28b9343c77 fix(legacy): remove not null contraint when using default
This fixes the inital schema creation to match as if the old migrations
were always run.

The third_party_track_references.file_id field should not have a not
null constraint while have a default value to 0.
2022-06-08 23:23:08 +02:00
jo f7bb6e7592 feat: move storage path setting to configuration file
- change default storage path to /srv/libretime
- remove music dirs table
- use /tmp for testing storage
- storage dir should always have a trailing slash
2022-06-08 23:23:08 +02:00
jo 0d16960887 feat: remove php web installer 2022-06-08 23:23:08 +02:00
jo eb8e7b3415 feat: move allowed cors url to configuration file
- don't set cors origins form field as readonly and add deprecation notice.
2022-06-08 23:23:08 +02:00
jo 980f1acd0c fix: correct cc_file.artwork column size 2022-06-08 23:23:08 +02:00
jo 0e4bc4cacd feat: replace php migration with django migration
- keep latest legacy version in initial migration file
- move propel schema to api legacy app
- remove legacy upgrade tool
2022-06-08 23:23:08 +02:00
jo ee98387264 feat(installer): rewrite install script
- remove unused root packages.ini
- write config to yaml file
- allow to set public_url during install
- force icecast start right after package install
- move config file in place at the end of installation

BREAKING CHANGE: The bash installer has been rewritten, the flags and
options changed, please run `./install --help` to get more details.
2022-06-08 23:23:08 +02:00
jo aed6d2f294 feat: change config dir path to /etc/libretime
BREAKING: The configuration directory changed from `/etc/airtime` to
`/etc/libretime`. Please rename your configuration directory accordingly.
2022-06-08 23:23:08 +02:00
jo 604ff20239 feat: change config filename to config.yml
BREAKING: The configuration file name changed from `airtime.conf` to
`config.yml`. Please rename your configuration file accordingly.
2022-06-08 23:23:08 +02:00
jo e4439390fe feat: change config file format to yaml
- docs: add link to yaml.org

BREAKING: The `ini` configuration file format changed to `yml`. Please
rewrite your configuration file using the yaml format.
2022-06-08 23:23:08 +02:00
Weblate (bot) 61dd20333b
chore(legacy): translated using weblate (Russian) (#1863)
Currently translated at 96.8% (929 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/ru/

Co-authored-by: МАН69К <weblate@mah69k.net>
2022-06-05 16:59:20 +02:00
Jonas L 6856dcbd25
feat(legacy): check services using systemctl (#1856) 2022-05-24 10:09:48 +02:00
Jonas L 11ebfd2137
test(legacy): use default rabbitmq settings (#1855) 2022-05-23 17:27:57 +02:00
jo 8278366899 feat(worker): don't run with a dedicated user
BREAKING: The worker service no longer uses a dedicated `celery` user to run. The old `celery` user can be removed from the system.
2022-05-19 09:35:05 +02:00
Jonas L 6d5c58fbcb
fix(legacy): check if libretime-api is running (#1841) 2022-05-10 13:54:16 +02:00
Jonas L 6a65a7f3f1
feat(legacy): improve rabbitmq check (#1839) 2022-05-09 13:21:17 +02:00
Jonas L be5d732006
fix(legacy): station url always has a trailing slash (#1838) 2022-05-05 19:24:51 +02:00
jo bc6b43c43c feat: rotate logs using libretime user 2022-05-05 09:42:34 +02:00
Jonas L 751151a855
chore: replace ogg|mp3 with ogg,mp3 (#1822) 2022-04-29 17:21:33 +02:00
jo 981ba4fe33 fix(legacy): the ini config parser requires a .conf ext
- rename installer config filepath
2022-04-25 16:45:01 +02:00
jo 88e618e802 fix(legacy): bypass config validation during django migration 2022-04-25 16:45:01 +02:00
jo 241105f0a0 fix(legacy): load vendors during config init
Propel does not have the vendors loaded, even if they are loaded during 'preload.php'.
2022-04-25 16:45:01 +02:00
jo 751d430bcc feat: replace exploded base_* with public_url
Fixes #1574

BREAKING CHANGE: The `general` section in the config schema has changed: the `general.base_*`, `general.protocol` and `general.force_ssl` configuration fields have been replaced with a single `general.public_url` field. Be sure to use a valid url with the new configuration field.
2022-04-25 16:45:01 +02:00
dependabot[bot] 6a685720fc
chore: bump simplepie/simplepie from 1.5.8 to 1.6.0 in /legacy (#1789)
Bumps [simplepie/simplepie](https://github.com/simplepie/simplepie) from 1.5.8 to 1.6.0.
- [Release notes](https://github.com/simplepie/simplepie/releases)
- [Changelog](https://github.com/simplepie/simplepie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/simplepie/simplepie/compare/1.5.8...1.6.0)

---
updated-dependencies:
- dependency-name: simplepie/simplepie
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-22 11:30:00 +02:00
Jonas L 5cb4b5e9e5
chore(legacy): move logrotate config in legacy/install (#1780) 2022-04-21 07:11:16 +02:00
Weblate (bot) a090397989
chore(legacy): translated using weblate (French) (#1769)
Currently translated at 99.6% (956 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

Co-authored-by: Jonas L <ljonas@riseup.net>
2022-04-17 14:09:02 +00:00
Weblate (bot) 452277e8b6
chore(legacy): translations update from Weblate (#1766)
* chore(legacy): translated using weblate (French)

Currently translated at 99.6% (956 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

* chore(legacy): translated using weblate (French)

Currently translated at 100.0% (959 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

Co-authored-by: Jonas L <ljonas@riseup.net>
2022-04-14 12:55:46 +02:00
dependabot[bot] 7734eea757
chore: bump composer/semver from 3.3.1 to 3.3.2 in /legacy (#1730)
Bumps [composer/semver](https://github.com/composer/semver) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.3.1...3.3.2)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 08:30:28 +00:00
Kyle Robbertze d698ace89f
chore: update code of conduct URLs (#1724)
* chore: update code of conduct URLs

* lowercase org name

Co-authored-by: Jonas L <jooola@users.noreply.github.com>
2022-04-01 13:02:13 +00:00
Jonas L bc6ec6489c
fix: add gettext for legacy locale generation (#1720) 2022-03-31 16:43:03 +02:00
Jonas L 331df277b4
docs: fix and update links (#1714) 2022-03-29 13:07:38 +02:00
dependabot[bot] e3e27e813f
chore: bump composer/semver from 3.3.0 to 3.3.1 in /legacy (#1678)
Bumps [composer/semver](https://github.com/composer/semver) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.3.0...3.3.1)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 12:10:31 +02:00
dependabot[bot] 71b181bc32 chore: bump composer/semver from 3.2.9 to 3.3.0 in /legacy
Bumps [composer/semver](https://github.com/composer/semver) from 3.2.9 to 3.3.0.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.2.9...3.3.0)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-15 11:02:44 +01:00
dependabot[bot] 62039fb09c chore: bump php-amqplib/php-amqplib from 3.1.2 to 3.2.0 in /legacy
Bumps [php-amqplib/php-amqplib](https://github.com/php-amqplib/php-amqplib) from 3.1.2 to 3.2.0.
- [Release notes](https://github.com/php-amqplib/php-amqplib/releases)
- [Changelog](https://github.com/php-amqplib/php-amqplib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/php-amqplib/php-amqplib/compare/v3.1.2...v3.2.0)

---
updated-dependencies:
- dependency-name: php-amqplib/php-amqplib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 11:37:27 +01:00
Weblate (bot) 8296d116d5
chore(legacy): translated using weblate (French) (#1671)
Currently translated at 99.3% (953 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

Co-authored-by: Maxime Leroy <lisacintosh@gmail.com>
2022-03-14 10:19:40 +00:00
Jonas L 69d8eae845
style(legacy): fix code format with php-cs-fixer (#1674) 2022-03-14 12:15:04 +02:00
jo dc7560e1df feat(legacy): replace massivescale/celery-php with jooola/celery-php 2022-03-04 22:18:29 +02:00
Jonas L f75bf52371
chore(legacy): clean locales without git (#1639) 2022-02-25 20:16:41 +02:00
jo 228585d434 docs: update configuration schema 2022-02-23 13:18:05 +02:00
jo f088cc2873 feat(legacy): clean config parsing and add defaults
BREAKING CHANGE: The configuration schema has changed:
- The `rabbitmq.*` configuration fields now have defaults.
- The `current_backend.storage_backend` configuration field
  now defaults to the only valid value `file`.
- The `general.cache_ahead_hours` configuration field now defaults to 1.
2022-02-23 13:18:05 +02:00
jo 4d868fac00 feat: remove unused web_server_user config entry
- remove InstallStorageDirectory function

BREAKING CHANGE: The configuration schema has changed:
- The `general.web_server_user` configuration field is
not used anymore.
2022-02-23 13:18:05 +02:00
Jonas L ae5746d26d
style: fix php-cs-fixer linting (#1575) 2022-02-08 11:14:59 +02:00
dependabot[bot] b43cb62a2e chore: bump composer/semver from 3.2.7 to 3.2.9 in /legacy
Bumps [composer/semver](https://github.com/composer/semver) from 3.2.7 to 3.2.9.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.2.7...3.2.9)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:27:16 +01:00
Jonas L c80f520d76
fix(legacy): update setup with new db config schema (#1567) 2022-02-05 09:48:36 +02:00
Jonas L 3245216869
feat(legacy): add db config defaults and allow custom port (#1559)
* feat(legacy): allow custom port for database connection

- fix heredoc for php72

* update test config db section

* update sample config db section

* update api db config

* use defaults for database config section

* update documentation

* more documentation for migration
2022-02-04 16:03:01 +02:00
Jonas L 173ec6b334
fix(legacy): revert default storage path (#1563)
The installer hasn't been updated to create the default storage path.
2022-02-04 15:57:09 +02:00
Jonas L 729a7b99e0
feat(legacy): consolidate constants (#1558)
* remove unused file

* fix paths leading slash

* remove useless imports

* refactor(legacy): use constants everywhere

* fix path leading slash

* remove useless import

* consolidate legacy contants

* format code

* reuse LIBRETIME_CONFIG_DIR

* fix test config path

* remove ci legacy log dir creation

* some logs improvements
2022-02-04 12:00:41 +02:00
Jonas L 0ce1634c9d
feat(legacy): rename log filepath (#1551)
BREAKING CHANGE: moved legacy log file from '/var/log/airtime/zendphp.log' to '/var/log/libretime/legacy.log'
2022-01-31 11:27:53 +02:00
Jonas L 81fc0c9afc
fix(legacy): clean sql migrations files (#1545)
* fix(legacy): do not fail on fresh sql migration

* fix(legacy): sql only drop if exists

* fix(legacy): remove unused in db locales

These inserts are making migration fail
2022-01-31 09:19:53 +00:00
Jonas L 74c8d20284
fix(legacy): only render if img creation succeed (#1540)
Fixes #1489
2022-01-28 07:04:58 +02:00
jo 86948e7b93 fix(legacy): add more null check in api live info 2022-01-27 16:01:09 +02:00
jo ace167fe10 fix(legacy): do not catch too broad exceptions 2022-01-27 16:01:09 +02:00
jo 3f67d36909 fix(legacy): default values when array is null 2022-01-27 16:01:09 +02:00
Jonas L e740267ee4
chore(legacy): upgrade propel1 dependency (#1512) 2022-01-26 23:18:18 +02:00
jo fa7692071c feat(playout): load config using shared helpers
- backport >=py38 Literal type
- update configuration sample
- add missing config filepath to systemd service
- make config sections optional

BREAKING CHANGE: the playout config schema has been changed like the following:
- the top section 'pypo' was renamed to 'playout'
- the 'playout.ls_*' entries were renamed to 'playout.liquidsoap_*'
- the 'playout.*_dir' entries were removed
- the 'playout.api_client' entry was removed
- the 'playout.record_file_type' entry was renamed to 'playout.record_file_format'
- the 'playout.base_recorded_files' entry was removed
- the 'playout.poll_interval' entry was removed
- the 'playout.push_interval' entry was removed
- the 'playout.cue_style' entry was removed
2022-01-24 12:46:40 +02:00
Weblate (bot) 12968c02c5
chore: translated using weblate (Turkish) (#1531)
Currently translated at 41.7% (400 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/tr/

Co-authored-by: ToldYouThat <itoldyouthat@protonmail.com>
2022-01-24 07:07:18 +02:00
Jonas L 8569af9328
style(legacy): force semicolon on same line (#1534) 2022-01-23 20:15:55 +02:00
Weblate (bot) 76069006b5
chore: Translations update from Hosted Weblate (#1529)
* chore: translated using weblate (Turkish)

Currently translated at 41.7% (400 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/tr/

* chore: translated using weblate (Turkish)

Currently translated at 42.1% (404 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/tr/

Co-authored-by: ToldYouThat <itoldyouthat@protonmail.com>
2022-01-21 11:17:46 +02:00
dependabot[bot] 2de1ce6e0d
chore: bump php-amqplib/php-amqplib from 3.1.1 to 3.1.2 in /legacy (#1526)
Bumps [php-amqplib/php-amqplib](https://github.com/php-amqplib/php-amqplib) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/php-amqplib/php-amqplib/releases)
- [Changelog](https://github.com/php-amqplib/php-amqplib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/php-amqplib/php-amqplib/compare/v3.1.1...v3.1.2)

---
updated-dependencies:
- dependency-name: php-amqplib/php-amqplib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-19 12:06:38 +02:00
Jonas L f42d67d41d
fix(legacy): api migration config variable name (#1522) 2022-01-18 09:36:40 +02:00
Kyle Robbertze 8b4260d74b fix(legacy): correct linting issues 2022-01-15 00:51:01 +01:00
Jonas L c2cd1c28b8
chore: rename master branch to main (#1508) 2022-01-13 16:03:31 +00:00
Jonas L fd580d689f
fix(legacy): validate id param in show image controller (#1510) 2022-01-13 07:10:32 +02:00
Jonas L 19986cf1b1
chore: exclude packages sections using tools/packages.py (#1499)
* feat: exclude packages sections using tools/packages.py

* chore: group apache deps packages in a section

This allow one to exlude the entire section and install nginx for example.
2022-01-10 08:23:37 +02:00
dependabot[bot] ba8b51af76
chore: bump composer/semver from 3.2.6 to 3.2.7 in /legacy (#1485)
Bumps [composer/semver](https://github.com/composer/semver) from 3.2.6 to 3.2.7.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.2.6...3.2.7)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-05 11:25:52 +02:00
jo ccb8a234b8 chore: fixes after libretime_worker rename 2022-01-04 09:18:58 +02:00
Weblate (bot) 415e22a306
chore: Translated using Weblate (Hungarian) (#1464)
Currently translated at 85.4% (819 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/hu/

Co-authored-by: f3rr31 <5920873@disroot.org>
2022-01-03 09:38:32 +02:00
dependabot[bot] 7de75936c2 chore: bump simplepie/simplepie from 1.5.7 to 1.5.8 in /legacy
Bumps [simplepie/simplepie](https://github.com/simplepie/simplepie) from 1.5.7 to 1.5.8.
- [Release notes](https://github.com/simplepie/simplepie/releases)
- [Changelog](https://github.com/simplepie/simplepie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/simplepie/simplepie/compare/1.5.7...1.5.8)

---
updated-dependencies:
- dependency-name: simplepie/simplepie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-24 13:46:51 +01:00
dependabot[bot] 78523fd2eb
chore: bump simplepie/simplepie from 1.5.6 to 1.5.7 in /legacy (#1458)
Bumps [simplepie/simplepie](https://github.com/simplepie/simplepie) from 1.5.6 to 1.5.7.
- [Release notes](https://github.com/simplepie/simplepie/releases)
- [Changelog](https://github.com/simplepie/simplepie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/simplepie/simplepie/compare/1.5.6...1.5.7)

---
updated-dependencies:
- dependency-name: simplepie/simplepie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-20 11:35:19 +02:00
Weblate (bot) a86f303064
chore: translated using Weblate (Turkish) (#1456)
Currently translated at 41.1% (395 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/tr/

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-12-13 11:35:10 +02:00
dependabot[bot] 9f0ed9edae
chore: bump php-amqplib/php-amqplib from 3.0.0 to 3.1.1 in /legacy (#1457)
Bumps [php-amqplib/php-amqplib](https://github.com/php-amqplib/php-amqplib) from 3.0.0 to 3.1.1.
- [Release notes](https://github.com/php-amqplib/php-amqplib/releases)
- [Changelog](https://github.com/php-amqplib/php-amqplib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/php-amqplib/php-amqplib/compare/v3.0.0...v3.1.1)

---
updated-dependencies:
- dependency-name: php-amqplib/php-amqplib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 11:30:04 +02:00
Jonas L 4057c88cf0
feat: debian 11 support (#1292)
* Debian 11 Support

Run api ci test on bullseye as well

* Silan does not work for mp3 on bullseye

* Liquisoap does not fail with wma files on bullseye
2021-11-09 11:21:40 +02:00
Kyle Robbertze e56069b957 fix: remove rogue buster reference 2021-11-08 20:57:41 +01:00
Kyle Robbertze 7182390000
feat: add support for Ubuntu Focal 20.04 (#1168)
Co-authored-by: Valerio Bozzolan <gnu@linux.it>
2021-11-04 09:55:50 +02:00
dependabot[bot] 3d20af5fae
Bump composer/semver from 3.2.5 to 3.2.6 in /legacy (#1427)
Bumps [composer/semver](https://github.com/composer/semver) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.2.5...3.2.6)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-26 13:18:54 +02:00
Weblate (bot) c4692fe011
Translated using Weblate (Russian) (#1422)
Currently translated at 96.7% (928 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/ru/

Co-authored-by: Artem <Localizer_in_Russian@protonmail.com>
2021-10-21 11:00:16 +02:00
dependabot[bot] ccde6039e7
Bump php-amqplib/php-amqplib from 2.12.3 to 3.0.0 in /legacy (#1418)
* Bump php-amqplib/php-amqplib from 2.12.3 to 3.0.0 in /legacy

Bumps [php-amqplib/php-amqplib](https://github.com/php-amqplib/php-amqplib) from 2.12.3 to 3.0.0.
- [Release notes](https://github.com/php-amqplib/php-amqplib/releases)
- [Changelog](https://github.com/php-amqplib/php-amqplib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/php-amqplib/php-amqplib/compare/v2.12.3...v3.0.0)

---
updated-dependencies:
- dependency-name: php-amqplib/php-amqplib
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Replace deprecated AMQPConnection with AMQPStreamConnection

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2021-10-17 21:55:12 +02:00
dependabot[bot] 8b5c6b0cfb
Bump phpunit/phpunit from 4.8.36 to 5.7.27 in /legacy (#1419)
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 4.8.36 to 5.7.27.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/5.7.27/ChangeLog-5.7.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/4.8.36...5.7.27)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-17 18:44:30 +02:00
Jonas L 5e8d8db6e9
Feature: Support php7.4 (#1354)
* Run CI tests against php 7.4

* Sort composer dependencies

* Remove unused Aws S3 php library

* Pin simplepie dependency to ^1.5

* Pin getid3 dependency to ^1.9

* Pin composer semver to ^3.2

* Pin php-amqplib to ^2.12

* Drop sentry logging support

* Update composer dependencies

* Move propel regenerate to Makefile

* Regenerate propel files with v1.7.0

* Pin propel orm to ^1.7

* Regenerate propel files with v1.7.2

* fix: generator_version in airtime-conf-production.php

* Replace propel/propel1 with jooola/propel1

* Regenerate propel files with v1.7.3-dev

* Fix php7.4 compatibility

Using php-cs-fixer:

    '@PhpCsFixer' => true,
    'concat_space' => ['spacing' => 'one'],
    'ordered_class_elements' => false,
    'yoda_style' => false,
    '@PHP74Migration' => true,
    'assign_null_coalescing_to_coalesce_equal' => false,
    'ternary_to_null_coalescing' => false,
    'heredoc_indentation' => false,
    '@PHP74Migration:risky' => true,
    'declare_strict_types' => false,
    'void_return' => false,
    'use_arrow_functions' => false,

* Fix pre-commit
2021-10-17 17:19:53 +02:00
Jonas L ada4c72e87
Remove unused include locale/Makefile (#1407)
* Remove unused include locale/Makefile

This was generating a mess/loop with the git clean command.

* Clean/rebuild generated locales on install
2021-10-17 15:21:17 +02:00
Weblate (bot) c613cb7d38
Translated using Weblate (German) (#1416)
Currently translated at 73.7% (707 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
2021-10-17 10:22:18 +02:00
Weblate (bot) 9247b9d941
Translations update from Weblate (#1415)
* Translated using Weblate (French)

Currently translated at 89.6% (860 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

* Translated using Weblate (German (Austria))

Currently translated at 55.3% (531 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de_AT/

* Translated using Weblate (German)

Currently translated at 73.7% (707 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

* Translated using Weblate (German)

Currently translated at 73.7% (707 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

* Translated using Weblate (Greek)

Currently translated at 55.3% (531 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/el/

* Translated using Weblate (English (United Kingdom))

Currently translated at 75.2% (722 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/en_GB/

* Translated using Weblate (Italian)

Currently translated at 46.5% (446 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/it/

* Translated using Weblate (Japanese)

Currently translated at 55.2% (530 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/ja/

* Translated using Weblate (Dutch)

Currently translated at 60.4% (580 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/nl/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 51.8% (497 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/pt_BR/

Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Kyle Robbertze <github@paddatrapper.com>
2021-10-17 10:11:46 +02:00
Jonas L a7d06ad076
Fix double path separator in require_once (#1408) 2021-10-17 08:54:08 +02:00
Weblate (bot) 8b96489332
Translations update from Weblate (#1405)
* Translated using Weblate (French)

Currently translated at 89.6% (860 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

* Translated using Weblate (French)

Currently translated at 89.6% (860 of 959 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/fr/

Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Jonas L <lammler.jonas@riseup.net>
2021-10-17 08:52:27 +02:00
Jonas L 1efa0742c9
Clean and update locales (#1402)
* Remove untranslated languages

* Add country prefix to some locales

* Remove locale template file

* Prepare nl_NL and tr_TR locale for future use

* Sort locales list and put en_Us at the top

* Enhance locale Makefile

Add clean target for locales

Set locale all target to clean and build

Ensure we keep issue tracker on po updates

* Update locales headers

* Scan sources files and update locales
2021-10-17 00:20:03 +02:00
Jonas L 4335795c52
chore: Enhance release workflow (#1400)
* Rename package-release to release

* Move tarball creation in Makefile

* Enhance release workflow

* Add --ignore-platform-reqs to composer build
2021-10-15 14:59:59 +02:00
jo f7494cab7d Add locale Makefile and allow building mo files 2021-10-15 14:12:27 +02:00
jo a070e4a4c3 Rename locale text domain to libretime 2021-10-15 14:12:27 +02:00
jo a7e6cb4ed8 Remove 'pro' locales domain 2021-10-15 14:12:27 +02:00
jo ea89fc631a Rename po files to libretime 2021-10-15 14:12:27 +02:00
jo 81b0f22277 Improve legacy Makefile 2021-10-15 01:49:56 +02:00
jo 69d85c4236 Fix legacy services check names 2021-10-14 16:03:35 +02:00
jo efba0a7d09 Format xml files 2021-10-12 11:29:31 +02:00
jo 83b7e4162e Run pre-commit on legacy code 2021-10-12 11:17:57 +02:00
jo fea11ac752 Fix seed_files.yml 2021-10-12 11:16:43 +02:00
jo 1a765d3d66 Reenable escape_implicit_backslashes 2021-10-12 11:09:56 +02:00
jo f05c228f1d Put regex rules between single quotes 2021-10-12 11:09:46 +02:00
jo d52c6184b9 Format code using php-cs-fixer 2021-10-12 11:07:56 +02:00
jo 43d7dc92cd Disable temporarly escape_implicit_backslashes 2021-10-12 11:07:56 +02:00
jo ab0f3d04b8 Fix complex string interpolation 2021-10-12 11:07:56 +02:00
jo 45eda99ba3 Add php-cs-fixer setup
Exclude propel generated files from php-cs-fixer
2021-10-12 11:07:56 +02:00
jo c4c89eae19 Fix paths after legacy rename 2021-10-11 13:43:39 +02:00
jo ca21225fb9 Fix locales paths after legacy rename 2021-10-11 13:43:39 +02:00
jo 3e18d42c8b Rename airtime_mvc/ to legacy/ 2021-10-11 13:43:25 +02:00