231 Commits

Author SHA1 Message Date
5adf9170c4 Merge branch 'master' of git+ssh://git.sihnon.net/home/git/public/handbrake-cluster-webui release-0.1 2011-04-25 14:16:43 +01:00
ce94762905 Bug fix: undefined variable when rip progress is 0% 2011-04-25 14:05:33 +01:00
72be6d6e5f Bug fixes
1) Quoted barewords in array construction
2) Added order by clause to all() to provide consistent ordering
2011-04-25 01:52:56 +01:00
5a5c3438c1 Updated client side logging and attempt to include proper job_id 2011-04-25 01:19:18 +01:00
c0702aa98e Bug fix: typoed variable name
Caused broken javascript on rip page
2011-04-25 01:18:41 +01:00
4e58ac7135 Updated code to use new WorkerLogEntry class 2011-04-25 00:54:28 +01:00
180e63c456 Bug fixes
1) full path to run-jobs.php to ensure script is runnable
2) reordering of allWithStatus to ensure consistent results
2011-04-25 00:50:22 +01:00
9be81f92f4 Updated subclassing of Client/Worker LogEntry classes 2011-04-25 00:49:09 +01:00
a459ba283a Updated status information on home page 2011-04-25 00:48:02 +01:00
4e7a5d189a Bug fix in source deletion 2011-04-25 00:47:30 +01:00
bdfa91f9b0 Updated worker to use new logging code 2011-04-24 21:18:22 +01:00
9ec2df1f18 Bug fix: incorrect parameters to log retrieval calls 2011-04-24 11:10:07 +01:00
dbaf4968ab Updated code to use new Logging code in sihnon lib 2011-04-24 10:40:14 +01:00
b896877591 fix call to Gearman_Job::complete() 2011-04-22 00:49:32 +01:00
da263a23b7 Fixed bug with worker plugin scanning 2011-04-22 00:40:38 +01:00
edc717ef68 Bug fixes 2011-04-22 00:26:30 +01:00
d3fe08d40f Massive refactor to use SihnonFramework and PEAR's Net_Gearman 2011-04-21 23:31:21 +01:00
fa7b54b861 Add option to delete sources with support in all three backends 2010-11-19 22:24:12 +00:00
73e42a42b1 Update BackgroundTask to use same cwd for spawned process 2010-11-19 21:12:18 +00:00
7c175bb608 Merge branch 'feature-mkv-plugins'; commit 'HEAD^' 2010-10-12 19:30:27 +01:00
697002dddb Merge branch 'feature-bluray' 2010-10-12 19:26:57 +01:00
7ffccb851c WIP parser for mkvinfo output 2010-10-12 19:13:21 +01:00
8f88fba0ca Added set accessors to Source objects
For Source plugins that can't parse all the required information before
creating the object, set accessors are needed to populate the
information afterwards.
2010-10-12 19:06:27 +01:00
ec4cc8dad4 Removes obsolete status callback from gearman client
Status callback function was previously removed from run-jobs, but the
callback was still being registered. This change removes the
registration to prevent a warning.
2010-09-25 17:11:47 +01:00
d87c924b14 Merge branch 'master', remote branch 'origin' 2010-09-24 20:10:09 +01:00
14c6d51564 Merge branch 'master' of git+ssh://git.sihnon.net/home/git/public/handbrake-cluster-webui into feature-mkv-plugins 2010-09-24 20:08:07 +01:00
2ef47de25c Added MKV source/worker plugins, tidied sources page
Added placeholder for source plugin to read from an existing mkv file.
Added corresponding worker placeholder to transcode an mkv file using
ffmpeg.
Updated the sources page to show which sources come from which plugins.
2010-09-24 20:05:37 +01:00
9cae5046dc Fixes bug with incorrect exception name
Updates the name of the exception thrown when a database connection
cannot be established, to match with the defined exception class name.
2010-09-18 13:13:31 +01:00
3977dc6038 Fixes bug with undefined class member
HandBrake Worker plugin was a gearman_job member that was not actually
defined by the class. Added the definition to resolve the problem.
2010-09-16 23:49:01 +01:00
cdae2c0f1f Adds phpdoc for Bluray plugins 2010-09-16 23:48:28 +01:00
f9de80a8b4 Fixes detection of Bluray source directories
Fixes the classname of the BlurayDirectoryIterator filter.
Updates the filter to accept only directories that contain a BDAV/BDMV
subdirectory, similar to the VIDEO_TS directory found in DVD sources.
2010-09-16 23:40:53 +01:00
d464dd74c5 Merge branch 'feature-config-datatypes' 2010-09-16 23:18:45 +01:00
1e745a37b7 Adds support for multiple directories to Source plugins
Adds the capability for the HandBrake and Bluray source plugins to look
for sources in multiple directories using the new features of the config
class to support string lists.
2010-09-16 23:16:12 +01:00
45b97e2d5d Adds datatype support to the Config class
The config class now supports a type column in the database which
specifies how the value should be interpreted. The class defines a
number of scalar types, which are returned without transformation. A
string list type is also defined, which splits the value into an array
based on newlines.

Also added phpdoc comments to all class constants, members and methods.
2010-09-16 23:12:29 +01:00
e4071badd9 Adds support for lists returned by selectAssoc
The column values parameter to RippingCluster_Database::selectAssoc()
now accepts an array of columns instead of a single value. If a scalar
is provided, the value is returned as a simple associative array; if an
array is provided, the full list of columns requested is returned as a
nested associative array.
2010-09-16 23:05:46 +01:00
1c402a8aef Placeholders for Bluray rips
Added placeholder Source/Worker plugins for ripping Bluray items.
Added placeholder iterator filter to accept only Bluray sources while
iterating directory contents.
2010-09-15 22:57:38 +01:00
c3a0c23e5e Tidied plugin architecture.
Moved common default init/name methods to a base class, common to all
plugin types.
Added phpdoc comments to various plugin methods.
Updated HandBrake plugins to reflect core changes.
2010-09-15 22:55:18 +01:00
136756293b Improvements to Status Handling
Added link to jobs page to fix any issues caused by non-synchronised
time between webserver/worker machine leaving jobs permanently in the
running state.
Prevented the insertion of new status records unless the state is
actually being changed.
Made the HandBrake worker process write the status complete message
instead of the run-jobs dispatched, in case it crashes.
2010-09-04 18:37:10 +01:00
eb06e60f13 Fixed bug with error handling 2010-09-04 18:30:27 +01:00
98402da94d Delete cached items after the expiry is reached. 2010-09-01 20:41:59 +01:00
cf2da4a499 Update job status directly from the worker
Rather than proxying progress reports back to the client, the worker
will now directly update the database.
2010-09-01 20:16:34 +01:00
802fd308c1 Allow source object to be created even if dir doesn't exist
A job may remain in the database after the source dir has been deleted.
The source object has been changed to permit construction even if the
source it represents doesn't exist, but will throw an exception if any
requests are made of the object.
2010-09-01 20:15:22 +01:00
60ba21ac03 Pass job id with rip options to work around gearman limitation
The Perl version of gearman doesn't support passing the unique value to
the worker, so the job id is now passed in the workload request.
Also fixed a bug to ensure changes to job status are visible
immediately, rather than only on the next page load.
2010-09-01 20:07:05 +01:00
c769f40c2a Fixed bug in source listing introduced by code move 2010-08-30 22:51:34 +01:00
9f2d694265 Updates to pages to reflect lib code changes 2010-08-30 22:05:30 +01:00
22613e030e Adding Source class from earlier botched commit. 2010-08-30 22:03:49 +01:00
e57c89a8ca Added source plugin for handbrake 2010-08-30 22:02:40 +01:00
64d0dac973 Updated status reports of running jobs 2010-08-30 22:00:13 +01:00
d3301a2c82 Fixed strict bug 2010-08-30 21:58:49 +01:00
16fb478652 Moved enumeration of all sources to PluginFactory 2010-08-30 21:56:18 +01:00