From 233e1822511baab52a511c8cf93b14f00cd8161f Mon Sep 17 00:00:00 2001 From: Hadi Charara Date: Tue, 5 Jul 2022 20:48:39 -0400 Subject: [PATCH] Forced LTR for file path in media info --- src/components/itemMediaInfo/itemMediaInfo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/itemMediaInfo/itemMediaInfo.js b/src/components/itemMediaInfo/itemMediaInfo.js index 520dccaa4d..b9751a6750 100644 --- a/src/components/itemMediaInfo/itemMediaInfo.js +++ b/src/components/itemMediaInfo/itemMediaInfo.js @@ -66,7 +66,7 @@ const attributeDelimiterHtml = layoutManager.tv ? '' : ': `; } if (version.Path && user && user.Policy.IsAdministrator) { - html += `${createAttribute(globalize.translate('MediaInfoPath'), version.Path)}
`; + html += `${createAttribute(globalize.translate('MediaInfoPath'), version.Path, true)}
`; } if (version.Size) { const size = `${(version.Size / (1024 * 1024)).toFixed(0)} MB`; @@ -212,8 +212,8 @@ const attributeDelimiterHtml = layoutManager.tv ? '' : ': ${label}${attributeDelimiterHtml}${escapeHtml(value)}\n`; + function createAttribute(label, value, isLtr) { + return `${label}${attributeDelimiterHtml}${escapeHtml(value)}\n`; } function loadMediaInfo(itemId, serverId) {