playlist importando sample track

This commit is contained in:
JotaChina committed 2025-12-25 17:31:36 -03:00
1 parent 391b46bca2
commit b73bea1a47
2 files changed
+10 -8

No files matched your search

+4 -2
View File
@@ -27,7 +27,8 @@ function buildSamplePathMap(tree, currentPath) {
for (const key in tree) {
if (key === "_isFile") continue;
const node = tree[key];
const newPath = `${currentPath}/${key}`;
const encodedKey = encodeURIComponent(key);
const newPath = `${currentPath}/${encodedKey}`;
if (node._isFile) {
samplePathMap[key] = newPath;
} else {
@@ -72,7 +73,8 @@ function renderFileTree(tree, parentElement, currentPath) {
const node = tree[key];
const li = document.createElement("li");
const newPath = `${currentPath}/${key}`;
const encodedKey = encodeURIComponent(key);
const newPath = `${currentPath}/${encodedKey}`;
if (node._isFile) {
// --- LÓGICA PARA ARQUIVOS ---