Commit bdb95f64 authored by birk's avatar birk
Browse files

added epub to types

parent e7abd7c1
......@@ -240,7 +240,7 @@ class MediaFileData():
image_extensions = ['.jpg', '.jpeg', '.tif', '.tiff', '.png', '.bmp', '.gif', '.psd']
video_extensions = ['.mov', '.mkv', '.mp4', '.avi', '.mpg', '.mpeg', '.3pg', '.vob']
sound_extensions = ['.aif', '.aiff', '.wav', '.mp3', '.m4a', '.aac']
document_extensions = ['.pdf', '.doc', '.docx', '.txt', '.ai']
document_extensions = ['.pdf', '.doc', '.docx', '.txt', '.ai', '.epub']
filename, file_extension = os.path.splitext(self.filename)
if file_extension.lower() in image_extensions:
return MediaEntryData.IMAGE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment