Update vidsrc_deno_service.ts
Browse files- vidsrc_deno_service.ts +1 -5
vidsrc_deno_service.ts
CHANGED
|
@@ -287,7 +287,7 @@ function buildPlaybackProxyUrl(baseOrigin: string, targetUrl: string): string {
|
|
| 287 |
return baseOrigin.replace(/\/+$/, "") + "/play?url=" + encodeURIComponent(targetUrl);
|
| 288 |
}
|
| 289 |
|
| 290 |
-
function
|
| 291 |
return String(manifestText || "").split(/\r?\n/).map((line) => {
|
| 292 |
const trimmed = line.trim();
|
| 293 |
if (!trimmed) return line;
|
|
@@ -306,10 +306,6 @@ function rewriteManifest_(manifestText: string, upstreamUrl: string, baseOrigin:
|
|
| 306 |
}).join("\n");
|
| 307 |
}
|
| 308 |
|
| 309 |
-
function rewriteManifest(manifestText: string): string {
|
| 310 |
-
return manifestText;
|
| 311 |
-
}
|
| 312 |
-
|
| 313 |
function buildProxyRequestHeaders(request: Request, target: URL, useOriginHeaders: boolean): Headers {
|
| 314 |
const headers = new Headers();
|
| 315 |
|
|
|
|
| 287 |
return baseOrigin.replace(/\/+$/, "") + "/play?url=" + encodeURIComponent(targetUrl);
|
| 288 |
}
|
| 289 |
|
| 290 |
+
function rewriteManifest(manifestText: string, upstreamUrl: string, baseOrigin: string): string {
|
| 291 |
return String(manifestText || "").split(/\r?\n/).map((line) => {
|
| 292 |
const trimmed = line.trim();
|
| 293 |
if (!trimmed) return line;
|
|
|
|
| 306 |
}).join("\n");
|
| 307 |
}
|
| 308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
function buildProxyRequestHeaders(request: Request, target: URL, useOriginHeaders: boolean): Headers {
|
| 310 |
const headers = new Headers();
|
| 311 |
|