mirror of
https://github.com/iptv-org/iptv.git
synced 2026-11-13 03:47:44 +02:00
fix: link the exact stream in discussion:validate fulfilled comments
The fulfilled comment looked for the first line containing the stream ID as a substring, so a request for MTV.fr@SD linked the line of BFMTV.fr@SD. Match the quoted tvg-id attribute instead.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#EXTM3U
|
||||
#EXTINF:-1 tvg-id="NewCNBCe.tr@SD",New CNBCe
|
||||
https://example.com/newcnbce.m3u8
|
||||
#EXTINF:-1 tvg-id="CNBCe.tr@SD",CNBCe
|
||||
https://ythls.onrender.com/channel/UC40TUSUx490U5uR1lZt3Ajg.m3u8
|
||||
|
||||
@@ -28,7 +28,9 @@ describe('discussion:validate', () => {
|
||||
const result = readResultJson()
|
||||
expect(result.status).toBe('fulfilled')
|
||||
expect(result.label).toBe('check:failed')
|
||||
expect(result.comment).toContain('https://github.com/test-owner/test-repo/blob/main/')
|
||||
expect(result.comment).toContain(
|
||||
'https://github.com/test-owner/test-repo/blob/main/streams/br.m3u#L4-L5'
|
||||
)
|
||||
expect(result.close).toBe('true')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user