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
|
@ -31,8 +31,8 @@ async function main() {
|
|||
const [__, country] = basename.match(/([a-z]{2})(|_.*)\.m3u/i) || [null, null]
|
||||
|
||||
const fileLog = []
|
||||
const items = await parser.parsePlaylist(filepath)
|
||||
for (const item of items) {
|
||||
const playlist = await parser.parsePlaylist(filepath)
|
||||
for (const item of playlist.items) {
|
||||
if (item.tvg.id && !api.channels.find({ id: item.tvg.id })) {
|
||||
fileLog.push({
|
||||
type: 'warning',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue