api/match-action: fix mute tag assignment for default filename

it's also no longer applied to photos and gifs LMFAOOO
This commit is contained in:
wukko 2024-09-01 14:59:35 +06:00
parent 67073b274d
commit 57050fb742
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -31,8 +31,11 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
defaultParams.audioFormat = audioFormat;
}
if (isAudioMuted && !r.filenameAttributes) {
defaultParams.filename = r.filename.replace('.', '_mute.')
if (action === "muteVideo" && isAudioMuted && !r.filenameAttributes) {
const parts = r.filename.split(".");
const ext = parts.pop();
defaultParams.filename = `${parts.join(".")}_mute.${ext}`;
}
switch (action) {