From: Alan J. Pippin Date: Fri, 5 Aug 2016 05:34:25 +0000 (-0600) Subject: Fixed bug in not removing original video files when we should have X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%3C?a=commitdiff_plain;h=842f828ffa6bc307d04b027a904ec293922355ff;p=videoscripts%2F.git Fixed bug in not removing original video files when we should have --- diff --git a/merge_videos_by_day b/merge_videos_by_day index 42744fe..27f2e2b 100755 --- a/merge_videos_by_day +++ b/merge_videos_by_day @@ -194,7 +194,7 @@ foreach $ext (sort keys %videos) { 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 { @@ -216,7 +216,7 @@ foreach $ext (sort keys %videos) { # 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 {