From a0fe86bcc0360dfbd04ba63f94dbf393d658c78c Mon Sep 17 00:00:00 2001 From: Damir Modyarov Date: Tue, 21 May 2024 22:48:25 +0300 Subject: [PATCH] tiktok: fix picker audio missing extension --- src/modules/processing/matchActionDecider.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/modules/processing/matchActionDecider.js b/src/modules/processing/matchActionDecider.js index 764a1d3b..35c8457a 100644 --- a/src/modules/processing/matchActionDecider.js +++ b/src/modules/processing/matchActionDecider.js @@ -69,19 +69,20 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di params = { picker: r.picker }; break; case "tiktok": - let pickerType = "render"; - if (audioFormat === "mp3" || audioFormat === "best") { - audioFormat = "mp3"; - pickerType = "bridge" + let audioStreamType = "render"; + if (audioFormat === r.bestAudio || audioFormat === "best") { + audioFormat = r.bestAudio; + audioStreamType = "bridge" } params = { - type: pickerType, picker: r.picker, u: createStream({ service: "tiktok", - type: pickerType, + type: audioStreamType, u: r.urls, filename: r.audioFilename, + isAudioOnly: true, + audioFormat, }), copy: audioFormat === "best" }