2

i am looking to parser m3u file in java. channel name then its link I've googled for this but unable to find solution. m3u file looks like this:

#EXTM3U
#EXTINF:-1,VIP AR: Bein Max 1 HD
http://portal.onlineiptv.net:5210/live/Jyw2SMYjxe/9589.ts
#EXTINF:-1,VIP AR: Bein Max 2 HD
http://portal.onlineiptv.net:5210/live/Jyw2SMYjxe/9590.ts
#EXTINF:-1,VIP AR: Bein Max 3 HD
http://portal.onlineiptv.net:5210/live/Jyw2SMYjxe/9591.ts

i want to show the details like this:

ChannelCategory - ChannelName
Url of that channel 

i have a working code but in that i'm unable to fetch channels links

Sajjad Javed
  • 139
  • 2
  • 14

1 Answers1

1

You can parse M3U file in C# using Regular expressions & in Java you can do same Or create custom Parser.

https://github.com/sajjad0321/iptv

Sajjad Javed
  • 139
  • 2
  • 14
  • @Sjjad Jave can i use Remote m3u url instead of local file to parse m3u using your code ? How to call the parse function ? – user1788736 Dec 01 '17 at 02:54
  • @user1788736 **Not yet**. i'm trying to achieve it. "If u can do?". For now i'm downloading the file then Parsing it in my App. – Sajjad Javed Dec 02 '17 at 10:43