This commit is contained in:
Mylloon 2023-07-30 13:46:35 +02:00
parent f5da511b9e
commit fb73613da3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -38,6 +38,7 @@ const main = async () => {
const newFile = await internals.mergeAudio(file);
let finalTitle = newFile.title;
if (newFile.size > maxSizeDiscord) {
/* TODO: Since this task can take time, add a progress bar to the user */
const targetSize = maxSizeDiscord - 2;
finalTitle = await internals.reduceSize(
newFile.title,