Add support for mts video files with H264:DateTimeOriginal create date field support (#295)

This commit is contained in:
Vladimir Kuptsov 2019-01-24 03:04:02 +01:00 committed by Jaisen Mathai
parent 5b07386e2c
commit 086c26c198
1 changed files with 3 additions and 2 deletions

View File

@ -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 = [