- Update the whitelisted keys for the hdhomerun widget and move the tuner directive to be part of the widget
This commit is contained in:
parent
a7b75e95f1
commit
91bf4379c4
@ -398,6 +398,9 @@ export function cleanServiceGroups(groups) {
|
||||
// glances, customapi, iframe
|
||||
refreshInterval,
|
||||
|
||||
// hdhomerun
|
||||
tuner,
|
||||
|
||||
// healthchecks
|
||||
uuid,
|
||||
|
||||
@ -541,6 +544,9 @@ export function cleanServiceGroups(groups) {
|
||||
if (showTime) cleanedService.widget.showTime = showTime;
|
||||
if (timezone) cleanedService.widget.timezone = timezone;
|
||||
}
|
||||
if (type === "hdhomerun") {
|
||||
if (tuner !== undefined) cleanedService.widget.tuner = tuner;
|
||||
}
|
||||
if (type === "healthchecks") {
|
||||
if (uuid !== undefined) cleanedService.widget.uuid = uuid;
|
||||
}
|
||||
|
||||
@ -48,8 +48,8 @@ function generateDefinitions(channelsData, statusData, tuner) {
|
||||
}
|
||||
|
||||
export default function Component({ service }) {
|
||||
const { widget, tuner = 0 } = service;
|
||||
const { refreshInterval = 10000, fields = ["channels", "hd"] } = widget;
|
||||
const { widget } = service;
|
||||
const { tuner = 0, refreshInterval = 10000, fields = ["channels", "hd"] } = widget;
|
||||
|
||||
const { data: channelsData, error: channelsError } = useWidgetAPI(widget, "lineup", {
|
||||
refreshInterval: Math.max(1000, refreshInterval),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user