Raiper34 / m3u-parser-generator

Library to parse and generate m3u or m3u8 IPTV playlist files
https://m3u-parser-generator.netlify.app
MIT License
24 stars 11 forks source link

fix: Allow KODIPROPs with multiple '=' signs #12

Closed IsraPerez98 closed 2 months ago

IsraPerez98 commented 2 months ago

I had a use case with a m3u8 file using the following format to specify an external license_key for KODI: #KODIPROP:inputstream.adaptive.license_key=https://example.com/license.php?id=example

The current implementation uses const [key, value] = trackInformation.split('='); in order to get the key, value pair.

In this example the parsed data would be value = https://example.com/license.php?id, removing everything after the second '='.

The current pull request fixes this issue, and the corresponding test has also been updated.

Raiper34 commented 2 months ago

Thanks for your contrubution, new version will be released soon.

Raiper34 commented 2 months ago

Released under v1.7.2