added console log for audio decryption

This commit is contained in:
stratuma 2024-05-08 03:45:13 +02:00
parent 218019e55d
commit 343713599b

View File

@ -81,6 +81,7 @@ async function mergePartsAudio(parts: { filename: string; url: string }[], tmp:
await concatenateTSFiles(list, concatenatedFile)
if (drmkeys) {
console.log(`Audio Decryption started`)
const inputFilePath = `${tmp}/temp-main.m4s`
const outputFilePath = `${tmp}/main.m4s`
const keyArgument = `--show-progress --key ${drmkeys[1].kid}:${drmkeys[1].key}`
@ -89,6 +90,7 @@ async function mergePartsAudio(parts: { filename: string; url: string }[], tmp:
await exec(command)
concatenatedFile = `${tmp}/main.m4s`
console.log(`Audio Decryption finished`)
}
return new Promise((resolve, reject) => {