rename preview url

This commit is contained in:
jb-alvarado 2024-07-02 21:40:55 +02:00
parent 7d0bfa9d36
commit e8fd6f65bf

View File

@ -77,7 +77,7 @@ async function addChannel() {
newChannel.id = channels.length + 1 newChannel.id = channels.length + 1
newChannel.name = `Channel ${Math.random().toString(36).substring(7)}` newChannel.name = `Channel ${Math.random().toString(36).substring(7)}`
newChannel.preview_url = `${window.location.protocol}//${window.location.host}/stream.m3u8` newChannel.preview_url = `${window.location.protocol}//${window.location.host}/live/${newChannel.id}/stream.m3u8`
channels.push(newChannel) channels.push(newChannel)
configStore.configChannel = channels configStore.configChannel = channels