mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
at least i fixed the internal system error
This commit is contained in:
parent
661bf51111
commit
ef52bb023b
@ -101,7 +101,7 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di
|
||||
switch (host) {
|
||||
case "videoclip":
|
||||
if (r.urls.endsWith(".m3u8")) {
|
||||
params = { type: "render" }
|
||||
params = { type: "stream" }
|
||||
} else {
|
||||
responseType = "redirect";
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ export default async function({ id }) {
|
||||
if (videoSource) {
|
||||
return {
|
||||
urls: "https://www." + videoSource,
|
||||
isM3U8: videoSource.endsWith(".m3u8"),
|
||||
filename: `videoclip_${modifiedId}.mp4`,
|
||||
audioFilename: `videoclip_${modifiedId}_audio`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user