summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-10-11 17:40:09 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-10-11 17:40:09 +0900
commite35e1ce028e0add46f602b3b9cd12d0fc3fd25f4 (patch)
treeabff1d6a0475d5246d8a5f7d456dc3a7fa7b2d70
parentd01e4cd709d35d6e722b8a863322750b25b049ff (diff)
modified recordings/recordings-plain.html
-rw-r--r--layouts/recordings/recordings-plain.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/layouts/recordings/recordings-plain.html b/layouts/recordings/recordings-plain.html
index 8528c45..9fb5f09 100644
--- a/layouts/recordings/recordings-plain.html
+++ b/layouts/recordings/recordings-plain.html
@@ -165,7 +165,7 @@
<li class="folder-section">
<details>
<summary class="folder-header">
- <span class="folder-name">{{ $folderName }}/</span>
+ <span class="folder-name" data-encoded="{{ $folderName }}">{{ $folderName }}/</span>
<span class="folder-count">({{ len $files }} items)</span>
</summary>
<ul class="folder-content">
@@ -238,6 +238,19 @@
<script>
document.addEventListener("DOMContentLoaded", () => {
+ // Decode URL-encoded folder names
+ document.querySelectorAll('.folder-name[data-encoded]').forEach(el => {
+ const encoded = el.getAttribute('data-encoded');
+ try {
+ const decoded = decodeURIComponent(encoded);
+ if (decoded !== encoded) {
+ el.textContent = decoded + '/';
+ }
+ } catch (e) {
+ // Keep original if decoding fails
+ }
+ });
+
const list = document.getElementById("list");
const wrap = document.getElementById("player");
const video = document.getElementById("video");