fix: do not write out label twice if the same for source and extractor

This commit is contained in:
WebStreamr 2025-09-28 20:16:54 +00:00
parent fcced2e122
commit 60530343b4
No known key found for this signature in database

View file

@ -173,7 +173,7 @@ export class StreamResolver {
titleDetailsLine.push(`💾 ${bytes.format(urlResult.meta.bytes, { unitSeparator: ' ' })}`);
}
const sourceLabel = urlResult.meta?.sourceLabel;
if (sourceLabel) {
if (sourceLabel && sourceLabel !== urlResult.label) {
titleDetailsLine.push(`🔗 ${urlResult.label} from ${urlResult.meta?.sourceLabel}`);
} else {
titleDetailsLine.push(`🔗 ${urlResult.label}`);