Youtube indirmeleri ile ilgili UI/UX güncellemeleri yapıldı

This commit is contained in:
2025-11-30 20:16:20 +03:00
parent decf503297
commit 4ab37005cf
3 changed files with 50 additions and 9 deletions

View File

@@ -4910,9 +4910,16 @@ app.get("/api/files", requireAuth, (req, res) => {
const tracker = dirInfo.tracker ?? null;
const torrentName = dirInfo.name ?? null;
const infoHash = dirInfo.infoHash ?? null;
const baseName = safeRel.split(/[\\/]/).pop();
const isRoot = !relWithinRoot;
const displayName =
isRoot && tracker === "youtube" && torrentName
? torrentName
: baseName;
result.push({
name: safeRel,
displayName,
size: 0,
type: "inode/directory",
isDirectory: true,
@@ -4984,9 +4991,11 @@ app.get("/api/files", requireAuth, (req, res) => {
: null;
const isPrimaryVideo =
!!info.primaryVideoPath && info.primaryVideoPath === relWithinRoot;
const displayName = entry.name;
result.push({
name: safeRel,
displayName,
size,
type,
url,