Files
handbrake-cluster-webui/worker/handbrake-cluster-worker.php

19 lines
396 B
PHP

<?php
define('HBC_File', 'worker');
require_once '../config.php';
require_once HandBrakeCluster_Lib . 'HandBrakeCluster/Main.class.php';
try {
$main = HandBrakeCluster_Main::instance();
$smarty = $main->smarty();
$worker = new HandBrakeCluster_Worker();
$worker->start();
} catch (HandBrakeCluster_Exception $e) {
die("Uncaught Exception: " . $e->getMessage());
}
?>