diff --git a/src/_h5ai/conf/options.json b/src/_h5ai/conf/options.json index 18407dd4..6ac2af73 100644 --- a/src/_h5ai/conf/options.json +++ b/src/_h5ai/conf/options.json @@ -262,7 +262,7 @@ Options */ "preview-vid": { "enabled": true, - "types": ["vid"] + "types": ["vid-avi", "vid-flv", "vid-mkv", "vid-mov", "vid-mp4", "vid-mpg", "vid-webm"] }, /* @@ -325,8 +325,8 @@ Options */ "thumbnails": { "enabled": true, - "img": ["img", "img-bmp", "img-gif", "img-ico", "img-jpg", "img-png"], - "mov": ["vid"], + "img": ["img-bmp", "img-gif", "img-ico", "img-jpg", "img-png"], + "mov": ["vid-avi", "vid-flv", "vid-mkv", "vid-mov", "vid-mp4", "vid-mpg", "vid-webm"], "doc": ["x-pdf", "x-ps"], "delay": 1, "size": 96, diff --git a/src/_h5ai/conf/types.json b/src/_h5ai/conf/types.json index 2dc198a7..b1606742 100644 --- a/src/_h5ai/conf/types.json +++ b/src/_h5ai/conf/types.json @@ -57,7 +57,19 @@ File types mapped to file extensions "txt-tex": ["*.tex"], "txt-vcal": ["*.vcal"], "txt-xml": ["*.xml"], - "vid": ["*.avi", "*.flv", "*.mkv", "*.mov", "*.m4v", "*.mp4", "*.mpg", "*.rm", "*.swf", "*.ts", "*.vob", "*.webm", "*.wmv"], + "vid": [], + "vid-avi": ["*.avi"], + "vid-flv": ["*.flv"], + "vid-mkv": ["*.mkv"], + "vid-mov": ["*.mov"], + "vid-mp4": ["*.mp4", "*.m4v"], + "vid-mpg": ["*.mpg"], + "vid-rm": ["*.rm"], + "vid-swf": ["*.swf"], + "vid-ts": ["*.ts"], + "vid-vob": ["*.vob"], + "vid-webm": ["*.webm"], + "vid-wmv": ["*.wmv"], "x": [], "x-calc": ["*.ods", "*.ots", "*.xlr", "*.xls", "*.xlsx"], "x-doc": ["*.doc", "*.docx", "*.odm", "*.odt", "*.ott"],