mirror of
https://github.com/iptv-org/iptv
synced 2026-04-07 11:33:11 -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()
|
||||
|
||||
for (const filepath of files) {
|
||||
if (!this.storage.existsSync(filepath)) continue
|
||||
|
||||
const _streams: Collection = await this.parseFile(filepath)
|
||||
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