mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
remove: www.
This commit is contained in:
parent
ef52bb023b
commit
f2b32ccc97
@ -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: "stream" }
|
||||
params = { type: "render" }
|
||||
} else {
|
||||
responseType = "redirect";
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ export default async function({ id }) {
|
||||
|
||||
if (videoSource) {
|
||||
return {
|
||||
urls: "https://www." + videoSource,
|
||||
urls: "https://" + videoSource,
|
||||
isM3U8: videoSource.endsWith(".m3u8"),
|
||||
filename: `videoclip_${modifiedId}.mp4`,
|
||||
audioFilename: `videoclip_${modifiedId}_audio`
|
||||
|
Loading…
Reference in New Issue
Block a user