improvement: better expression for isM3U8 in nicovideo

This commit is contained in:
mikhail 2024-05-26 23:48:06 +05:00
parent 4124c503c4
commit f8dd35c62d

View File

@ -188,7 +188,7 @@ export default async function nicovideo({
}
: {}),
},
...(type === "audio" || typeof urls === "string" ? { isM3U8: true } : {}),
...(typeof urls === "string" ? { isM3U8: true } : {}),
...(type === "audio" ? { bestAudio: "mp3" } : {}),
};
} catch (error) {