diff options
| author | Pascal Temel <[email protected]> | 2017-09-24 05:54:13 +0200 |
|---|---|---|
| committer | Pascal Temel <[email protected]> | 2017-09-24 05:54:13 +0200 |
| commit | b05dac674319196144c028929bb49d0a615c8cde (patch) | |
| tree | b1ac926cc835f6bd90735ae0055a24946bc13932 /routes | |
| parent | add wmv, avi and mov thumbnail support (diff) | |
| download | host.fuwn.me-b05dac674319196144c028929bb49d0a615c8cde.tar.xz host.fuwn.me-b05dac674319196144c028929bb49d0a615c8cde.zip | |
cleanup
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/album.js | 2 |
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' /* |