diff --git a/lib/uploading/ffmpeg.js b/lib/uploading/ffmpeg.js index f8bb31d9..609b650d 100644 --- a/lib/uploading/ffmpeg.js +++ b/lib/uploading/ffmpeg.js @@ -62,8 +62,8 @@ function takeAndUploadThumbnail(uploadedPath, uniqueTag, upload, channelUrl, b2, // for b2 integration, upload to b2 if it's prod and you're supposed to if(process.env.NODE_ENV == 'production' && process.env.UPLOAD_TO_B2 == 'true'){ (async function(){ - const response = await b2.uploadFileAsync(`${saveAndServeFilesDirectory}/${channelUrl}/` + uniqueTag + '.png', { - name : hostFilePath + '.png', + const response = await b2.uploadFileAsync(`${saveAndServeFilesDirectory}/${channelUrl}/` + uniqueTag + '.jpg', { + name : hostFilePath + '.jpg', bucket // Optional, defaults to first bucket }); @@ -253,4 +253,4 @@ module.exports = { convertVideo, ffprobePromise, setRedisClient -}; \ No newline at end of file +};