Spaces:
Running
Running
BinaryONe
commited on
Commit
·
6740fdf
1
Parent(s):
85693e9
Miseleneous Fixes - Update on HTMLs
Browse files
FileStream/server/template/owner.js
CHANGED
@@ -259,13 +259,13 @@ const videolink = window.location.href;
|
|
259 |
const streamlink = videolink.replace("/watch/", "/dl/");
|
260 |
|
261 |
function vlc_player() {
|
262 |
-
const openstreamlink = streamlink;
|
263 |
const openVlc = `vlc://${openstreamlink}`;
|
264 |
window.location.href = openVlc;
|
265 |
}
|
266 |
|
267 |
function mx_player() {
|
268 |
-
const openstreamlink = streamlink
|
269 |
const openMx = `intent:${openstreamlink}#Intent;package=com.mxtech.videoplayer.ad;end`;
|
270 |
window.location.href = openMx;
|
271 |
}
|
|
|
259 |
const streamlink = videolink.replace("/watch/", "/dl/");
|
260 |
|
261 |
function vlc_player() {
|
262 |
+
const openstreamlink = streamlink.replace(/^https?:\/\//, '');
|
263 |
const openVlc = `vlc://${openstreamlink}`;
|
264 |
window.location.href = openVlc;
|
265 |
}
|
266 |
|
267 |
function mx_player() {
|
268 |
+
const openstreamlink = streamlink;
|
269 |
const openMx = `intent:${openstreamlink}#Intent;package=com.mxtech.videoplayer.ad;end`;
|
270 |
window.location.href = openMx;
|
271 |
}
|