Merge pull request #55677 from Dev-next-gen/fix/edit-keep-titles

fix: keep stream titles when playlist:edit saves the file
This commit is contained in:
Blocket Flex authored and GitHub committed 2026-10-21 07:58:52 -07:00
commit 6dc7c275cc
2 files changed
+14 -1

No files matched your search

+13
View File
@@ -30,6 +30,19 @@ describe('playlist:edit', () => {
checkStdout((error as ExecError).stdout)
}
})
it('keeps the stream titles when saving the playlist', () => {
const cmd = `${ENV_VAR} npm run playlist:edit --- tests/__data__/output/playlist.m3u`
try {
execSync(cmd, { encoding: 'utf8' })
} catch {
// NOTE: for Windows only
}
const content = fs.readFileSync('tests/__data__/output/playlist.m3u', 'utf8')
expect(content).toContain('tvg-id="HewadTV.af",Hewad TV (720p) [Not 24/7]')
expect(content).toContain('tvg-id="",Télévision française 1 (480p)')
})
})
function checkStdout(stdout: string) {