From 39931adc1a5dc305259d4e3ba32f9cd58a496e23 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Tue, 16 Nov 2021 09:51:42 +0100 Subject: [PATCH] remove debug print --- src/components/Player.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 555fab18..f9198a47 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -186,8 +186,10 @@ export default { uri = lbry.url; if (this.getPreferenceBoolean("proxyLBRY", false)) { const url = new URL(uri); + const proxyURL = new URL(this.video.proxyUrl); url.searchParams.set("host", url.host); - url.host = new URL(this.video.proxyUrl).host; + url.host = proxyURL.host; + url.pathname = proxyURL.pathname + url.pathname; uri = url.toString(); } const contentType = await fetch(uri, { @@ -210,8 +212,6 @@ export default { const proxyURL = new URL(component.video.proxyUrl); const proxyHost = proxyURL.host; const proxyPath = proxyURL.pathname; - console.log("proxyHost", proxyHost); - console.log("proxyPath", proxyPath); localPlayer.getNetworkingEngine().registerRequestFilter((_type, request) => { const uri = request.uris[0]; @@ -225,7 +225,6 @@ export default { url.searchParams.set("host", url.host); url.host = proxyHost; url.pathname = proxyPath + url.pathname; - console.log("url.pathname", url.pathname); request.uris[0] = url.toString(); } if (url.pathname === proxyPath + "/videoplayback") {