Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/uploading/ffmpeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down Expand Up @@ -253,4 +253,4 @@ module.exports = {
convertVideo,
ffprobePromise,
setRedisClient
};
};