Fix video thumbnails (#4095)

* Fix video thumbnails

* Fix import
This commit is contained in:
MeiMei
2019-02-02 23:30:34 +09:00
committed by syuilo
parent 2b0cb6d728
commit 84931003ea
2 changed files with 14 additions and 6 deletions

View File

@ -122,8 +122,6 @@ async function save(path: string, name: string, type: string, hash: string, size
} else if (type.startsWith('video/')) {
try {
thumbnail = await GenerateVideoThumbnail(path);
thumbnailExt = 'png';
thumbnailType = 'image/png';
} catch (e) {
console.log(`GenerateVideoThumbnail failed: ${e}`);
}