diff --git a/s/f0ck.png b/s/f0ck.png new file mode 100644 index 0000000..b13f136 Binary files /dev/null and b/s/f0ck.png differ diff --git a/src/lib.js b/src/lib.js index 512b97d..43a1275 100644 --- a/src/lib.js +++ b/src/lib.js @@ -108,7 +108,10 @@ self.generateThumbs = () => { exec('ffmpegthumbnailer -i'+e.dest+' -s1024 -o'+thumbnail, (error) => { if(error) { self.log('failed thumbnail for '+e.id+' ('+e.mime+')'); - fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail + if(e.mime.match(/audio/i)) + fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail + else + fs.copySync('./s/f0ck.png', thumbnail); } else exec('convert '+thumbnail+' -resize "128x128^" -gravity center -crop 128x128+0+0 +repage '+thumbnail, (error) => {