From e2f69f5aca2c134bbb869cbe4d07e709648f12cd Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Tue, 10 May 2022 20:56:11 -0700 Subject: [PATCH] Don't show query titles for a single camera. --- src/browse-media-util.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/browse-media-util.ts b/src/browse-media-util.ts index ec182437..aa58e3ad 100644 --- a/src/browse-media-util.ts +++ b/src/browse-media-util.ts @@ -161,7 +161,9 @@ export class BrowseMediaUtil { if (this.isTrueMedia(child)) { children.push(child); } else { - if (query.title) { + // If there are multiple inputs, separate the folder names with the + // query title (if available). + if (query.title && input.size > 1) { children.push({ ...child, title: `[${query.title}] ${child.title}` }); } else { children.push(child);