projects
/
videoscripts
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major rewrite of video import scripts to handle videos from any device
[videoscripts/.git]
/
organize_videos
diff --git
a/organize_videos
b/organize_videos
index 34fd2e6b66cbcc67ac36b0744905bd375fd77a0c..ea92012c51530c08b07c53a0a76e52a630337a34 100755
(executable)
--- a/
organize_videos
+++ b/
organize_videos
@@
-67,6
+67,7
@@
sub usage {
print " -d <dir> directory to recreate the playlists in. Only needed if -p option is given\n";
return 1;
}
print " -d <dir> directory to recreate the playlists in. Only needed if -p option is given\n";
return 1;
}
+$SIG{'INT'} = sub {die "-E- Killed by CTRL-C\n"};
sub is_folder_empty {
my $dirname = shift;
sub is_folder_empty {
my $dirname = shift;
@@
-233,7
+234,6
@@
foreach $file (`$find_mkv`) {
}
$dstfile = "$newfile.$ext";
}
$dstfile = "$newfile.$ext";
-
if(defined $opt_t) {
print "-> Moving \"$srcdir/$srcfile\" to \"$dstfile\"\n";
} else {
if(defined $opt_t) {
print "-> Moving \"$srcdir/$srcfile\" to \"$dstfile\"\n";
} else {