Add stream name to restreamer URL

mike/debug-playlists
ElementalAlchemist 3 years ago committed by Mike Lang
parent 210ae6f92a
commit 4bac4a46d0

@ -16,6 +16,9 @@ window.addEventListener("DOMContentLoaded", async (event) => {
document.getElementById("stream-time-setting-end").value = queryParams.get("end");
}
}
if (queryParams.has("stream")) {
document.getElementById("stream-time-setting-stream").value = queryParams.get("stream");
}
await loadDefaults();
@ -61,7 +64,9 @@ async function loadDefaults() {
const defaultData = await defaultDataResponse.json();
const streamNameField = document.getElementById("stream-time-setting-stream");
if (streamNameField.value === "") {
streamNameField.value = defaultData.video_channel;
}
globalBusStartTime = DateTime.fromISO(defaultData.bustime_start);
}
@ -104,6 +109,7 @@ function updateTimeSettings() {
const startTime = getStartTime();
const endTime = getEndTime();
const queryParts = [];
queryParts.push(`stream=${globalStreamName}`);
queryParts.push(`start=${wubloaderTimeFromDateTime(startTime)}`);
if (endTime) {
queryParts.push(`end=${wubloaderTimeFromDateTime(endTime)}`);

Loading…
Cancel
Save