api/match-action: clean up audio action
This commit is contained in:
@@ -52,7 +52,7 @@ export default async function(obj) {
|
||||
|
||||
let video, videoFilename, audioFilename, audio, images,
|
||||
filenameBase = `tiktok_${detail.author.uniqueId}_${postId}`,
|
||||
bestAudio = 'm4a';
|
||||
bestAudio; // will get defaulted to m4a later on in match-action
|
||||
|
||||
images = detail.imagePost?.images;
|
||||
|
||||
|
||||
@@ -58,7 +58,8 @@ export default async function(input) {
|
||||
title: fileMetadata.title,
|
||||
author: fileMetadata.artist
|
||||
},
|
||||
isAudioOnly: true
|
||||
isAudioOnly: true,
|
||||
bestAudio: "mp3",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,8 @@ const getDirectLink = (data, quality) => {
|
||||
resolution: `${match.width}x${match.height}`,
|
||||
qualityLabel: match.rendition,
|
||||
extension: "mp4"
|
||||
}
|
||||
},
|
||||
bestAudio: "mp3",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +132,8 @@ const getHLS = async (configURL, obj) => {
|
||||
resolution: `${bestQuality.resolution.width}x${bestQuality.resolution.height}`,
|
||||
qualityLabel: `${resolutionMatch[bestQuality.resolution.width]}p`,
|
||||
extension: "mp4"
|
||||
}
|
||||
},
|
||||
bestAudio: "mp3",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user