matchActionDecider: reprioritize gif action above audio settings

This commit is contained in:
dumbmoron 2024-01-17 15:34:31 +01:00 committed by GitHub
parent 9976ec59c8
commit b6f4d61af6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,10 +18,10 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di
if (r.isPhoto) action = "photo";
else if (r.picker) action = "picker"
else if (r.isGif && toGif) action = "gif";
else if (isAudioMuted) action = "muteVideo";
else if (isAudioOnly) action = "audio";
else if (r.isM3U8) action = "singleM3U8";
else if (r.isGif && toGif) action = "gif";
else action = "video";
if (action === "picker" || action === "audio") {