From 732791e4f462ba39fb219067cc4425b765d10046 Mon Sep 17 00:00:00 2001 From: Tomas Date: Thu, 2 Oct 2025 13:36:03 +0200 Subject: [PATCH] Show playing video file name --- js/player.js | 4 ++++ player.html | 1 + 2 files changed, 5 insertions(+) diff --git a/js/player.js b/js/player.js index e3abaab..2919500 100644 --- a/js/player.js +++ b/js/player.js @@ -1,6 +1,10 @@ $(async function() { const hash = location.hash.slice(1); + const file = atob(hash.replace(/-/g, '+').replace(/_/g, '/')); + + $("title").text("Anime - "+file); + $("#title").text(file); $("#status").text("Fetching media info..."); let res = await fetch(`api/info.php?file=${hash}`); diff --git a/player.html b/player.html index 17872cb..240deae 100644 --- a/player.html +++ b/player.html @@ -8,6 +8,7 @@ Anime - Player +

"Video Player"