values update

This commit is contained in:
Mylloon 2023-08-01 10:24:47 +02:00
parent bec1c47094
commit 25a8c79b71
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -60,7 +60,7 @@ const main = async () => {
updateMessage("Mélange des pistes audios vers la piste 1...");
const newFile = await internals.mergeAudio(file);
let finalTitle = newFile.title;
updateMessage(`Taille calculée : ${Math.round(newFile.size)}Mio`);
updateMessage(`Taille calculée : ~${Math.round(newFile.size)}Mio`);
if (newFile.size > maxSizeDiscord) {
const targetSize = maxSizeDiscord - 2;
@ -68,7 +68,7 @@ const main = async () => {
const bitrate = Math.floor((targetSize * 8388.608) / newFile.duration);
updateMessage(
`\nFichier trop lourd, compression en cours... (bitrate total = ${bitrate})`,
`\nFichier trop lourd, compression en cours... (bitrate total = ${bitrate}kbps)`,
Mode.Append
);
finalTitle = await internals.reduceSize(