print "$cmd\n";
if(!defined $opt_k) {
foreach $video (@{$videos{$ext}{$video}}) {
- if(($save_originals) && ($video =~ /\.$originals_file_ext$/)) {
+ if(($save_originals) && ($video =~ /\.$originals_file_ext/)) {
print "-> Saving the original video $video\n";
print("mv $video \"$origpathname/".basename(dirname($video))."_".basename($video)."\n");
} else {
# Remove the individual video files
if(!defined $opt_k) {
foreach $srcvideo (@{$videos{$ext}{$video}}) {
- if(($save_originals) && ($srcvideo =~ /\.$originals_file_ext$/)) {
+ if(($save_originals) && ($srcvideo =~ /\.$originals_file_ext/)) {
print "-> Saving the original video $srcvideo to $origpathname\n";
system("mv $srcvideo \"$origpathname/".basename(dirname($srcvideo))."_".basename($srcvideo));
} else {