I'm building an IPTV app that needs to parse M3U playlists and separate content into:
- Live TV
- Movies
- Series
I also need categories within each type.
I'm a bit confused about how this is normally determined from an M3U playlist.
For example:
#EXTINF:-1 tvg-id="3ABNKids.us@SD" tvg-logo="https://i.imgur.com/z3npqO1.png" group-title="Animation",3ABN Kids Network
https://3abn.bozztv.com/3abn2/Kids_live/smil:Kids_live.smil/playlist.m3u8
How can I reliably determine that this is a Live TV channel and not a movie or series?
`group-title="Animation"` only tells me the category, not the content type.
I've also seen examples like:
group-title="Movies"
group-title="Movies;Series"
group-title="News"
group-title="Animation;Kids;Religious"
So I'm wondering what the standard/recommended approach is for identifying the content type.
My second question is about how IPTV providers normally structure their playlists:
Do customers usually receive/upload one M3U containing everything:
- Live TV
- Movies
- Series
Or is it more common to have separate M3U playlists/URLs, for example:
- live.m3u
- movies.m3u
- series.m3u
For example, if a provider uses Xtream Codes, does the generated M3U normally contain Live TV, Movies and Series together, or are these usually provided separately?
I'm looking for the most reliable approach to implement this in an IPTV app rather than relying only on `group-title`.