Commit Graph

96 Commits

Author SHA1 Message Date
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
f05ceada23 Updated Job to use new plugins. Fixed strict warnings.
Updated Job to contain and correctly pass references to source and rip
plugins.
Fixed strict warnings relating to unquoted array keys.
2010-08-30 21:29:17 +01:00
4040f1cbd8 Deleting renamed file from botched commit 2010-08-30 21:28:01 +01:00
30adbc7e47 Fixed bugs with time calculation and URL redirects
Fixed incorrect time calculations present on the job status page.
Fixed strict bug with URL redirections accessing the wrong _SERVER var.
2010-08-30 21:26:43 +01:00
df34b9718a Added missing exception from earlier commit 2010-08-30 21:26:21 +01:00
ce7bc8dad3 Fixed bugs with progress and failure
Worker correctly reports status updates.
Worker reports failure if HandBrake bails out.
2010-08-30 21:24:32 +01:00
dc60502e00 Removed debug messages 2010-08-30 21:23:42 +01:00
4e59b22f3a Fixed bugs with task runner classes
Fixed strict errors in foreground and background task classes.
2010-08-30 21:01:28 +01:00
de04fb5978 Updated Worker Plugin interface
Added init and name methods, which will be common to all Plugins.
Removed HandBrake specific methods.
2010-08-25 22:36:17 +01:00
89ddcba363 Renamed the codebase to RippingCluster
Since the new design is engine agnostic, removed HandBrake from the
class names.
2010-08-25 21:46:50 +01:00
8c5e8f82c1 Updated DVD Source to use ForegroundTask
DVD Source code was previously using proc_open to manually run
HandBrake. This has been replaced using the ForegroundTask class to
simplify the code.
2010-08-24 21:27:53 +01:00
40fa00c034 Update worker code to the point that it can run.
Added plugin architecture for Worker functions, to support multiple
ripping engines.
Update worker script to use the new code.
Update Logger to output messages to console when running under the
worker script.
2010-08-22 23:05:33 +01:00
853c380e65 Update run-jobs dispatcher to use shared library. 2010-08-22 23:04:40 +01:00
32760b5621 Only display summaries of jobs on home page. 2010-08-22 23:04:11 +01:00
5ee6f027c3 Fixed bug in define name
Fixed HBC_File define name.
2010-08-22 23:03:44 +01:00
fbddd4425b Use client logging table for run-jobs dispatcher 2010-08-22 23:03:00 +01:00
0df1d96cdc Fixed bugs in JobStatus which prevented updates.
Fixed unquoted string bugs.
2010-08-22 23:01:58 +01:00
d6c2c1b9b3 Added optional limits to Job Lists and hid dummy
Added optional limit to the number of jobs retrieved for a given status.
Added conditions to hide a dummy job used to keep the database
consistent when logging client-side info not tied to a specific job.
2010-08-22 22:59:49 +01:00
0ca5a716d6 Updated SourceLister to use DvdDirectoryIterator
Greatly simplified the code to list DVD source directories using
iterator class.
2010-08-22 22:58:31 +01:00
3c9129657d Fixed bugs in ForegroundTask runner
Fixed bugs and tidied code.
2010-08-22 22:57:49 +01:00
9d244ce5ed Added utility file iterator filters
Added SPL iterator filters to quickly and easily list visible files,
class files, and DVD source directories.
2010-08-22 22:56:44 +01:00
83bb33c5e4 WIP new Worker class and worker shell script 2010-08-14 18:24:49 +01:00
474cfb2853 Updated logging to support multiple tables 2010-08-14 18:24:15 +01:00
ca9abf66f5 Added ForegroundTask class
New class to run a command in the foreground, and process the stdout and
stderr output streams.
2010-08-14 18:22:53 +01:00
76f2c4790d Reorganised code layout
Separated class library and web interface code
Added a common config/database config to be referenced by all
subprojects

Fixed previous commit
2010-08-14 15:36:31 +01:00
5aa4bf11c7 Various UI improvements 2010-08-14 12:19:50 +01:00
a5282ebe5a Fix issue with input/ouput filenames
Current version of the worker script expects the input and output
filenames as whole strings not constituent parts. Altered the Job class
to pass the filenames in as the expected format.
2010-06-08 22:23:18 +01:00
65f2bbeb80 Update rip setup page with clearer UI and bug fixes 2010-06-08 21:26:18 +01:00
6b0017c5b8 Update database with rip progress
Changes the status to RUNNING when the task is queued in Gearman, and
updates the progress information each time gearman reports a status
update.
2010-06-08 21:23:42 +01:00
41e09ff440 Display rip progress on Job status page 2010-06-08 21:21:26 +01:00
04c95c6940 Added mtime support to Job Status object
Added a modified time column to the Job Status table and updated code to
match.
2010-06-08 21:18:32 +01:00
9cf50b9cfd Fixed bug in Job factory method
Factory method failed to return the newly created object. Fixed.
2010-06-08 21:16:49 +01:00
ca852d57d4 Added missing table row around heading cells 2010-06-08 18:07:22 +01:00
9881fb7cea Added UI for additional rip options 2010-06-08 18:04:14 +01:00
aba31daaa0 Fixed typo in exception class name 2010-04-26 23:40:32 +01:00
2f86156561 Updated source/rips and jobs pages to reflect code changes 2010-04-03 23:06:34 +01:00