mirror of
https://github.com/iptv-org/iptv
synced 2026-10-26 21:08:28 -04:00
fix: tolerate missing playlist metadata (#49868)
This commit is contained in:
1 parent
2f83f28352
commit
9652409093
3 files changed
+16
-4
No files matched your search
@@ -101,4 +101,12 @@ describe('playlist:validate', () => {
|
||||
const stdout = execSync(cmd, { encoding: 'utf8' })
|
||||
if (process.env.DEBUG === 'true') console.log(cmd, stdout)
|
||||
})
|
||||
|
||||
it('accepts a playlist without optional metadata attributes', () => {
|
||||
const cmd = `${ENV_VAR} npm run playlist:validate -- missing_metadata.m3u`
|
||||
const stdout = execSync(cmd, { encoding: 'utf8' })
|
||||
if (process.env.DEBUG === 'true') console.log(cmd, stdout)
|
||||
expect(stdout).toContain('missing_metadata.m3u')
|
||||
expect(stdout).toContain('is missing a channel ID')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user