Fixed some bugs found in re-testing
[videoscripts/.git] / organize_videos
index 4e1ad7ff95bd95c29ffb28cd442304680a820592..5625f8bcd927a0ca19830dadabf4155cafd255bd 100755 (executable)
@@ -197,7 +197,7 @@ foreach $file (`$find_cmd_with_mkv`) {
 
     # We are ready to pick a destination folder to put the video in
     $dstdir = $dstpathname . "/" . $year;
-    $dstdirs[$dstdir] = 1;
+    $dstdirs{$dstdir} = 1;
     $dstfile = $dstdir . "/" . $year . "-" . $monthnum . "-" . $day;
 
     # Check for duplicate filenames at the destination