mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
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:
parent
67073b274d
commit
57050fb742
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue