mirror of
https://github.com/iptv-org/iptv
synced 2026-09-15 21:46:40 -04:00
Merge pull request #21850 from iptv-org/patch-2025.05.5
This commit is contained in:
@@ -23,6 +23,8 @@ export class PlaylistParser {
|
|||||||
let streams = new Collection()
|
let streams = new Collection()
|
||||||
|
|
||||||
for (const filepath of files) {
|
for (const filepath of files) {
|
||||||
|
if (!this.storage.existsSync(filepath)) continue
|
||||||
|
|
||||||
const _streams: Collection = await this.parseFile(filepath)
|
const _streams: Collection = await this.parseFile(filepath)
|
||||||
streams = streams.concat(_streams)
|
streams = streams.concat(_streams)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,4 +41,9 @@ describe('playlist:validate', () => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('skip the file if it does not exist', () => {
|
||||||
|
const cmd = `${ENV_VAR} npm run playlist:validate -- missing.m3u`
|
||||||
|
execSync(cmd, { encoding: 'utf8' })
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user