Renamed the codebase to RippingCluster

Since the new design is engine agnostic, removed HandBrake from the
class names.
This commit is contained in:
2010-08-25 21:46:50 +01:00
parent 8c5e8f82c1
commit 89ddcba363
46 changed files with 266 additions and 266 deletions

View File

@@ -1,30 +1,30 @@
<?php
$main = HandBrakeCluster_Main::instance();
$main = RippingCluster_Main::instance();
$req = $main->request();
$config = $main->config();
// Grab the name of this source
$encoded_filename = null;
if ($req->get('submit')) {
$encoded_filename = HandBrakeCluster_Main::issetelse($_POST['id'], HandBrakeCluster_Exception_InvalidParameters);
$encoded_filename = RippingCluster_Main::issetelse($_POST['id'], RippingCluster_Exception_InvalidParameters);
// Create the jobs from the request
$jobs = HandBrakeCluster_Job::fromPostRequest($_POST['id'], $_POST['rip-options'], $_POST['rips']);
$jobs = RippingCluster_Job::fromPostRequest($_POST['id'], $_POST['rip-options'], $_POST['rips']);
// Spawn the background client process to run all the jobs
HandBrakeCluster_Job::runAllJobs();
RippingCluster_Job::runAllJobs();
HandBrakeCluster_Page::redirect('rips/setup-rip/queued');
RippingCluster_Page::redirect('rips/setup-rip/queued');
} elseif ($req->get('queued')) {
$this->smarty->assign('rips_submitted', true);
} else {
$this->smarty->assign('rips_submitted', false);
$encoded_filename = $req->get('id', HandBrakeCluster_Exception_InvalidParameters);
$encoded_filename = $req->get('id', RippingCluster_Exception_InvalidParameters);
$source = HandBrakeCluster_Rips_Source::loadEncoded($encoded_filename);
$source = RippingCluster_Rips_Source::loadEncoded($encoded_filename);
$this->smarty->assign('source', $source);
$this->smarty->assign('titles', $source->titles());

View File

@@ -1,10 +1,10 @@
<?php
$main = HandBrakeCluster_Main::instance();
$main = RippingCluster_Main::instance();
$req = $main->request();
$config = $main->config();
$source = HandBrakeCluster_Rips_Source::loadEncoded($req->get('id', HandBrakeCluster_Exception_InvalidParameters));
$source = RippingCluster_Rips_Source::loadEncoded($req->get('id', RippingCluster_Exception_InvalidParameters));
$this->smarty->assign('source', $source);
$this->smarty->assign('titles', $source->titles());

View File

@@ -1,14 +1,14 @@
<?php
$main = HandBrakeCluster_Main::instance();
$main = RippingCluster_Main::instance();
$config = $main->config();
$lister = new HandBrakeCluster_Rips_SourceLister($config->get('rips.source_dir'));
$lister = new RippingCluster_Rips_SourceLister($config->get('rips.source_dir'));
$sources = $lister->sources();
$sources_cached = array();
foreach ($sources as $source) {
$sources_cached[$source->filename()] = HandBrakeCluster_Rips_Source::isCached($source->filename());
$sources_cached[$source->filename()] = RippingCluster_Rips_Source::isCached($source->filename());
}
$this->smarty->assign('sources', $sources);