Skip to content

Commit

Permalink
Add 3gp to the list of supported video formats (fix #226)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimn committed Jan 3, 2017
1 parent 7b65233 commit 1f63429
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sigal/gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class Video(Media):
"""Gather all informations on a video file."""

type = 'video'
extensions = ('.mov', '.avi', '.mp4', '.webm', '.ogv')
extensions = ('.mov', '.avi', '.mp4', '.webm', '.ogv', '.3gp')

def __init__(self, filename, path, settings):
super(Video, self).__init__(filename, path, settings)
Expand Down
2 changes: 1 addition & 1 deletion sigal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_thumb(settings, filename):
name, ext = os.path.splitext(filen)

# FIXME: replace this list with Video.extensions
if ext.lower() in ('.mov', '.avi', '.mp4', '.webm', '.ogv'):
if ext.lower() in ('.mov', '.avi', '.mp4', '.webm', '.ogv', '.3gp'):
ext = '.jpg'
return join(path, settings['thumb_dir'], settings['thumb_prefix'] +
name + settings['thumb_suffix'] + ext)
Expand Down

0 comments on commit 1f63429

Please sign in to comment.