mirror of
https://github.com/iptv-org/iptv
synced 2026-09-06 03:50:47 -04:00
fix: tolerate missing playlist metadata (#49868)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
#EXTM3U
|
||||
#EXTINF:-1,Example
|
||||
https://example.com/live.m3u8
|
||||
@@ -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