Commit Graph

28 Commits

Author SHA1 Message Date
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
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
817b4b6388 Updated job and source classes 2010-04-03 23:02:50 +01:00
539344ccd1 Updated Logger to use new database apis 2010-04-03 22:59:53 +01:00
85f488bdb5 Added update method to database class 2010-04-03 22:58:49 +01:00
df818037f2 Added class to handle running tasks in the background 2010-04-03 22:57:58 +01:00
b0c6302538 Added support for redirects in Page class 2010-04-03 22:57:15 +01:00
7632741d86 Added setup-rip page to configure new rip task
Added method to Source to identify the longest title in a source
2010-03-23 02:06:37 +00:00
ce8b93aad9 Added InvalidParameters exception
InvalidParameters exception to be used when a page should be aborted
because the parameters are malformed.
2010-03-23 01:58:22 +00:00
8caf48f53b Improved support for page parameters
The get method accepts a default value/exception to be thrown if the requested variable does not exist (similar semantics to HBC_Main::isset)
The last request string component is stripped if it is empty
The last request string variable is now given default value of true if no value is specified
2010-03-23 01:56:50 +00:00
ddbaf0022b Added isset method
Returns the first parameter if it is set, otherwise returns the default value
unless the default value is the name of a valid HBC Exception class, in which case an instance of that exception is thrown.
2010-03-23 01:54:42 +00:00
648968bcb7 Added caching to Sources
Added caching to Sources.
Updated the source browser to mark sources which are still cached
2010-03-21 23:22:29 +00:00
b166e125f5 Added cache specific exceptions.
Tidied up exception class hierarchy
2010-03-21 23:22:16 +00:00
a5b57b3f44 Added a simple cache implementation 2010-03-21 23:14:22 +00:00
50283e9a9b Implemented HBC parser to read all useful info about titles
Titles, chapters, audio and subtitle streams and metadata are now parsed from the handbrakecli output into title objects.
Source-details page now renders this info
2010-03-21 16:12:21 +00:00
0477d7363f Fixed bug where empty request string would fail 2010-03-21 13:30:38 +00:00
ed3ef8c01d Fixed call to handbrake, and printout of response
Added an ignore on 'lost+found' directories in the Source Lister, since
by default only root has access to this dir, which was causing
permission denied errors.
2010-03-21 03:43:47 +00:00
3207c28b5c Added Source class to parse HandBrake output
Added a Source class which executes HandBrake -t 0 to list the available titles and streams in a given source.
Added a placeholder on the source-details page to display HandBrake output
2010-03-21 03:21:08 +00:00
835609a2c9 Added source browser
Added a SourceLister class, which enumerates all DVD folders below a given starting directory.
Added a source browse page to list the available sources
2010-03-21 02:14:41 +00:00
48e596841a Fixed inheritence of HBC exception classes 2010-03-21 01:45:09 +00:00
86d8d65dd8 Improved request parser to support subdirectories
Leading components in the request string are checked to see if they match template subdirectories before looking for valid page names.
Index files are checked if the request string ends on a valid subdirectory
If no valid page is found within a subdirectory, the last name is rechecked to see if it was a valid page file
2010-03-21 01:35:48 +00:00
611182d09e Improved template handling with exceptions
The Page class is now responsible for executing the subpage template
rather than the index file.
Template processing has been improved with exceptions to catch 404s, or
any other template exception, which will abort the current page and
display an error document instead.
2010-03-21 00:39:53 +00:00
a9ebf6e0cb Core class updates
Improved database abstraction class to support insert and select queries
in various forms.
Added classes for pulling log entries back out of the database.
Updated Job class to describe a known job in the database, and added
JobStatus to track status updates on jobs.
Updated Config class to connect to the database, and load all settings
on startup.
Improved the class autoloader to support Exceptions in a single file as
a special case, and added this file.
2010-03-18 02:00:53 +00:00
3603445a5b Made the template code file optional
The template code file (stored in pages/) is no longer required
2010-03-17 02:54:17 +00:00
23a5590131 Job details page shows the job id, fixed bug
Job details page now shows the id number for the current job, reading it
from the URL using the RequestParser
Fixed a bug where if no query string was provided (index.php was
accessed directly) then a blank pagename was used (instead of 'home') and an
exception was thrown.
2010-03-17 02:49:57 +00:00
8db695166e Initial commit of HandBrakeCluster PHP framework
Replaced dodgy placeholder with a set of PHP classes for displaying a
HandBrake webui.
Current code uses Smarty as a templating engine, and includes an ugly
but functional set of pages.
The HandBrake classes are at present only placeholders, and offer no
real functionality.
Working class autoloader for the HandBrakeCluster_ hierarchy.
2010-03-17 02:29:12 +00:00