mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 11:18:28 +00:00
improvement: better expression for isM3U8 in nicovideo
This commit is contained in:
parent
4124c503c4
commit
f8dd35c62d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user