Closed redimongo closed 3 years ago
Interesting case, we could try to improve a regular expression for such cases.
@redimongo can you check if issue still persists with master
implementation? I've added a test case for semicolons and it passes - https://github.com/ghaiklor/icecast-parser/blob/e83c88244416f33bd5e9b6d57abefedcbcc72f17/test/StreamReader.spec.ts#L41
I’ll clone our app and update it with the master version.
Sent from my iPhone
On 13 Sep 2020, at 2:05 am, Eugene Obrezkov notifications@github.com wrote:
@redimongo can you check if issue still persists with master implementation? I've added a test case for semicolons and it passes - https://github.com/ghaiklor/icecast-parser/blob/e83c88244416f33bd5e9b6d57abefedcbcc72f17/test/StreamReader.spec.ts#L41
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
The latest master branch is published in v4.0.1
. I could not reproduce the issue with semicolons. Moreover, I have a test case that successfully parses the metadata with semicolons in there.
So we ran into a number of issues with songs that have artist names with ; in it.
G-Ezzy;Black eye peas for example
So we have made a change to the icecast-stack.js file. Note that this only looks for 2 ;. we have had songs that have 4 artists and each one is seperated by ;
If the developer could come up with a better solution that would be great, but just wanted to share ours.
Maybe even a for each function could solve this issue.