185 lines
9.9 KiB
HTML
185 lines
9.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Vu+</title>
|
|
</head>
|
|
<body>
|
|
<div data-role="page" id="VuPlusConfigurationPage" class="page type-interior pluginConfigurationPage VuPlusConfigurationPage" data-require="emby-button,emby-checkbox,emby-input">
|
|
|
|
<div data-role="content">
|
|
<div class="content-primary">
|
|
|
|
<h1>VuPlus</h1>
|
|
|
|
<form id="VuPlusConfigurationForm" class="VuPlusConfigurationForm">
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtHostName" type="text" label="Vu+ hostname or ip address:" />
|
|
<div class="fieldDescription">
|
|
The host name (address) or ip address of your receiver
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtStreamingPort" type="text" label="Vu+ streaming port:" />
|
|
<div class="fieldDescription">
|
|
The Streaming port of your receiver eg. 8001
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtWebInterfacePort" type="text" label="Vu+ Web Interface port:" />
|
|
<div class="fieldDescription">
|
|
The web Interface port of your receiver eg. 8000
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtWebInterfaceUsername" type="text" label="Vu+ Web Interface username:" />
|
|
<div class="fieldDescription">
|
|
The web Interface username of your receiver (optional)
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtWebInterfacePassword" type="text" label="Vu+ Web Interface password:" />
|
|
<div class="fieldDescription">
|
|
The web Interface password of your receiver (optional)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkUseSecureHTTPS" />
|
|
<span>Use secure HTTP (HTTPS)</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Use HTTPS to connect to your receiver
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkOnlyOneBouquet" />
|
|
<span>Fetch Only one TV bouquet</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Limit channels to only those contained within the specified TV Bouquet below (optional)
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtTVBouquet" type="text" label="Vu+ TVBouquet:" />
|
|
<div class="fieldDescription">
|
|
The TV Bouquet to load channels for (optional)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkZapToChannel" />
|
|
<span>Zap before Channel switch (single tuner)</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Set if only one tuner within receiver
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkFetchPiconsFromWebInterface" />
|
|
<span>Fetch picons from webinterface</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Set if you want to retrieve Picons from the web interface of the receiver
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtPiconsPath" type="text" label="Picons Path:" />
|
|
<div class="fieldDescription">
|
|
The local location of your Picons eg. C:\Picons\ (optional)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtRecordingPath" type="text" label="Recording Path:" />
|
|
<div class="fieldDescription">
|
|
The location to store your recordings on your receiver eg. /hdd/movie/ (optional)
|
|
</div>
|
|
</div>
|
|
|
|
<label class="checkboxContainer">
|
|
<input is="emby-checkbox" type="checkbox" id="chkDebugLogging" />
|
|
<span>Enable VuPlus debug logging</span>
|
|
</label>
|
|
|
|
<div>
|
|
<button is="emby-button" type="submit" class="raised button-submit block"><span>Save</span></button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
var VuPlusConfigurationPage = {
|
|
pluginUniqueId: "9564ac10-af23-39bc-449f-624f23cfa48f",
|
|
|
|
loadConfiguration: function () {
|
|
Dashboard.showLoadingMsg();
|
|
|
|
ApiClient.getPluginConfiguration(VuPlusConfigurationPage.pluginUniqueId).then(function (config) {
|
|
document.getElementById('txtHostName').value = config.HostName || "";
|
|
document.getElementById('txtStreamingPort').value = config.StreamingPort || "";
|
|
document.getElementById('txtWebInterfacePort').value = config.WebInterfacePort || "";
|
|
document.getElementById('txtWebInterfaceUsername').value = config.WebInterfaceUsername || "";
|
|
document.getElementById('txtWebInterfacePassword').value = config.WebInterfacePassword || "";
|
|
document.getElementById('chkUseSecureHTTPS').checked = config.UseSecureHTTPS || false;
|
|
document.getElementById('chkOnlyOneBouquet').checked = config.OnlyOneBouquet || false;
|
|
document.getElementById('txtTVBouquet').value = config.TVBouquet || "";
|
|
document.getElementById('chkZapToChannel').checked = config.ZapToChannel || false;
|
|
document.getElementById('chkFetchPiconsFromWebInterface').checked = config.FetchPiconsFromWebInterface || false;
|
|
document.getElementById('txtPiconsPath').value = config.PiconsPath || "";
|
|
document.getElementById('txtRecordingPath').value = config.RecordingPath || "";
|
|
document.getElementById('chkDebugLogging').checked = config.EnableDebugLogging || false;
|
|
|
|
Dashboard.hideLoadingMsg();
|
|
});
|
|
},
|
|
|
|
saveConfiguration: function () {
|
|
Dashboard.showLoadingMsg();
|
|
|
|
ApiClient.getPluginConfiguration(VuPlusConfigurationPage.pluginUniqueId).then(function (config) {
|
|
config.HostName = document.getElementById('txtHostName').value;
|
|
config.StreamingPort = document.getElementById('txtStreamingPort').value;
|
|
config.WebInterfacePort = document.getElementById('txtWebInterfacePort').value;
|
|
config.WebInterfaceUsername = document.getElementById('txtWebInterfaceUsername').value;
|
|
config.WebInterfacePassword = document.getElementById('txtWebInterfacePassword').value;
|
|
config.UseSecureHTTPS = document.getElementById('chkUseSecureHTTPS').checked;
|
|
config.OnlyOneBouquet = document.getElementById('chkOnlyOneBouquet').checked;
|
|
config.TVBouquet = document.getElementById('txtTVBouquet').value;
|
|
config.ZapToChannel = document.getElementById('chkZapToChannel').checked;
|
|
config.FetchPiconsFromWebInterface = document.getElementById('chkFetchPiconsFromWebInterface').checked;
|
|
config.PiconsPath = document.getElementById('txtPiconsPath').value;
|
|
config.RecordingPath = document.getElementById('txtRecordingPath').value;
|
|
config.EnableDebugLogging = document.getElementById('chkDebugLogging').checked;
|
|
|
|
ApiClient.updatePluginConfiguration(VuPlusConfigurationPage.pluginUniqueId, config).then(Dashboard.processPluginConfigurationUpdateResult);
|
|
});
|
|
}
|
|
}
|
|
|
|
document.getElementById('VuPlusConfigurationPage').addEventListener('pageshow', function () {
|
|
VuPlusConfigurationPage.loadConfiguration();
|
|
});
|
|
|
|
document.getElementById('VuPlusConfigurationForm').addEventListener('submit', function (e) {
|
|
e.preventDefault();
|
|
VuPlusConfigurationPage.saveConfiguration();
|
|
});
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|