How to parse an m3u file

How to parse an m3u file.

Example .m3u playsist

#EXTM3U x-tvg-url=“https://iptv-org.github.io/epg/guides/in/dishtv.in.epg.xml
#EXTINF:-1 tvg-id=“AmritaTV.in” tvg-country=“IN” tvg-language=“Malayalam” tvg-logo=“https://i.imgur.com/xxWaGyn.jpg” group-title=“Entertainment”,Amrita TV (576p)
http://103.199.161.254/Content/amrita/Live/Channel(Amrita)/index.m3u8
#EXTINF:-1 tvg-id=“AsianetNews.in” tvg-country=“IN” tvg-language=“Malayalam” tvg-logo=“https://i.imgur.com/89LBgkl.png” group-title=“News”,Asianet News (720p) [Not 24/7]
https://vidcdn.vidgyor.com/asianet-origin/liveabr/playlist.m3u8

1 Like

@Thiago do you have any ideas?

Do you want only urls?? Or others too??

Urls + chnl name

Anyone can try …

Any answers …