Commit graph

15233 commits

Author SHA1 Message Date
Robb Ebright
ba9f7879a4 modified smart block to not exceed the time limits. 2017-03-12 22:36:36 -04:00
Robb
a583d8fa1e Merge pull request #64 from radiorabe/feature/debian-and-experimental-centos
Vagrant Debian support (and experimental CentOS)
2017-03-12 21:42:37 -04:00
Robb
b2c30ed3a5 Merge pull request #68 from radiorabe/feature/product-name-in-widgets
Problem: Pro widgets contain ads for legacy upstream
2017-03-12 15:20:28 -04:00
Robb
b4cb7adb4e Merge pull request #65 from radiorabe/feature/liquidsoap-workaround-cue_cut
Problem: liquidsoap sometimes clips audio
2017-03-12 15:16:42 -04:00
Robb
c1251b4c1b Merge pull request #67 from radiorabe/feature/fix-saving-prefs
Problem: sad tape error when saving prefs w/o soundcloud config
2017-03-12 15:04:04 -04:00
Robb
0d025f86ea Merge pull request #66 from radiorabe/feature/fix-listenerstat-page
Problem: sad tape error on /listenerstats
2017-03-12 14:57:35 -04:00
Lucas Bickel
8823e76f5c Use PRODUCT_NAME in pro widgets 2017-03-12 15:30:58 +01:00
Lucas Bickel
8afdf2808d Fix sad tape error when saving prefs w/o soundcloud 2017-03-12 15:19:16 +01:00
Lucas Bickel
260ebe2476 Fix listenerstat page
Deactivates the bandwidth limit stuff if none is configured.
2017-03-12 15:13:45 +01:00
Lucas Bickel
ac5f608bd8 Refactor into def check_version
Make the code more readable :)
2017-03-12 14:18:06 +01:00
Lucas Bickel
80373ca7bc cue_cut workaround
This is the workaround for <https://github.com/savonet/liquidsoap/issues/390>.

I still need to do proper testing on it and maybe we should figure out the proper "formula" for getting to the 0.04 value.
2017-03-12 14:18:06 +01:00
Lucas Bickel
c29285ae48 Vagrant Debian support (and experimental CentOS)
This changes the Vagrant setup to support multiple installations as multiple
boxes. In addition to Ubuntu Vagrant can now be used to install on Debian
as well as on CentOS.

I took the chance to clean up the .deb install a bit and backported analyzer
and celery to SysV proper so it runs there. Some of the distro specfics were
moved to the install script from the python setup scripts to acheive this.

For the CentOS support I added a rather involved OS prepare script. In the
long term this will be added to the preparing-the-server docs we already have.

I had to switch the default port to http-alt (8080). On CentOS 9080 is registered
for ocsp and getting it to work for apache without hacking SELinux is hard. I
think 8080 is the RFC way to go anyhow. If anyone want to override this it
should be rather easy using the --web-port arg and by hacking Vagrantfile.

The PyOpenSSL code has been refactored for all the distros that the Vagrantfile
now supports.

As far as my checks go, I tried this code with all the distros, uploaded a track
and downloaded a unicode and a ssl podcast and was able to listen to them
in each case.

In the experimental CentOS case, the UI is not up to spec since services
need to get scheduled through systemctl and the status overview (ie. on the /?config page)
do not work properly. They need to be as follows:

```
sudo systemctl start airtime-playout
sudo systemctl start airtime-liquidsoap
sudo systemctl start airtime_analyzer.service
sudo systemctl start airtime-celery.service
```
2017-03-12 13:42:22 +01:00
Lucas Bickel
c8b4d40eb2 Merge pull request #58 from Robbt/install-fix-python-ssl-workaround
Modified install script to install PyOpenSSL for Ubuntu 14.04 for air…
2017-03-12 12:05:42 +01:00
Robb
f7ea88b5f0 Merge pull request #60 from radiorabe/feature/unicode-safe-podcast-downloading
Fix unicode issues in podcast downloader
2017-03-11 19:14:23 -05:00
Robb
ff83784864 Merge pull request #56 from radiorabe/feature/version-reporting
Harmonize version reporting in ui and api
2017-03-11 19:06:28 -05:00
Robb
2be8ef0f2b Merge pull request #55 from radiorabe/feature/autodj
Robbs AutoDJ
2017-03-11 18:41:08 -05:00
Robb
c12f6c6f03 Merge pull request #61 from radiorabe/feature/default-stream-wording
Replace Airtime Pro wording
2017-03-11 17:48:50 -05:00
Robb
cebd4cba8e Merge pull request #62 from radiorabe/feature/manual-links-in-ui
Change inline manual links
2017-03-11 17:48:13 -05:00
Lucas Bickel
1c1f7587a3 Fix _isTask method in taskmanager
The is_a fix from 09aea8b747 was not quite the way to go, with array_key_exists and class_implements implements the TaskManager finds all tasks again.
2017-03-11 22:49:05 +01:00
Lucas Bickel
d8c663ef7a Change inline manual links
Fixes #59
2017-03-11 21:20:06 +01:00
Lucas Bickel
0cb5e2665e Fix unicode issues in podcast downloader
The podcast downloader fails pretty badly when the podcast name contains non ascii chars. The main fail happens during logging; I have learnt way to much about pythons stupid unicode implementation.

This adds addtional debug logging and also outputs the real reason a download fails properly. The content of the tags should be written as UTF-8 or whater is input into it, this commit mainly touches (and fixes) logging.
2017-03-11 21:01:52 +01:00
Robb Ebright
8fb41cabc0 adding --upgrade to pip install for pyopenssl 2017-03-11 19:15:33 +00:00
Robb Ebright
07d7f3ef5e Merge branch 'feature/autodj' of https://github.com/radiorabe/libretime into Robbt-install-fix-python-ssl-workaround 2017-03-11 19:11:20 +00:00
Robb Ebright
880496c20f Merge branch 'install-fix-python-ssl-workaround' of https://github.com/Robbt/libretime into Robbt-install-fix-python-ssl-workaround 2017-03-11 09:56:46 -05:00
Robb
77ebfa93d3 Merge pull request #54 from radiorabe/feature/configurable-cors
Make CORS great again
2017-03-10 21:44:26 -05:00
Robb
b3b9738846 Merge pull request #39 from radiorabe/feature/vagrant-install
Install LibreTime in vagrant env
2017-03-10 21:20:04 -05:00
Robb Ebright
2ae2377ee2 Modified install script to install PyOpenSSL for Ubuntu 14.04 for airtime-celery SSL fix 2017-03-10 17:13:24 -05:00
Lucas Bickel
095ddaed38 Add new columns to schema.xml and regenerate sql 2017-03-10 21:18:50 +01:00
Lucas Bickel
bd18caf69d Harmonize version reporting in ui and api
Everything should use the version from the VERSION file created by the installer like this.
2017-03-10 20:38:43 +01:00
Lucas Bickel
c4541b7ce7 Replace Airtime Pro wording
Let's just call this "default" streaming for now. Fixes #31
2017-03-10 20:35:09 +01:00
Lucas Bickel
0e8d0868e8 Make pypo media downloader port aware
This is needed if the base port is not 80 like in the vagrant setup.
2017-03-10 19:10:15 +01:00
Lucas Bickel
86ff6e8e12 Remove remainder of legacy doctrine code 2017-03-10 18:37:11 +01:00
Lucas Bickel
03c73065bf Add new fields to tests 2017-03-10 18:33:21 +01:00
Lucas Bickel
288473e4fc Run database upgrades when setting up tests 2017-03-10 18:27:11 +01:00
Lucas Bickel
2a53241ba3 Whitespace and deadcode nitpick 2017-03-10 16:27:46 +01:00
Lucas Bickel
6e50af344a Fix update.py script 2017-03-10 15:53:22 +01:00
Lucas Bickel
a7d25e1960 Register and reversion update, add downgrade 2017-03-10 15:49:36 +01:00
Robb Ebright
32a1a66378 Added AutoPlaylist Functionality to Show Scheduler enabling shows to have tracks added automatically. 2017-03-10 15:33:32 +01:00
Lucas Bickel
baa0f9ba77 Make CORS great again
This fixes CORS to work properly with most 2.5 api endpoints while keeping the JSONP format available.

* [x] return JSONP or JSON with proper CORS headers from API
* [x] Field in Genereal Preferences Form to configure CORS enabled URLs

See #17 for what triggered this refactor. I beleive this should make integrating the APIs on the client side trivial without mandating the use of JSONP.
2017-03-10 15:10:56 +01:00
Lucas Bickel
8ddc5867ac Add missing file
This was missing from d852db439e.
2017-03-10 12:32:45 +01:00
Lucas Bickel
d852db439e Add more vagrant docs
Complete with links to the usual tooling needed, some info on vagrant ssh and a small troubleshooting section.
2017-03-10 12:31:19 +01:00
Lucas Bickel
f80afc83c1 Fix default port 80 Listen case 2017-03-10 12:17:16 +01:00
Lucas Bickel
7b3275b449 Merge branch 'master' into feature/vagrant-install 2017-03-10 09:38:36 +01:00
Lucas Bickel
e3785e25f9 Merge pull request #52 from Robbt/fix-rabbitmq-ini-install
adding the default rabbitmq-analyzer.ini file to fix install script
2017-03-10 09:37:35 +01:00
Robb
be00c68ed0 Merge pull request #45 from radiorabe/feature/remove-pref-cache-in-mvc
completely remove deactivated cache
2017-03-09 20:37:42 -05:00
Robb Ebright
d46e961a5f adding the default rabbitmq-analyzer.ini file to fix install script 2017-03-09 15:57:11 -05:00
Robb
4e8e965dd1 Merge pull request #51 from radiorabe/feature/make-git-optional-during-install
Make git optional during build
2017-03-09 14:56:23 -05:00
Lucas Bickel
285ed854f6 Make git optional during build
Currently the installer fails when using a github tarball that comes without a .git folder (https://github.com/LibreTime/libretime/issues/47#issuecomment-285365745).

With this change build.sh only executes git if a .git folder is detected. It uses the name of the downloaded folder as part of the version string if a tarball is used.

I plan on releasing travis-ci built tarballs that contain the tagged version (once we have one) and also have a pre-downloaded composer vendor folder. Those will already contain a VERSION file as well and this change already contains the setup needed for that.
2017-03-09 16:12:44 +01:00
Robb
945998f836 Merge pull request #49 from radiorabe/feature/refactor-help-menu
Update naming and links in constants
2017-03-08 20:30:12 -05:00
Robb
0f909a9ec8 Merge pull request #48 from radiorabe/feature/systemstatus
re-implement /systemstatus
2017-03-08 20:29:12 -05:00