disable webm functionality
This commit is contained in:
@@ -76,7 +76,7 @@ def _ffmpeg_enabled():
|
||||
def find_files(dir):
|
||||
# Only process formats that Synology doesn't handle well
|
||||
# Exclude common images (jpg, png, gif, etc.) since NAS handles them fine
|
||||
valid_exts = ('mp4', 'webm', 'avi', 'mkv', 'mov', 'wmv', 'flv', 'm4v', 'ts',
|
||||
valid_exts = ('mp4', 'avi', 'mkv', 'mov', 'wmv', 'flv', 'm4v', 'ts',
|
||||
'psd', 'blend')
|
||||
valid_exts_re = "|".join(
|
||||
map((lambda ext: ".*\\.{0}$".format(ext)), valid_exts))
|
||||
@@ -110,7 +110,7 @@ def process_file(file_path):
|
||||
# Determine file type and process accordingly
|
||||
file_ext = os.path.splitext(filename)[1].lower()
|
||||
|
||||
if file_ext in ['.mp4', '.webm', '.avi', '.mkv', '.mov', '.wmv', '.flv', '.m4v', '.ts']:
|
||||
if file_ext in ['.mp4', '.avi', '.mkv', '.mov', '.wmv', '.flv', '.m4v', '.ts']:
|
||||
create_video_thumbnails(file_path, thumb_dir)
|
||||
elif file_ext in ['.psd']:
|
||||
create_psd_thumbnails(file_path, thumb_dir)
|
||||
|
||||
Reference in New Issue
Block a user