Commit graph

46 commits

Author SHA1 Message Date
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
Daniel James
3e84ec1132 Fixed more out of date references to Campware and LiveSupport 2010-11-29 16:20:17 +00:00
paul.baranowski
10caa36c70 Added free audio samples from OpSound, removed old audio samples referring
to LiveSupport.  Added License information for the audio samples.

Added a working silence file.

Pypo:
Changed the Campcaster API client to ignore playlists that have already past.

Updated "cleanup()" function with Jonas fixes.

Cleanup up a lot of print statements, converted to debug statements.

Added missing data from the Campcaster JSON export.
2010-11-24 17:57:55 -05:00
paul.baranowski
8e7e0226e6 Fixed some API stuff to return the right values for pypo.
Created a test script to schedule a test file one minute after running it.
Moved the database connection initialization to conf.php instead of in
ui_conf.php.
Changed some includes to rely on the pear path instead of specifying it
directly in the include.  This will make it easier to use the system
defaults (for Ubuntu/Debian for example).
2010-11-23 19:21:05 -05:00
paul.baranowski
a643e4c755 Fixed all unit tests, they are all working now. 2010-11-19 15:51:58 -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
naomiaro
52fe579ce4 making propel use fieldnames not php names in playlist getcontents 2010-11-17 18:08:46 -05:00
paul.baranowski
31fd85a29f Fixed bug where the metadata was not loading correctly in StoredFile.
Added more descriptive titles to Playlist UnitTests.

Added a test to get that the media file clip length is set/get correctly.
2010-11-15 17:02:18 -05:00
paul.baranowski
228aca224e Got rid of function getAudioClipInfo(). 2010-11-15 16:35:55 -05:00
naomiaro
fa186be7a1 id variable change for metadata. 2010-11-15 16:16:15 -05:00
paul.baranowski
fc8c964d52 Fixed StoredFile constructor to only load metadata when passing in an ID.
Added a test for StoredFile::loadMetadata().
2010-11-15 15:58:48 -05:00
naomiaro
eafd10a669 playlist tests, prob will work when file meta data is working. 2010-11-15 13:22:09 -05:00
naomiaro
65a823561d Merge branch 'master' of dev.sourcefabric.org:campcaster
Conflicts:
	backend/tests/PlaylistTests.php
2010-11-15 11:01:00 -05:00
naomiaro
5352d7d4ef test editing. 2010-11-15 10:52:45 -05:00
naomiaro
f1f8badd16 Playlist tests updated 2010-11-15 10:52:14 -05:00
paul.baranowski
351983c3c4 Merge branch 'master' of dev.sourcefabric.org:campcaster 2010-11-12 17:07:12 -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
naomiaro
d65cc390a5 DateTime stuff for PHP 5.3
ini_get('date.timezone') seems to not behave properly though... defaults to America/Toronto.
2010-11-12 11:02:27 -05:00
naomiaro
4022afa8b9 Merge branch 'master' of dev.sourcefabric.org:campcaster 2010-11-11 20:49:23 -05:00
naomiaro
e1b6ee8d46 propel changes for playlist. 2010-11-11 20:48:53 -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
paul.baranowski
3879d1c7d4 Fixed CleanStor.php script so that it works again, it was still set
to work in the old directory structure.
2010-11-11 13:22:04 -05:00
naomiaro
f7dc117417 subsecond getter/setter overrides. 2010-11-10 15:30:05 -05:00
naomiaro
d6caebe49a saving database row for fades... 2010-11-09 17:02:13 -05:00
naomiaro
fcea57f011 PL ORM changes, templates 2010-11-09 16:52:09 -05:00
naomiaro
1e0cba6a63 Merge branch 'master' of dev.sourcefabric.org:campcaster 2010-11-08 17:21:28 -05:00
naomiaro
9f79b1bf89 converting more of playlist.php to propel ORM. 2010-11-08 17:19:01 -05:00
paul.baranowski
4a055dde50 Started integration of pypo with Campcaster. Refactored pypo so that
it can work with either OBP or Campcaster.  Added the liquidsoap
binary.  Started to add the PHP API scripts to send the correct data
to pypo (those these are not pretty - all one-off scripts for each
API command). Added Zend to the default path.
2010-11-08 16:54:54 -05:00
naomiaro
f91af23cd7 default db connection 2010-11-04 17:53:55 -04:00
naomiaro
c4391eb287 putting default database connection info 2010-11-04 17:51:30 -04:00
naomiaro
842bda3e98 change made to match time data types. 2010-11-04 17:49:27 -04:00
naomiaro
0c74dc5a43 propel added as ORM for backend 2010-11-04 17:48:29 -04:00
naomiaro
5750f38343 fixing gui so playlists can again be scheduled, removed. 2010-10-19 04:58:48 -04:00
paul.baranowski
0f6b98ce14 There was a bug that install process would error out when trying to
install default data twice. Moved the data initialization from BasicStor
into the install.php file since nothing else was using it.
2010-10-18 11:40:03 +02:00
paul.baranowski
faee83440d Merge branch 'master' of dev.sourcefabric.org:campcaster 2010-10-04 17:00:40 -04:00
paul.baranowski
739801d180 CC-1024 Update installation/build for webapp-only
Moved more installation stuff into PHP.  For some reason it's having trouble
creating the cc_playlistcontents table.  Removed old installer files that
are no longer used.
2010-10-04 17:00:20 -04:00
naomiaro
6d12646517 test requires modified 2010-10-04 12:28:51 -04:00
paul.baranowski
4e73ed7e5a CC-1024 Update installation/build for webapp-only
CC-1695  	 Remove Campcaster Studio and make install easier

Removed unused files.
Updated version number.
Fixed some path names.
2010-10-01 18:17:16 -04:00
paul.baranowski
8721b6e688 CC-1695 Remove Campcaster Studio and make install easier
Got rid of more unneeded files.
2010-09-30 17:31:21 -04:00
paul.baranowski
70bf3d6f1c CC-1695 Remove Campcaster Studio and make install easier
Fixed include paths for install.
2010-09-30 17:09:50 -04:00
paul.baranowski
2ece374513 CC-1695 Remove Campcaster Studio and make install easier
Fixed references to files for new directory structure for the backend stuff.
2010-09-30 16:59:38 -04:00
paul.baranowski
fe724b7814 CC-1695 Remove Campcaster Studio and make install easier
Put the conf.php at the top level.
2010-09-30 16:08:35 -04:00
paul.baranowski
356407f66a CC-1695 Remove Campcaster Studio and make install easier
Moved install directory
2010-09-30 16:03:24 -04:00
paul.baranowski
e946e6a84e CC-1695 Remove Campcaster Studio and make install easier
Changed backend dir to new structure
2010-09-30 16:02:15 -04:00
paul.baranowski
81d499060b CC-1695 Remove Campcaster Studio and make install easier 2010-09-30 15:46:44 -04:00