Added identifiers to jobs
Updated config file to specify ids for jobs for progress and logging Added default_rip_options, which are copied to all rips without specified values Added an optional input/output_dir variables to prefix input/output_filename
This commit is contained in:
@@ -81,7 +81,7 @@ sub handbrake_rip {
|
||||
|
||||
# Generate a unique filename based on the output filename to prevent clashes from previous runs
|
||||
my $uuid = random_string('cccccc');
|
||||
$rip_options->{real_output_filename} = $rip_options->{output_filename};
|
||||
$rip_options->{real_output_filename} = $rip_options->{output_dir} . $rip_options->{output_filename};
|
||||
$rip_options->{real_output_filename} =~ s/\.([^\.]+)$/\.$uuid\.$1/;
|
||||
$response->{real_output_filename} = $rip_options->{real_output_filename};
|
||||
|
||||
@@ -196,6 +196,10 @@ sub get_options {
|
||||
my $option = shift;
|
||||
|
||||
switch ($option_name) {
|
||||
case 'input_filename' {
|
||||
return ('-i', $rip_options->{input_dir} . $rip_options->{input_filename});
|
||||
}
|
||||
|
||||
case 'title' {
|
||||
return ('-L') if ! defined($rip_options->{$option_name}) || $rip_options->{$option_name} < 0;
|
||||
return ('-t', $rip_options->{$option_name});
|
||||
|
||||
Reference in New Issue
Block a user