Skip to content

Truncating the title after a semicolon. #1202

@hevet

Description

@hevet

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions