Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birk
madek-broadcaster
Commits
bdb95f64
Commit
bdb95f64
authored
Mar 30, 2017
by
birk
Browse files
added epub to types
parent
e7abd7c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
player/content/mediaentry.py
View file @
bdb95f64
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment