Commit Graph

19 Commits

Author SHA1 Message Date
jo 01141606fd libpq-dev is required for psycopg2 in production
This is a package for the API.
2021-08-31 16:07:29 +02:00
jo 18f9c81b74 Add dependencies manager
Used to generate list of packages dependencies
for different distributions, and should improve
dependencies management by having them in each project.
This tools should gather the reason why a dependency is present,
so one can remove it when unused.

Rename deps script to packages

Move installer/packages to scripts and write tests

Remove packages-list make target
2021-08-31 16:07:21 +02:00
Kyle Robbertze 4f765ebb2d remove debug statement 2021-08-12 10:08:38 +02:00
Kyle Robbertze 7e1be7b028 Truncate schedule items that run over the time of the containing show
Fixes: #1272
2021-08-12 10:08:38 +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 b26de72704 Remove python encoding pragma 2021-06-05 00:39:23 +02:00
jo ced4fea3e1 Fix libretime-api 2021-06-04 17:06:05 +02:00
jo 5e9f99ed7e More spelling fix (dangerous) 2021-06-04 17:06:05 +02:00
jo f2e840989a Fix executable bit 2021-06-04 17:06:05 +02:00
jo c27f020d73 Format code using black 2021-06-04 17:06:05 +02:00
jo efe4fa027e Format code using prettier 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 2df0189a90 add API v2 2021-05-14 13:04:46 +02:00
paul.baranowski edd7351b76 Removed the API directory, all of it has been moved to application/controllers/ApiController.php 2010-12-15 14:25:42 -05:00
paul.baranowski 3613812012 Pypo fixes and improvements
General:
 * Moved pypo author info into one file
 * Added two database columns in schedule table: "schedule_group_played"
   and "media_item_played".

API clients:
 * Created get_liquidsoap_data() function which allows you
   to give arbitrary data to liquidsoap.
 * Added documentation
 * Renamed functions to make it more obvious what is happening

pypo_cli:
 * Got rid of more constants that were not needed
 * Created function set_export_source() to reduce code repetition
 * Separated the downloading of the schedule from tracking what has
   been played.  The tracking info is now kept in a separate file.
   This fixes the major bug that the playlist keeps restarting for
   the first minute of playback.
 * converted more print statements to debug statements

pypoTester:
 * Now uses samples from the audio_samples directory, and schedules two
   audio clips back-to-back.
2010-11-29 18:34:22 -05:00
paul.baranowski 7ade83ae74 Fixes to the liquidsoap scheduler and the API.
Added a test() function to api_client.
Fixed bug with the config file.
Added line numbers to the logging.
2010-11-18 18:00:13 -05:00
paul.baranowski 8014f94c58 Fixed whitespace to standard coding conventions. 2010-11-18 14:39:03 -05:00
paul.baranowski 8a58df3093 Moved all file-related functions from BasicStor into StoredFile class.
Got rid of all the stuff related to GUNID hex-to-int conversion.
Commented out lots of functions that are either not in use or will
no longer work.

Pypo: made things more generic and pluggable, added documentation.
Added the PHP scripts to serve the right info back to pypo.
2010-11-12 17:07:01 -05:00
paul.baranowski 35dc3fd01f CC-1713 - New storage directory structure
Changed the GUNID to a 32 hex string (MD5 value), there is no more
conversion between hex strings and bigints in the database anymore.

Added added the file extension to the file name.

Stored the complete path to the file in the database.  This means that
linking doesnt need to create any files at all. (It used to create a
symlink to the file you were importing)

The structure and file naming should be fine - there are 4096 possibilities
for the first directory level, and even will a million files this is only
244 files per sub-directory.  The GUID is fine for the file name
2010-11-11 16:50:30 -05:00