aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorKana <[email protected]>2017-10-01 20:18:42 -0300
committerGitHub <[email protected]>2017-10-01 20:18:42 -0300
commit50abd8bdc53fd0e584d879f279638ccc11300608 (patch)
treef4b4abdd6c3500779ba4e2fb1d059d955cbc8d14 /routes
parentDelete test (diff)
parentcleanup (diff)
downloadhost.fuwn.me-50abd8bdc53fd0e584d879f279638ccc11300608.tar.xz
host.fuwn.me-50abd8bdc53fd0e584d879f279638ccc11300608.zip
Merge pull request #53 from PascalTemel/improvement/AdditionalFileExtensions
Improvement: add .wmv, .avi and .mov thumbnail support
Diffstat (limited to 'routes')
-rw-r--r--routes/album.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/album.js b/routes/album.js
index 2c084b4..20ccc26 100644
--- a/routes/album.js
+++ b/routes/album.js
@@ -28,7 +28,7 @@ routes.get('/a/:identifier', (req, res, next) => {
file.file = basedomain + '/' + file.name
let ext = path.extname(file.name).toLowerCase()
- if (utils.extensions.includes(ext)) {
+ if (utils.imageExtensions.includes(ext) || utils.videoExtensions.includes(ext)) {
file.thumb = basedomain + '/thumbs/' + file.name.slice(0, -ext.length) + '.png'
/*