Node - Save m3u8 stream as mp3 file

I have been looking around for a few hours to figure out how I can convert a m3u8 stream into a local mp3 file.

I can't seem to find a module to handle this, so I were just wondering if anyone here have experience with doing this.

Thanks.

Upvotes: 1

Views: 2205

Answers (1)

drj
drj

Reputation: 573

M3U8 is just a XML file that contains a playlist.

You could use an XML parsing library like XML2JS to read and parse the file contents and then use the request library to download those files with node.

Upvotes: 2

Related Questions