mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update parsePlaylist() function
This commit is contained in:
parent
70207240d5
commit
c1a6dd4ba1
3 changed files with 5 additions and 6 deletions
|
@ -33,8 +33,8 @@ async function findStreams() {
|
|||
const streams = []
|
||||
const files = await file.list(`${options.inputDir}/**/*.m3u`)
|
||||
for (const filepath of files) {
|
||||
const items = await parser.parsePlaylist(filepath)
|
||||
for (const item of items) {
|
||||
const playlist = await parser.parsePlaylist(filepath)
|
||||
for (const item of playlist.items) {
|
||||
item.filepath = filepath
|
||||
|
||||
const stream = store.create()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue