Merge pull request #21850 from iptv-org/patch-2025.05.5

This commit is contained in:
Alstruit
2025-05-21 05:57:04 -05:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -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)
}

View File

@@ -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' })
})
})