File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,20 +29,17 @@ This is a basic JavaScript library for fetching & parsing M3U files from a URL o
2929## Example usage
3030
3131
32- > Note: Any errors will be returned in a JSON key called <code >iptv_parser_error</code >
33-
34-
3532### Parse M3U8 from URL
3633
3734``` js
38- import {ParseM3U } from ' https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js/dist/iptv-parser.min.js' ;
35+ import {ParseM3U } from ' https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js@latest /dist/iptv-parser.min.js' ;
3936
4037async function Fetch_IPTV_Links () {
4138 try {
42- let IPTV_Results = ParseM3U (` https://raw.githubusercontent.com/iptv-org/iptv/master/streams/us_pluto.m3u` , " URL " )
39+ let IPTV_Results = ParseM3U (` https://raw.githubusercontent.com/iptv-org/iptv/master/streams/us_pluto.m3u` )
4340 console .log (await IPTV_Results)
4441 } catch (err) {
45- // console.error(err);
42+ console .error (err);
4643 }
4744}
4845Fetch_IPTV_Links ()
@@ -53,7 +50,7 @@ will return a JSON object of parsed results.
5350### Parse M3U8 from string
5451
5552``` js
56- import {ParseM3U } from ' https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js/dist/iptv-parser.min.js' ;
53+ import {ParseM3U } from ' https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js@latest /dist/iptv-parser.min.js' ;
5754
5855async function Parse_M3U_String () {
5956 try {
@@ -74,24 +71,6 @@ Parse_M3U_String()
7471
7572will return a JSON object of parsed results.
7673
77- <br >
78-
79-
80- ## CDN
81-
82- ### URL
83-
84- https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js/dist/iptv-parser.min.js
85-
86- ### Import
87-
88- import {ParseM3U} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js/dist/iptv-parser.min.js';
89-
90-
91-
92-
93-
94-
9574
9675## Contributing ![ GitHub] ( https://img.shields.io/github/contributors/MarketingPipeline/IPTV-Parser.js )
9776
You can’t perform that action at this time.
0 commit comments