From df121bd9c3315ccc77aa9c73a0c0a59c9187d72c Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Mon, 8 Jun 2026 13:04:31 -0400 Subject: [PATCH] feat(MediaManager): add base URL handling for drive and meatloaf devices --- src/app/components/MediaManager.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/components/MediaManager.tsx b/src/app/components/MediaManager.tsx index 44068ef..6fea34c 100644 --- a/src/app/components/MediaManager.tsx +++ b/src/app/components/MediaManager.tsx @@ -1261,9 +1261,9 @@ export default function MediaManager({ initialPath = '/', rootPath, title, confi {(() => { const drives = Object.entries(config?.iec?.devices?.drive ?? {}) .filter(([k]) => k !== 'vdrive' && k !== 'rom') - .map(([k, v]: [string, any]) => ({ type: 'drive' as const, key: k, url: v?.url as string | undefined, enabled: !!v?.enabled })); + .map(([k, v]: [string, any]) => ({ type: 'drive' as const, key: k, base_url: v?.base_url as string | undefined, url: v?.url as string | undefined, enabled: !!v?.enabled })); const meatloafs = Object.entries(config?.iec?.devices?.meatloaf ?? {}) - .map(([k, v]: [string, any]) => ({ type: 'meatloaf' as const, key: k, url: v?.url as string | undefined, enabled: !!v?.enabled })); + .map(([k, v]: [string, any]) => ({ type: 'meatloaf' as const, key: k, base_url: v?.base_url as string | undefined, url: v?.url as string | undefined, enabled: !!v?.enabled })); const devices = [...drives, ...meatloafs]; if (!devices.length) return

No drive devices found in config.

; @@ -1278,7 +1278,11 @@ export default function MediaManager({ initialPath = '/', rootPath, title, confi
Device #{dev.key}
- {dev.url &&
{dev.url}
} + {(dev.base_url || dev.url) && ( +
+ {[dev.base_url, dev.url].filter(Boolean).join('')} +
+ )}
{!dev.enabled && disabled}