1
0
Fork 0
mirror of https://github.com/marty-oehme/scripts.git synced 2025-12-07 20:42:46 +00:00

adding support for .jpeg images

This commit is contained in:
Martokk 2018-07-17 07:44:54 -05:00 committed by GitHub
parent 3a6e18bc61
commit 0f67539004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ class File:
if self.ext == '.pdf':
self.type = 'pdf'
elif self.ext in ('.jpg', '.png', '.gif'):
elif self.ext in ('.jpg', '.jpeg', '.png', '.gif'):
self.type = 'image'
else:
self.type = 'other'