From 6893160cecda4c9623e6367a55be4866085c1680 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 4 May 2022 10:19:13 +0100 Subject: [PATCH] Fix HLS manifest fetching the entire video on LBRY. --- src/components/VideoPlayer.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index c81e7d1d..3356f769 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -280,7 +280,10 @@ export default { } const contentType = await fetch(uri, { method: "HEAD", - }).then(response => response.headers.get("Content-Type")); + }).then(response => { + response.headers.get("Content-Type"); + uri = response.url; + }); mime = contentType; } else if (this.video.hls) { uri = this.video.hls;