File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,31 @@ my %months = (
1818 ' October' => 10,
1919 ' November' => 11,
2020 ' December' => 12,
21+ ' ledna' => 1,
22+ ' února' => 2,
23+ ' března' => 3,
24+ ' dubna' => 4,
25+ ' května' => 5,
26+ ' června' => 6,
27+ ' července' => 7,
28+ ' srpna' => 8,
29+ ' září' => 9,
30+ ' října' => 10,
31+ ' listopadu' => 11,
32+ ' prosince' => 12,
2133);
2234
2335my @DIRS = sort grep { chop ; /.{2,}/ } ` gfind -type d` ;
2436
2537for my $dir (@DIRS ) {
2638
27- if ($dir !~ / ((?<name>.*), )?(?<day>\d +) (?<month>\w +) (?<year>\d +)/ ) {
39+ if ($dir =~ / ((?<name>.*), )?(?<day>\d +) (?<month>\w +) (?<year>\d +)/ ) {
40+
41+ }
42+ elsif ( $dir =~ / ((?<name>.*), )?(?<day>\d +)\. (?<month>\w +) (?<year>\d +)/ ) {
43+
44+ }
45+ else {
2846 print STDERR " -W|Directory '$dir ' not matching export format from Apple Photos!\n " ;
2947 next ;
3048 }
You can’t perform that action at this time.
0 commit comments