From 086c26c19803ddeb0a905b02a974d9c067cc65e9 Mon Sep 17 00:00:00 2001 From: Vladimir Kuptsov Date: Thu, 24 Jan 2019 03:04:02 +0100 Subject: [PATCH] Add support for mts video files with H264:DateTimeOriginal create date field support (#295) --- elodie/media/video.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elodie/media/video.py b/elodie/media/video.py index 72065fa..87df92e 100644 --- a/elodie/media/video.py +++ b/elodie/media/video.py @@ -28,14 +28,15 @@ class Video(Media): __name__ = 'Video' #: Valid extensions for video files. - extensions = ('avi', 'm4v', 'mov', 'mp4', 'mpg', 'mpeg', '3gp') + extensions = ('avi', 'm4v', 'mov', 'mp4', 'mpg', 'mpeg', '3gp', 'mts') def __init__(self, source=None): super(Video, self).__init__(source) self.exif_map['date_taken'] = [ 'QuickTime:CreationDate', 'QuickTime:CreationDate-und-US', - 'QuickTime:MediaCreateDate' + 'QuickTime:MediaCreateDate', + 'H264:DateTimeOriginal' ] self.title_key = 'XMP:DisplayName' self.latitude_keys = [