I'm looking for a way (possible?) to convert an M3U file to a JSON file. I've scoured the web for an answer, and all I get is online converters that don't work.
Is this possible? Or is this just another pipe dream?
TIA.
I'm looking for a way (possible?) to convert an M3U file to a JSON file. I've scoured the web for an answer, and all I get is online converters that don't work.
Is this possible? Or is this just another pipe dream?
TIA.
Both M3U and Json are free-text formats, so there is no technical reason that would prevent something lke awk from converting between them.
The semantics might be another thing, though.
There is no formal specification for the M3U format; it is a de facto standard.
It does not even standardise line endings. Linux, Microsoft and Apple all have variations on that most basic issue.
There are at least three competing formats: Basic, Extended and HLS.
You also need to consider what application is going to read a PlayList in Json format. If you don't define precisely the target of a conversion, you have no basis for a design, nor anything to test your conversion process against.
You probably need to quantify "don't work". That implies you have a target application (or maybe several) that fails to understand the files you have created. Some diagnostics from there might be helpful.
Also, there are both online and executable converters that may do the job. Just search for "M3U to JSON" and have a good trip!