Commit Graph

2625 Commits

Author SHA1 Message Date
jo dad360255b Fix wildcard import 2021-06-08 14:24:32 +02:00
jo 6dee626cbd Migrate filemover_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 27090c8f2f Use requirements.txt and add pytest dependency
Requirements.txt is a developement deps list
2021-06-08 14:24:32 +02:00
jo b37a095414 Migrate playability_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo efcbd26447 Migrate replaygain_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 5ff923887d Migrate cuepoint_analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 591b62ebee Migrate analyzer_test to pytest 2021-06-08 14:24:32 +02:00
jo 0a9b0223a6 Replace deprecated .warn() with .warning() 2021-06-08 14:24:32 +02:00
jo 3522c3c86e Remove empty test file 2021-06-08 14:24:32 +02:00
Kyle Robbertze 8bbd0d608c
Merge pull request #1244 from jooola/api_client_pytest
Migrate api_clients tests to pytest
2021-06-08 14:19:31 +02:00
jo 8d9d1e43c5 Update CI to run api_clients pytest 2021-06-08 14:06:32 +02:00
jo ce976743e7 Remove daemon helper from analyzer
Let the system daemonize the process.
2021-06-08 00:31:18 +02:00
jo f944eca0a7 Migrate api_clients tests to pytest 2021-06-08 00:08:32 +02:00
jo 01fbd1e8b9 Add isort pre-commit hook
Sort import statement in python files

See https://github.com/PyCQA/isort
2021-06-05 00:39:35 +02:00
jo 1e1cf249f7 Search and replace unicode a0c2 with 0020 2021-06-05 00:39:35 +02:00
jo b26de72704 Remove python encoding pragma 2021-06-05 00:39:23 +02:00
jo 571b1a25ca Rename test_* to *_test in api_clients 2021-06-04 17:06:05 +02:00
jo 5eb357520e Rename tests to test in airtime_analyzer 2021-06-04 17:06:05 +02:00
jo 97fed1c18d Remove broken symlink 2021-06-04 17:06:05 +02:00
jo 0180fa0e49 Fix shebangs 2021-06-04 17:06:05 +02:00
jo f2e840989a Fix executable bit 2021-06-04 17:06:05 +02:00
jo 6871956baa Fix end of files 2021-06-04 17:06:05 +02:00
jo d8195f0fd8 Fix trailing whitespaces in files 2021-06-04 17:06:05 +02:00
jo c27f020d73 Format code using black 2021-06-04 17:06:05 +02:00
jo 65f7b41487 Fix spelling 2021-06-04 17:04:53 +02:00
jo ac17db97fc Fix missing encoding pragma on python files 2021-06-04 17:04:53 +02:00
Kyle Robbertze 027b3525b1 fix python 3.6 support in api_client v2
Closes: #1228
2021-06-04 10:55:54 +02:00
Kyle Robbertze e3564cc5e6 fix python format call 2021-06-02 09:02:37 +02:00
jo 391701f02f Fix unparsable python files 2021-05-27 15:23:34 +02:00
Robb cfec65c40a
Merge pull request #1125 from zklosko/gh-actions
Moving from Travis CI to Github Actions
2021-05-24 16:09:15 -04:00
Kyle Robbertze 6f6d90fad7 update replaygain values 2021-05-21 16:15:50 +02:00
Kyle Robbertze 7db2777d63 drop f-format string for python 3.5 compatibility 2021-05-21 15:09:47 +02:00
Kyle Robbertze 2df0189a90 add API v2 2021-05-14 13:04:46 +02:00
Kyle Robbertze 649468074b
Merge pull request #1174 from paddatrapper/fix/pypofile
fix: force_ssl logic in pypofile
2021-02-15 09:48:26 +02:00
Kyle Robbertze 5e080ce5e5
Merge pull request #1144 from hairmare/chore/pythonic-analyzer
refactor(airtime_analyzer): rename to libretime-analyzer and make entrypoint pythonic
2021-02-12 22:40:44 +02:00
Kyle Robbertze 3af17a6761 fix: force_ssl logic in pypofile 2021-02-10 16:34:42 +02:00
Jérôme Lebleu 298c5a9264 Fix missing 'fallback' kwarg for base_port in pypofile 2021-02-03 17:25:11 +01:00
Kyle Robbertze 90e5005c76
Merge pull request #1158 from hairmare/fix/remove-soundcloud
fix(soundcloud): remove broken integration
2021-01-24 23:09:30 +02:00
Kyle Robbertze 6b37b3dbab fully test set protocol 2021-01-22 22:13:31 +02:00
Kyle Robbertze 7cb34df4fa Use force_ssl in python apps
Fixes: #957
2021-01-21 09:49:55 +02:00
Lucas Bickel 4c72403b9b fix(soundcloud): remove broken integration 2021-01-06 12:40:30 +00:00
Lucas Bickel e21abf1bf1 refactor(airtime_analyzer): rename to libretime-analyzer and make entrypoint pythonic 2021-01-04 10:30:27 +00:00
Lucas Bickel 7788397304 fix(pypo): refactor liquidsoap entrypoint 2020-12-26 13:44:14 +01:00
Lucas Bickel 7aa95bf204 fix(pypo): install .liq files from subdirs 2020-12-26 13:24:49 +01:00
Lucas Bickel 42328b9277 feat(pypo): support liquidsoap 1.4 2020-12-24 23:22:58 +01:00
rjhelms 2160daea00 Fix replaygain_analyzer in Python 3.5
'text' argument was added in Python 3.7 as an alias of 'universal_newlines'. Using 'universal_newlines' works on Python 3.5/3.6 and should be forward-compatible.
2020-11-19 14:52:52 -05:00
Zachary Klosko a5023d031a pin PyGObject versions to distro provided packages
this prevents pip trying to build the pypi package and failing.
Fixes: #1107
2020-11-18 17:49:51 +02:00
Kyle Robbertze 4c0146db74 pin celery version until we can fix compatibility with celery 5 2020-08-28 12:47:01 +02:00
Jakub Skory 7058def9a8
Renamed template conf for liquidsoap and playout 2020-06-27 14:36:08 +02:00
Robb 16bff4ff9e
Merge pull request #1047 from paddatrapper/listener-stats
Correctly encode icecast admin credentials for listener stats
2020-05-23 09:43:52 -04:00
Kyle Robbertze afd3d7842b Rewrite Travis script to be modular
Fixes: #1039
2020-05-20 11:06:56 +02:00
Zachary Klosko 6540a34a9b Adding back scripts in /docs 2020-05-19 10:16:31 -04:00
Kyle Robbertze cf414239e2 Correctly encode icecast admin credentials for listener stats
Fixes: #1045
2020-05-18 16:49:19 +02:00
Kyle Robbertze c44346fe94 Rename all systemd, sysvinit and upstart files to libretime
Fixes: #516
2020-05-15 15:32:13 +02:00
Kyle Robbertze 9112f205e2 fix decode error 2020-05-04 22:42:42 +02:00
Kyle Robbertze e0e4d4c87f Ensure all json loads calls use strings 2020-05-04 13:25:36 +02:00
Kyle Robbertze cf3b9782ac fix legacy version check 2020-04-29 19:06:52 +02:00
Kyle Robbertze 6640e5624c move legacy script to python3 2020-04-29 19:06:52 +02:00
Keoni Mahelona 30d6db1e5e Make sure command calls python3 2020-04-29 19:06:52 +02:00
Keoni Mahelona 91996c91bc Remove double encode which caused webstream playout to break 2020-04-29 19:06:52 +02:00
Kyle Robbertze ca0d01b693 Fix mutagen to compatible versions 2020-04-29 19:06:52 +02:00
Keoni Mahelona d48e792922 Checking type of command to only encode if string. 2020-04-29 19:06:52 +02:00
Keoni Mahelona 348f8573c7 Add traceback so we can debug. 2020-04-29 19:06:52 +02:00
Keoni Mahelona 9724298f40 Use `utf-8` encoding. 2020-04-29 19:06:52 +02:00
Keoni Mahelona 0a9781d138 Added traceback so we can find the bug 2020-04-29 19:06:52 +02:00
Keoni Mahelona 0289f84111 Ok hopefully this is it. python3 requries a bytestring https://docs.python.org/3.7/library/telnetlib.html 2020-04-29 19:06:52 +02:00
Keoni Mahelona dd46b4c984 Remove .encode(). Not needed in python3 2020-04-29 19:06:52 +02:00
Keoni Mahelona 42a5937288 Updated other old tn.write() functions 2020-04-29 19:06:52 +02:00
Keoni Mahelona 1ac3f691b4 Fixed #968. Needed to send a byte string to telnet not a normal string. 2020-04-29 19:06:52 +02:00
Keoni Mahelona a643883d06 Set pika version to ~1.1.0 to prevent api updates from breaking code.
Updated message_listener for new version.
2020-04-29 19:06:52 +02:00
Keoni Mahelona 4a45225369 Suggest using `universal_newlines` as the alias `text` only works for python 3.7 and above.
Default python3 for example is 3.6 in Ubuntu Bionic and therefore liquidsoap fails with parameter `text`.
2020-04-29 19:06:52 +02:00
Kyle Robbertze 6ebb1fd555 more pypo fixes 2020-04-29 19:06:52 +02:00
Kyle Robbertze 3a8b1e207f deprecate media_monitor completely 2020-04-29 19:06:52 +02:00
Kyle Robbertze 5923dee839 Fix running apps 2020-04-29 19:06:52 +02:00
Kyle Robbertze e8a0783139 Fix tests 2020-04-29 19:06:52 +02:00
Kyle Robbertze 82042e8c69 fix test failures 2020-04-29 19:06:52 +02:00
Kyle Robbertze ea54493c21 add chaudum fixes 2020-04-29 19:05:35 +02:00
Kyle Robbertze 8346e89e99 install successfully using py3 2020-04-29 19:05:35 +02:00
Kyle Robbertze 81ad2fc705 do not be backwards compatible 2020-04-29 19:05:35 +02:00
Kyle Robbertze 9298ea7e05 airtime_analyzer: depend on rgain3 for py3 2020-04-29 19:05:35 +02:00
Kyle Robbertze 632ba9acfe convert print statements to py3 2020-04-29 19:05:35 +02:00
Kyle Robbertze 7a090e1bab
Merge pull request #987 from jeromelebleu/fix-logrotate
Fix postrotate command of airtime-liquidsoap
2020-04-18 10:53:52 +02:00
Jérôme Lebleu 39469d3f88 Use stop instead of kick to disconnect the source 2020-04-01 19:01:06 +02:00
Jérôme Lebleu a8194e95ea Fix postrotate command of airtime-liquidsoap 2020-03-25 17:55:22 +01:00
Keoni Mahelona 8edada6f3d Added extra mime type for flac file 2020-03-18 17:19:57 +13:00
Keoni Mahelona f6f536c749 Set mutagen~=1.43.0 until LibreTime moves to python3 2020-02-19 04:01:11 +00:00
Robb Ebright 0931ba842a add legacy script for liquidsoap 1.1.1 compatibility 2019-12-30 22:07:48 -05:00
Kyle Robbertze a572f275fc Update stream URLs to use LibreTime 2019-11-06 14:08:13 +02:00
Roberto Soto bf7659dfa0 fix heartbeat spelling 2019-11-04 13:05:57 -08:00
Roberto Soto 8a0f474075 use AMQP heartbeat feature 2019-11-04 11:02:40 -08:00
Roberto Soto 5b3c0cb1c8 Revert "raising the exception might kill pypopush thread"
This reverts commit 2afe01b3ddc94194101a4a2149116e27e0e115e5.
2019-11-04 11:02:39 -08:00
Roberto Soto cdf9f6f98e PypoMessageHandlers using a kombu Consumer solves MVC/Liquidsoap synchronization issues:
The real error was PypoMessageHandler wasn't consuming messages from RabbitMQ, thus schedules were only updated on PypoFetch time out.
Proably queue is in a stale state  because it didn't recover from a broken connection.
The issue is a SimpleQueue was being used, which's 'python-like' *get*  method apparently doesn't handle recovery.
Consumers are the way to go instead.
2019-11-04 11:02:39 -08:00
Roberto Soto 03c3cb02d8 raising the exception might kill pypopush thread
this is apparently the reason why schedules don't get pushed after a silence
producing desynchronization between the mvc and liquidsoap and cannot catch up until pypofetch times out.
(ON AIR turns off and there's a mess until the schedule is fetched. sometimes it even continues playing the wrong tune)
((logging inside the while True loop produces no output, probably it is locked on the queue?))
2019-11-04 11:02:39 -08:00
Kyle Robbertze 07a9ef4ba3
Merge pull request #854 from radiorabe/chore/py3-cleanup-for-celery
Python3 cleanup in airtime-celery package
2019-08-18 22:02:59 +02:00
Lucas Bickel 8bdc63dffb 🐛 (pypo) CentOS 7/Python 2.7.5 fix 2019-08-18 18:04:06 +02:00
Lucas Bickel 9bea08dc03 ♻️ (celery) python3 compat fixes 2019-08-18 17:45:48 +02:00
Lucas Bickel a3d6ea77e6 🐛 (pypo) disable fs block size based cache check 2019-07-29 20:19:54 +02:00
frecuencialibre c26e15fd70
Merge pull request #659 from Robbt/podcast-metadata-override
added track title and artist override for podcasts
2019-01-21 14:09:39 -06:00
Lucas Bickel a526a59ef4 ♻️ cleanup aac code
Removes unsupported codecs from our liquidsoap code
2019-01-20 15:37:21 +01:00
Robbt 8427d0a92a changed artist track to podcast title 2019-01-13 00:29:49 -05:00