Closed JanVeb closed 1 year ago
http://iptv365.xyz/get.php?username=XXXXXX&password=XXXXXX&output=ts&type=m3u_plus
I have m3u playlist in this format, where do i enter it in this code? tried difrent thing but nothing worked
`import parser from 'iptv-playlist-parser'
const playlist = `#EXTM3U x-tvg-url="http://example.com/epg.xml.gz"
http://example.com/stream.m3u8`
const result = parser.parse(playlist)
console.log(result)`
Before you can parse a playlist you need to download it. here is an example of how this can be done: https://github.com/freearhey/iptv-playlist-parser#from-url
http://iptv365.xyz/get.php?username=XXXXXX&password=XXXXXX&output=ts&type=m3u_plus
I have m3u playlist in this format, where do i enter it in this code? tried difrent thing but nothing worked
`import parser from 'iptv-playlist-parser'
const playlist = `#EXTM3U x-tvg-url="http://example.com/epg.xml.gz"
EXTINF:-1 tvg-id="cnn.us" tvg-name="CNN" tvg-url="http://195.154.221.171/epg/guide.xml.gz" timeshift="3" catchup="shift" catchup-days="3" catchup-source="https://m3u-server/hls-apple-s4-c494-abcdef.m3u8?utc=325234234&lutc=3123125324" tvg-logo="http://example.com/logo.png" group-title="News",CNN (US)
EXTGRP:News
EXTVLCOPT:http-referrer=http://example.com/
EXTVLCOPT:http-user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5)
http://example.com/stream.m3u8`
const result = parser.parse(playlist)
console.log(result)`