From 0f6753900423a1d29b41ab9f577adabb4da30cc0 Mon Sep 17 00:00:00 2001 From: Martokk Date: Tue, 17 Jul 2018 07:44:54 -0500 Subject: [PATCH] adding support for .jpeg images --- inbox/md_link.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inbox/md_link.py b/inbox/md_link.py index a752c8d..889481c 100644 --- a/inbox/md_link.py +++ b/inbox/md_link.py @@ -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' @@ -200,4 +200,4 @@ class File: return '![](file://{})'.format('media/fileicons/' + os.path.basename(self.icon)) + ' ' + \ '[{}](file://{})'.format(self.title, link_path) else: - return '[{}](file://{})'.format(self.title, link_path) \ No newline at end of file + return '[{}](file://{})'.format(self.title, link_path)