From eeec0837f70eeba82f14e425526aa428e882c70d Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Tue, 28 May 2024 08:52:13 +0000 Subject: [PATCH] matchActionDecider: add support for multiple m3u8 links --- src/modules/processing/matchActionDecider.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/processing/matchActionDecider.js b/src/modules/processing/matchActionDecider.js index 42a35f1a..6996974d 100644 --- a/src/modules/processing/matchActionDecider.js +++ b/src/modules/processing/matchActionDecider.js @@ -24,7 +24,7 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di 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.isM3U8) action = "m3u8"; else action = "video"; if (action === "picker" || action === "audio") { @@ -48,8 +48,12 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di params = { type: "gif" } break; - case "singleM3U8": - params = { type: "remux" } + case "m3u8": + if (Array.isArray(r.urls)) { + params = { type: "render" } + } else { + params = { type: "remux" } + } break; case "muteVideo":