gh-32 Add `Creation Date (und-US)` to list of exif fields to read to support older versions of exiftool

This commit is contained in:
Jaisen Mathai 2016-04-12 01:40:48 -07:00
parent 5c3c87e1da
commit ca04d3ca48
No known key found for this signature in database
GPG Key ID: 054172834C952A76
2 changed files with 1 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Video(Media):
# If the time is not found in EXIF we update EXIF
seconds_since_epoch = min(os.path.getmtime(source), os.path.getctime(source)) # noqa
exif_data = self.get_exif()
for key in ['Creation Date', 'Media Create Date']:
for key in ['Creation Date', 'Creation Date \(und-US\)', 'Media Create Date']: # noqa
date = re.search('%s +: +([0-9: ]+)' % key, exif_data)
if(date is not None):
date_string = date.group(1)

View File

@ -52,7 +52,6 @@ def test_get_coordinate_longitude():
assert coordinate == -119.9558, coordinate
def test_get_date_taken():
raise SkipTest('gh-32 this test fails on travisci')
video = Video(helper.get_file('video.mov'))
date_taken = video.get_date_taken()