Reduce long line.
This commit is contained in:
parent
ea7f7d5843
commit
c6873fdcab
1 changed files with 5 additions and 1 deletions
|
@ -87,7 +87,11 @@ def _get_exif_datetime_pil(image):
|
|||
def _get_exif_datetime_exifread(path):
|
||||
path = pathclass.Path(path)
|
||||
exif = _exifread.process_file(path.open('rb'))
|
||||
exif_date = exif.get('EXIF DateTimeOriginal') or exif.get('Image DateTime') or exif.get('EXIF DateTimeDigitized')
|
||||
exif_date = (
|
||||
exif.get('EXIF DateTimeOriginal') or
|
||||
exif.get('Image DateTime') or
|
||||
exif.get('EXIF DateTimeDigitized')
|
||||
)
|
||||
if not exif_date:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue