From c02141af54762961cf559248a3c9d42e9d317e0b Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Mon, 25 Jul 2022 17:25:59 +0200 Subject: [PATCH] fix path --- package.json | 2 +- pages/media.vue | 2 +- pages/player.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 928d58ac..4f67f987 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ffplayout-frontend", - "version": "5.1.0", + "version": "5.1.1", "description": "Web GUI for ffplayout", "author": "Jonathan Baecker", "private": true, diff --git a/pages/media.vue b/pages/media.vue index 93a426a7..a348072b 100644 --- a/pages/media.vue +++ b/pages/media.vue @@ -463,7 +463,7 @@ export default { sources: [ { type: `video/${ext}`, - src: '/' + encodeURIComponent(src.replace(/^[/]+/, '')) + src: '/' + encodeURIComponent(src.replace(/^[/]+/, '').replace(/[/]+/, '/')).replace(/%2F/g, '/') } ] } diff --git a/pages/player.vue b/pages/player.vue index 4e50c0d0..60a74297 100644 --- a/pages/player.vue +++ b/pages/player.vue @@ -617,7 +617,7 @@ export default { sources: [ { type: `video/${ext}`, - src: '/' + encodeURIComponent(src.replace(/^\//, '')) + src: '/' + encodeURIComponent(src.replace(/^[/]+/, '').replace(/[/]+/, '/')).replace(/%2F/g, '/') } ] }