From 4cd6461c4efccce7d7759a8708ef7a344a457e9d Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 4 Sep 2022 10:15:58 +0600 Subject: [PATCH] now images in tiktok module follow audio only mode properly --- src/modules/services/tiktok.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/services/tiktok.js b/src/modules/services/tiktok.js index 0b490ea..2655652 100644 --- a/src/modules/services/tiktok.js +++ b/src/modules/services/tiktok.js @@ -82,6 +82,14 @@ export default async function(obj) { urls: video, filename: videoFilename } + if (images && obj.isAudioOnly) { + return { + urls: audio, + audioFilename: audioFilename, + isAudioOnly: true, + isMp3: isMp3, + } + } if (images) { let imageLinks = []; for (let i in images) {