mirror of
https://github.com/iptv-org/iptv
synced 2026-10-27 21:38:20 -04:00
Update parser.js
This commit is contained in:
1 parent
1bdb3d0372
commit
391c7239a0
1 file changed
-7
@@ -5,13 +5,6 @@ const file = require('./file')
|
|||||||
|
|
||||||
const parser = {}
|
const parser = {}
|
||||||
|
|
||||||
parser.parseIndex = function () {
|
|
||||||
const content = file.read('index.m3u')
|
|
||||||
const result = playlistParser.parse(content)
|
|
||||||
|
|
||||||
return result.items
|
|
||||||
}
|
|
||||||
|
|
||||||
parser.parsePlaylist = async function (url) {
|
parser.parsePlaylist = async function (url) {
|
||||||
const content = file.read(url)
|
const content = file.read(url)
|
||||||
const result = playlistParser.parse(content)
|
const result = playlistParser.parse(content)
|
||||||
|
|||||||
Reference in new issue
Block a user