X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=organize_videos;fp=organize_videos;h=ef49df53054ec8a2dcbaf479d3dc121d09f19dfa;hb=64702de206d3356a3d80acf75b572bd9c31c86d9;hp=f666e84f0eb56660e2b8bea198d5824d161253bf;hpb=c99a50a0fd63d9bb9eb0fa9d1232366e9e2d444f;p=videoscripts%2F.git diff --git a/organize_videos b/organize_videos index f666e84..ef49df5 100755 --- a/organize_videos +++ b/organize_videos @@ -190,6 +190,14 @@ foreach $file (`$find_cmd_with_mkv`) { $monthnum = $month; $monthname = lc($month2monthname{$month}); } + # Get the date taken from the source directory + elsif($srcdir =~ /(\d+)-(\d+)-(\d+)/) { + $year = $1; + $month = $2; + $day = sprintf("%02d",$3); + $monthnum = $month; + $monthname = lc($month2monthname{$month}); + } # Get the date taken from the modification time elsif($date_taken =~ /\S+\s+(\S+)\s+(\d+)\s+\S+\s+(\d+)/) { $year = $3;