Commit Graph

15413 Commits

Author SHA1 Message Date
miles a3130c6390 Hungarian translation 2017-09-01 18:25:26 +02:00
Lucas Bickel 21ce2d2646 Merge pull request #285 from miles75/master
Hungarian translations
2017-09-01 15:18:25 +02:00
miles 07258a68c0 Hungarian translations 2017-08-31 16:06:29 +02:00
Lucas Bickel a0999a244f Merge pull request #278 from Robbt/feature/podcast-improvements
Enable Automatic Creation of Smartblocks and Playlists for new Podcasts
2017-08-30 19:15:29 +02:00
Robb Ebright 9dae48702f Added some basic javascript based checking to require album override to be enabled for auto smartblock to be enabled 2017-08-23 12:43:48 -04:00
Robb Ebright 3515a898a7 Added option for Auto Smartblock and Playlist creation to preferences 2017-08-23 12:16:42 -04:00
Lucas Bickel bf643d45a0 Merge pull request #275 from Robbt/feature/duplicate-smartblock
Duplicate Smartblock functionality added to menu context
2017-08-18 13:27:48 +02:00
Robb Ebright aec0e348c4 Working code to auto generated Smartblock and Playlist for new Podcasts 2017-08-18 00:46:59 -04:00
Robb Ebright 6a11253ce3 added code to duplicate criteria and type for duplicate smartblock 2017-08-17 01:21:26 -04:00
Robb Ebright c6cfd97b1a started on duplicate smartblock functionality 2017-08-16 23:32:54 -04:00
Robb Ebright 1ad7c743c2 Revert "WIP adding log rotation"
This reverts commit 0eff2acb14.
2017-08-07 17:09:34 -04:00
Robb f1e467c3e6 Merge pull request #264 from radiorabe/fix/disable-media-monitor-on-update
Disable media-monitor on update
2017-08-06 20:17:19 -04:00
Lucas Bickel 2b64fe0d96 Disable media-monitor on update
The installer originally contained code to stop media-monitor on
updates. This code was removed together with media-monitor. In
the update case we want to make sure that media-monitor is never
running after updating to LibreTime.

The stop command will fail with a warning on systems that never
had media-monitor installed. This warning can be ignored and the
other services stopped with the same command still get stopped
as intended.

Fix #230
2017-08-06 22:34:22 +02:00
Robb Ebright e815e043cf Added database documentation 2017-08-06 15:55:43 -04:00
Robb Ebright 0eff2acb14 WIP adding log rotation 2017-08-06 01:05:00 -04:00
Robb bd845a016d Merge pull request #253 from radiorabe/feature/refactor-config-structure
Simplify configuration file structure
2017-08-05 20:47:28 -04:00
Lucas Bickel 8f8e4f40d0 Merge pull request #260 from Robbt/fix/enable_airtime_playout_logging
Enable logging for analyzer and pypo
2017-08-06 00:59:41 +02:00
Robb Ebright 314654dfe4 Enable logging for analyzer and pypo 2017-08-05 17:56:23 -04:00
Robb a69b86acc8 Merge pull request #258 from radiorabe/fix/pika-install-on-debian-and-ubuntu
Add python-pika to install script
2017-08-05 10:33:42 -04:00
Lucas Bickel 81f6845fc5 Add python-pika to install script
Currently pip is pulling a new pre-release version of pika. This
version does not seem to be backwards compatible and is the reason
why uploads fail on new installs.

Since there are packages available for pika on all major distros
we can get away with just installing those as pip will not try to
replace/upgrade them the way it is currently configured.
2017-08-05 13:26:37 +02:00
Robb c3bd93779b Merge pull request #252 from radiorabe/fix/pypo-tls-support
Use proper protocol in URL if port is set to 443
2017-07-23 08:36:21 -04:00
Lucas Bickel e31d5077ac Fix rebasing typo 2017-07-21 13:28:08 +02:00
Lucas Bickel fa2018a2c5 Simplify configuration file structure
This removes most of the legacy upstream config madness by not using
weird config files spread all over the place.

This isn't the solution to other config reading fragility issues, but
it does move the whole config back to the central airtime.conf file.
2017-07-21 13:15:28 +02:00
Lucas Bickel 0a556adbfa Use proper protocol in URL if port is set to 443
This adds TLS support to pypo when downloading files from the REST
API. I previously fixed some similar issues in the api_client and
wasn't aware that pypo isn't using it for every URL..
2017-07-21 12:27:34 +02:00
Robb 320b128ad8 Merge pull request #247 from radiorabe/fix/update-warning
Fix update warning
2017-07-18 22:21:33 -04:00
Robb 0c06496203 Merge pull request #248 from radiorabe/fix/no-dev-composer-install
Don't pull dev packages on install
2017-07-18 22:20:28 -04:00
Robb 0837c97263 Merge pull request #250 from radiorabe/fix/cors-response-on-non-stdandard-port
Fix non default local CORS URL case
2017-07-18 22:20:00 -04:00
Lucas Bickel 04e2402276 Fix non default local CORS URL case
I cleaned up the CORSHandler code a bit more and also rewrote the
helper to use the framework to access the request properly and
took care of also grabbing the request schema from the server.
2017-07-18 20:39:53 +02:00
Lucas Bickel f794a579d6 Don't pull dev packages on install
We don't need them for the end user runtime and this speeds up the
install quite a bit when installing from the full tarball.

Devs will need to run `composer install` to run unit tests locally
but that's about it.
2017-07-17 22:02:46 +02:00
Lucas Bickel 9c5b769cf0 Fix update warning
I fixed the manual installer to ensure that the VERSION file ends up
in the right directory on install.

I also took care of the pre-release parts of the naggingness. It shows
no updates as long there is no stable release for the current version.
As soon as one is available it uses the orange update icon to alert the
user that an update would be in order since a stable version has been
released.
2017-07-17 21:15:51 +02:00
Robb 6e2cb2b2a8 Merge pull request #241 from radiorabe/feature/update-install
Update installer with systemd detecting code
2017-07-10 23:28:23 -04:00
Lucas Bickel 5013a76060 Don't start services on install
We need to wait until the setup routine is finished or else the
install will fail when starting celery.
2017-06-27 22:44:13 +02:00
Robb ee22098b7d Merge pull request #218 from radiorabe/feature/update-phpamqp
Bump phpamqp
2017-06-13 08:23:25 -04:00
Robb dea59558a2 Merge pull request #221 from radiorabe/feature/update-faq
Add silan info to faq
2017-06-08 12:09:18 -04:00
Robb 9af154410a Merge pull request #226 from radiorabe/fix/php-7-assert-in-runtime-path
Remove assert() from rest module bootstrap
2017-06-08 12:08:40 -04:00
Lucas Bickel d6a5cbd02e Remove assert() from rest module bootstrap
Problem: assert() is Language construct in php 7 and not a function anymore. It also seems to behave silghtly differently with regards to what kind of side effects assertions are allowed to have. This leads to all of the rest endpoints being broken in php 7 since the assertion silently fails and the routes never really get added to the front controllers router.

Solution: Don't wrap the addRouter call in assert(). The way assert was being uses was rather unusual for php code this age. It was also mostly checking zf1 rather than guarding against errors in LibreTime itself.

The php manual clearly states "As a rule of thumb your code should always be able to work correctly if assertion checking is not activated." giving even more reason to ot wrap critical paths in assertions.

There are some other instances of `assert()` being used in non test code, those don't seem to have any negative effects on php7.
2017-06-07 17:33:23 +02:00
Lucas Bickel 1834ddd1bb Add silan info to faq
"What's with cue-In/Out points and silan?" is a frequently asked question that currently has multiple possible fixes and a couple of open tasks (not only "Why is it broken?" but also "Where is the cue-point editor?").

I added current infos to the release notes and was thinking this should be pointed out in the FAQ until we have a stable solution ready.
2017-06-07 00:00:58 +02:00
Lucas Bickel 2d3a367681 Bump phpamqp
Small bump to get rid of the package is outdated message also contains some patches to the lib.
2017-06-05 10:42:54 +02:00
Robb 9d5d866db6 Merge pull request #217 from radiorabe/feature/only-update-time-scale-pref-on-change
Only update timescale pref in db on change
2017-06-04 08:10:02 -04:00
Robb 92377518c4 Merge pull request #216 from radiorabe/feature/hint-about-distro-version-in-contributing
Ask for distro version in CONTRIBUTING.md
2017-06-03 17:42:12 -04:00
Lucas Bickel b1f840ee0f Only update timescale pref in db on change
The /Schedule/set-time-scale/format/json was being hit every time a new calendar page was displayed. The isn't good for performance reasons and also makes race conditions like #210 much more likely.

With this change the preference is only updated on the server when the GUI state changes because the user clicked on one of the "Day", "Week", or "Month" buttons.

This does not fix the locking issue completely, but it should help because the cc_prefs time-scale row in the database will get locked much less often. After applying this I wasn't able to reproduce #210 any more on an install with an extensive schedule.
2017-06-03 23:05:18 +02:00
Lucas Bickel 1f59d44afd Ask for distro version in CONTRIBUTING.md 2017-06-02 18:11:02 +02:00
Robb e7d1359117 Merge pull request #201 from radiorabe/feature/release-script-round-2
Fix release script call
2017-05-25 11:37:55 -04:00
Robb c1f38e536f Merge pull request #206 from radiorabe/fix/delete-first-admin-user
Problem: Deleting the initial admin won't work since it doesn't re-assign files
2017-05-25 11:25:12 -04:00
Robb 7044862fb8 Merge pull request #202 from radiorabe/fix/crlf-in-docs
[WIP] Run dos2unix on all markdown files in docs/
2017-05-24 08:20:43 -04:00
Lucas Bickel 2ea19f20fe Re-assign files to first non deleted admin user 2017-05-22 00:20:02 +02:00
Lucas Bickel 3233ccd151 Remove dead code in user model 2017-05-22 00:10:38 +02:00
Lucas Bickel f3e8e8cb00 Run dos2unix on all markdown files in docs/ 2017-05-16 13:39:17 +02:00
Lucas Bickel 4dc45a935f Fix release script call
The script was logging "Script failed with status 127". It seems that this is due to release.sh not being executable and not being referenced with a path starting with ./.
2017-05-16 12:44:01 +02:00
Lucas Bickel 43eb777177 Clean up file creation and remove std_err_override
* Re-order folder creation to make a bit more sense (the log file creation step was unreachable because python scripts always created the checked dir early)
* create dirs from pypo data_files in installer so pypo can run out of the box on a new install
* Fix path to logrotate script (logrotation needs testing though)
* Remove std_err_override module from install. Code-wise only airtime-media-monitor is still based on it and that is slated for removal together with std_err_override.
2017-05-01 19:04:40 +02:00