mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-06 22:24:17 +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;
|
return;
|
||||||
|
|
||||||
// Format usually is: StreamTitle='Artist - Song';StreamUrl='';
|
// 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);
|
QRegularExpressionMatch match = re.match(metaString);
|
||||||
|
|
||||||
if (match.hasMatch()) {
|
if (match.hasMatch()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user