@iptv/playlist - v1.1.1
    Preparing search index...

    Function parseM3U

    • parseM3U

      Parses an M3U file and returns an M3uPlaylist object

      Parameters

      • m3uFileContents: string

        The contents of the M3U file

      Returns M3uPlaylist

      import { parseM3U } from "@iptv/playlist";

      const m3u = `#EXTM3U
      #EXTINF:-1 tvg-id="1" tvg-name="Channel 1" tvg-language="English" tvg-logo="http://example.com/logo.png" group-title="News" tvg-url="http://example.com/tvg.xml" timeshift="1" catchup="default" catchup-days="7" catchup-source="default" x-tvg-url="http://example.com/tvg.xml" url-tvg="http://example.com/tvg.xml" tvg-rec="default",Channel 1
      http://example.com/stream.m3u8
      `;

      const playlist = parseM3U(m3u);