Fixbug not metadata
This commit is contained in:
parent
b9972136bf
commit
81eb14efd4
@ -14,7 +14,7 @@ def get_date_created(filename):
|
|||||||
image = Image.open(filename)
|
image = Image.open(filename)
|
||||||
image.verify()
|
image.verify()
|
||||||
# Format date d/m/Y
|
# Format date d/m/Y
|
||||||
if image._getexif()[36867]:
|
if image._getexif() is not None and '36867' in image._getexif():
|
||||||
# Metadata
|
# Metadata
|
||||||
return time.strftime('%d/%m/%Y', datetime.datetime.strptime(image._getexif()[36867], "%Y:%m:%d %H:%M:%S").timetuple())
|
return time.strftime('%d/%m/%Y', datetime.datetime.strptime(image._getexif()[36867], "%Y:%m:%d %H:%M:%S").timetuple())
|
||||||
else:
|
else:
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
setup(
|
setup(
|
||||||
name = 'Organize-my-photos',
|
name = 'Organize-my-photos',
|
||||||
py_modules=['organize_my_photos'],
|
py_modules=['organize_my_photos'],
|
||||||
version = '1.0.3',
|
version = '1.0.4',
|
||||||
python_requires='>3.6',
|
python_requires='>3.6',
|
||||||
description = 'Terminal program that organizes and organizes the photographs in folders by year, month and day.',
|
description = 'Terminal program that organizes and organizes the photographs in folders by year, month and day.',
|
||||||
author = 'Andros Fenollosa',
|
author = 'Andros Fenollosa',
|
||||||
|
Loading…
Reference in New Issue
Block a user