now images in tiktok module follow audio only mode properly

This commit is contained in:
wukko 2022-09-04 10:15:58 +06:00
parent ecf2dac5d8
commit 4cd6461c4e

View file

@ -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) {