-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Description
Hi @schreibfaul1
At stations where, for example, one word is followed by a semicolon (";") and then another title, the library cuts off the last letter of the word and all the rest after the semicolon, e.g.
Is CLEAN BANDI
and it should be
CLEAN BANDIT; JESS GLYNNE - Rather Be
need to be replaced
else if (ml.index_of("StreamTitle='") == 0) { titleStart = 13; idx2 = ml.index_of(";", 12); if (idx2 > titleStart + 1) { titleLen = idx2 - 1 - titleStart; streamTitle.assign(ml.get() + 13, titleLen); } }
this
else if (ml.index_of("StreamTitle='") == 0) { int start = 13; int end = ml.index_of("';", start); if (end < 0) end = ml.index_of("'", start); // fallback — gdy stacja nadaje niepoprawnie if (end > start) { int len = end - start; streamTitle.assign(ml.get() + start, len); } }
Metadata
Metadata
Assignees
Labels
No labels