Update rip setup page with clearer UI and bug fixes
This commit is contained in:
@@ -8,9 +8,9 @@ $config = $main->config();
|
|||||||
$encoded_filename = null;
|
$encoded_filename = null;
|
||||||
if ($req->get('submit')) {
|
if ($req->get('submit')) {
|
||||||
$encoded_filename = HandBrakeCluster_Main::issetelse($_POST['id'], HandBrakeCluster_Exception_InvalidParameters);
|
$encoded_filename = HandBrakeCluster_Main::issetelse($_POST['id'], HandBrakeCluster_Exception_InvalidParameters);
|
||||||
|
|
||||||
// Create the jobs from the request
|
// Create the jobs from the request
|
||||||
$jobs = HandBrakeCluster_Job::fromPostRequest($_POST['id'], $_POST['rips']);
|
$jobs = HandBrakeCluster_Job::fromPostRequest($_POST['id'], $_POST['rip-options'], $_POST['rips']);
|
||||||
|
|
||||||
// Spawn the background client process to run all the jobs
|
// Spawn the background client process to run all the jobs
|
||||||
HandBrakeCluster_Job::runAllJobs();
|
HandBrakeCluster_Job::runAllJobs();
|
||||||
@@ -31,4 +31,4 @@ if ($req->get('submit')) {
|
|||||||
$this->smarty->assign('longest_title', $source->longestTitle());
|
$this->smarty->assign('longest_title', $source->longestTitle());
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -111,3 +111,8 @@ table#setup-rips input,select {
|
|||||||
#quantizer-slider {
|
#quantizer-slider {
|
||||||
width: 20em;
|
width: 20em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select.rip-streams {
|
||||||
|
width: 20em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="rip-audio-{$title->id()}">Audio tracks</label>
|
<label for="rip-audio-{$title->id()}">Audio tracks</label>
|
||||||
<select id="rip-audio-{$title->id()}" name="rips[{$title->id()}][audio][]" size="5" multiple="multiple">
|
<select id="rip-audio-{$title->id()}" name="rips[{$title->id()}][audio][]" size="5" multiple="multiple" class="rip-streams">
|
||||||
{foreach from=$title->audioTracks() item=audio}
|
{foreach from=$title->audioTracks() item=audio}
|
||||||
<option value="{$audio->id()}">{$audio->name()} - {$audio->channels()} ch ({$audio->language()}) </option>
|
<option value="{$audio->id()}">{$audio->name()} - {$audio->channels()} ch ({$audio->language()}) </option>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="rip-subtitle-{$title->id()}">Subtitle tracks</label>
|
<label for="rip-subtitle-{$title->id()}">Subtitle tracks</label>
|
||||||
<select id="rip-subtitle-{$title->id()}" name="rips[{$title->id()}][subtitles][]" size="5" multiple="multiple">
|
<select id="rip-subtitle-{$title->id()}" name="rips[{$title->id()}][subtitles][]" size="5" multiple="multiple" class="rip-streams">
|
||||||
{foreach from=$title->subtitleTracks() item=subtitle}
|
{foreach from=$title->subtitleTracks() item=subtitle}
|
||||||
<option value="{$subtitle->id()}">{$subtitle->language()}</option>
|
<option value="{$subtitle->id()}">{$subtitle->language()}</option>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
@@ -150,10 +150,10 @@
|
|||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
slide: function(event, ui) {
|
slide: function(event, ui) {
|
||||||
$("#output-quantizer").val(ui.value);
|
$("#global-quantizer").val(ui.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#output-quantizer").val($("#quantizer-slider").slider("value"));
|
$("#global-quantizer").val($("#quantizer-slider").slider("value"));
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/literal}
|
{/literal}
|
||||||
|
|||||||
Reference in New Issue
Block a user