mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
fix: url
, base
-> hlsObject.uri
, streamInfo.url
This commit is contained in:
parent
21e224bd14
commit
3df60b7fea
@ -8,7 +8,7 @@ function transformObject(streamInfo, hlsObject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fullUrl = hlsObject.uri.startsWith("/")
|
const fullUrl = hlsObject.uri.startsWith("/")
|
||||||
? new URL(url, base).toString()
|
? new URL(hlsObject.uri, streamInfo.url).toString()
|
||||||
: new URL(path.join(streamInfo.url, "/../", hlsObject.uri)).toString();
|
: new URL(path.join(streamInfo.url, "/../", hlsObject.uri)).toString();
|
||||||
hlsObject.uri = createInternalStream(fullUrl, streamInfo);
|
hlsObject.uri = createInternalStream(fullUrl, streamInfo);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user