summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");