Fix metadata parser for song titles containing apostrophes

This commit is contained in:
Sebastian Palencsar
2026-05-25 15:07:45 +02:00
parent cc4a33a2ae
commit 42953ca70a

View File

@@ -115,7 +115,8 @@ void IcyReader::parseMetaData(const QByteArray &metaData)
return;
// Format usually is: StreamTitle='Artist - Song';StreamUrl='';
QRegularExpression re("StreamTitle='([^']*)';");
// Use non-greedy match (.*?) to allow apostrophes in the title
QRegularExpression re("StreamTitle='(.*?)';");
QRegularExpressionMatch match = re.match(metaString);
if (match.hasMatch()) {