This commit is contained in:
Flummi 2017-08-26 02:06:16 +02:00
parent d17032da30
commit 1ab84c48f6
2 changed files with 4 additions and 1 deletions

BIN
s/f0ck.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -108,7 +108,10 @@ self.generateThumbs = () => {
exec('ffmpegthumbnailer -i'+e.dest+' -s1024 -o'+thumbnail, (error) => { exec('ffmpegthumbnailer -i'+e.dest+' -s1024 -o'+thumbnail, (error) => {
if(error) { if(error) {
self.log('failed thumbnail for '+e.id+' ('+e.mime+')'); self.log('failed thumbnail for '+e.id+' ('+e.mime+')');
if(e.mime.match(/audio/i))
fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail
else
fs.copySync('./s/f0ck.png', thumbnail);
} }
else else
exec('convert '+thumbnail+' -resize "128x128^" -gravity center -crop 128x128+0+0 +repage '+thumbnail, (error) => { exec('convert '+thumbnail+' -resize "128x128^" -gravity center -crop 128x128+0+0 +repage '+thumbnail, (error) => {