projects
/
videoscripts
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug in the way the suffix was being printed (added zero padding)
[videoscripts/.git]
/
organize_videos
diff --git
a/organize_videos
b/organize_videos
index 754ac28124e8c17079678527a77a204d28c295e9..d0c74586769bab09fd28677dd4187048db80d51d 100755
(executable)
--- a/
organize_videos
+++ b/
organize_videos
@@
-189,7
+189,7
@@
foreach $file (`$find_cmd`) {
$newfile = $dstfile . "." . $video_suffix;
if(-e "$newfile.$ext") {
foreach $i ($video_suffix+1 .. '999') {
$newfile = $dstfile . "." . $video_suffix;
if(-e "$newfile.$ext") {
foreach $i ($video_suffix+1 .. '999') {
- $newfile = $dstfile . "." .
$i
;
+ $newfile = $dstfile . "." .
sprintf("%03d",$i);
;
if(! -e "$newfile.$ext") { last; }
}
$dstfile = $newfile;
if(! -e "$newfile.$ext") { last; }
}
$dstfile = $newfile;