mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-06 14:24:14 +02:00
Fix metadata parser for song titles containing apostrophes
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user