From fe0a2583daab84966840acc25f1b09134f73be07 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 22 May 2024 02:38:32 +0600 Subject: [PATCH] matchActionDecider: always render tiktok m4a --- src/modules/processing/matchActionDecider.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/processing/matchActionDecider.js b/src/modules/processing/matchActionDecider.js index 289f8595..6b44f8ab 100644 --- a/src/modules/processing/matchActionDecider.js +++ b/src/modules/processing/matchActionDecider.js @@ -70,7 +70,7 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di break; case "tiktok": let audioStreamType = "render"; - if (audioFormat === "mp3" || audioFormat === "best") { + if (r.bestAudio === "mp3" && (audioFormat === "mp3" || audioFormat === "best")) { audioFormat = "mp3"; audioStreamType = "bridge" } @@ -153,11 +153,12 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di const isTumblrAudio = host === "tumblr" && !r.filename; const isSoundCloud = host === "soundcloud"; + const isTiktok = host === "tiktok"; if (isBestAudioDefined || isBestHostAudio) { audioFormat = serviceBestAudio; processType = "bridge"; - if (isSoundCloud) { + if (isSoundCloud || (isTiktok && audioFormat === "m4a")) { processType = "render" copy = true }