From f9e97a32436146bad41788a2865c8a5a921ca236 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 06:58:08 +0000 Subject: [PATCH 1/2] Initial plan From 9b3bc28db2c5f08495b232c70c741142e2190901 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 07:02:08 +0000 Subject: [PATCH 2/2] Fix artist misidentification when title has venue and date suffix (e.g. "Artist @ Venue - 3/19") Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com> --- 19hz/map.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/19hz/map.js b/19hz/map.js index 0d7cb33..d34742e 100644 --- a/19hz/map.js +++ b/19hz/map.js @@ -629,19 +629,25 @@ class Events { } } + // Strip venue info (e.g., "Artist @ Venue - Date" → "Artist") + cleanedTitle = cleanedTitle.replace(/\s*@\s*.+$/, '').trim(); + // Format: "Event Name - Artist1, Artist2" or "Artist1 - Event Name" if (cleanedTitle.includes(' - ')) { const parts = cleanedTitle.split(' - '); // Take the first substantial part that looks like artists const firstPart = parts[0].trim(); const secondPart = parts.length > 1 ? parts[1].trim() : ''; - + + // Ignore parts that look like a date (e.g., "3/19") + const secondPartIsDate = /^\d+\/\d+$/.test(secondPart); + // Prefer the part with commas (likely multiple artists) - if (secondPart && secondPart.includes(',')) { + if (secondPart && secondPart.includes(',') && !secondPartIsDate) { cleanedTitle = secondPart; } else if (firstPart && firstPart.includes(',')) { cleanedTitle = firstPart; - } else if (secondPart) { + } else if (secondPart && !secondPartIsDate) { // Use second part if it exists (common format: "Event - Artists") cleanedTitle = secondPart; } else {