GilbertClaus commited on
Commit
40a865b
·
1 Parent(s): 0afeddc
Files changed (1) hide show
  1. Ark ReCode/script.js +2 -3
Ark ReCode/script.js CHANGED
@@ -1,6 +1,6 @@
1
  function playVideo(charName) {
2
  const cleanName = charName.split('-').pop().trim().toLowerCase();
3
- const videoPath = `https://gilbertclaus.pythonanywhere.com/video/Ark ReCode/${charName}/${cleanName}}.m3u8`;
4
  const encodedURL = encodeURI(videoPath);
5
 
6
  const wrapper = document.getElementById("videoWrapper");
@@ -31,8 +31,7 @@ function playVideo(charName) {
31
  // Fallback, tidak bisa memutar HLS
32
  wrapper.innerHTML = "<p>Browser kamu tidak mendukung streaming video ini.</p>";
33
  }
34
- }
35
-
36
 
37
  function fetchData() {
38
  const input = document.getElementById("charName").value.trim();
 
1
  function playVideo(charName) {
2
  const cleanName = charName.split('-').pop().trim().toLowerCase();
3
+ const videoPath = `https://gilbertclaus.pythonanywhere.com/video/Ark ReCode/${charName}/${cleanName}.m3u8`;
4
  const encodedURL = encodeURI(videoPath);
5
 
6
  const wrapper = document.getElementById("videoWrapper");
 
31
  // Fallback, tidak bisa memutar HLS
32
  wrapper.innerHTML = "<p>Browser kamu tidak mendukung streaming video ini.</p>";
33
  }
34
+ }
 
35
 
36
  function fetchData() {
37
  const input = document.getElementById("charName").value.trim();