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:
parent
3a6e18bc61
commit
0f67539004
1 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ class File:
|
||||||
|
|
||||||
if self.ext == '.pdf':
|
if self.ext == '.pdf':
|
||||||
self.type = 'pdf'
|
self.type = 'pdf'
|
||||||
elif self.ext in ('.jpg', '.png', '.gif'):
|
elif self.ext in ('.jpg', '.jpeg', '.png', '.gif'):
|
||||||
self.type = 'image'
|
self.type = 'image'
|
||||||
else:
|
else:
|
||||||
self.type = 'other'
|
self.type = 'other'
|
||||||
|
|
@ -200,4 +200,4 @@ class File:
|
||||||
return ''.format('media/fileicons/' + os.path.basename(self.icon)) + ' ' + \
|
return ''.format('media/fileicons/' + os.path.basename(self.icon)) + ' ' + \
|
||||||
'[{}](file://{})'.format(self.title, link_path)
|
'[{}](file://{})'.format(self.title, link_path)
|
||||||
else:
|
else:
|
||||||
return '[{}](file://{})'.format(self.title, link_path)
|
return '[{}](file://{})'.format(self.title, link_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue