diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-21 19:23:07 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-21 19:23:07 -0700 |
commit | 89a4cf583d0f9cbfc660ff740e71f4a69b68c914 (patch) | |
tree | fbaf5c5b75295cf0d852e2429c71d58cd967f33e /bin/ifuse-photos-to-tmp | |
parent | 98bf51457d3745ce0a637521ffb41bbf4ee5ede9 (diff) | |
download | dotfiles-89a4cf583d0f9cbfc660ff740e71f4a69b68c914.tar.gz |
ifuse-photos-to-tmp: avoid trying to parse all-zeroes datetimes
Diffstat (limited to 'bin/ifuse-photos-to-tmp')
-rwxr-xr-x | bin/ifuse-photos-to-tmp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ifuse-photos-to-tmp b/bin/ifuse-photos-to-tmp index d7e6c6fb..8dee9692 100755 --- a/bin/ifuse-photos-to-tmp +++ b/bin/ifuse-photos-to-tmp @@ -74,18 +74,22 @@ find(sub { } }; if (exists $info->{FileType} && exists $info->{CreateDate} + && $info->{CreateDate} ne "0000:00:00 00:00:00" && $info->{FileType} eq "JPEG") { $ext = "jpg"; $try_apple_exif->("CreateDate"); } elsif (exists $info->{FileType} && exists $info->{DateCreated} + && $info->{DateCreated} ne "0000:00:00 00:00:00" && $info->{FileType} eq "PNG") { $ext = "png"; $try_apple_exif->("DateCreated"); } elsif (exists $info->{FileType} && exists $info->{MediaCreateDate} + && $info->{MediaCreateDate} ne "0000:00:00 00:00:00" && $info->{FileType} eq "MOV") { $ext = "mov"; $try_apple_exif->("MediaCreateDate"); } elsif (exists $info->{FileType} && exists $info->{CreateDate} + && $info->{CreateDate} ne "0000:00:00 00:00:00" && $info->{FileType} eq "MOV") { $ext = "mov"; $try_apple_exif->("CreateDate"); |