mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update schedules direct
This commit is contained in:
parent
3226bd017c
commit
a2ac684553
2 changed files with 17 additions and 9 deletions
|
@ -56,7 +56,7 @@
|
||||||
<label for="selectCountry">${LabelCountry}</label>
|
<label for="selectCountry">${LabelCountry}</label>
|
||||||
<select id="selectCountry" data-mini="true" required="required">
|
<select id="selectCountry" data-mini="true" required="required">
|
||||||
<option value="ca">Canada</option>
|
<option value="ca">Canada</option>
|
||||||
<option value="us" selected>United States</option>
|
<option value="usa" selected>United States</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
(function ($, document, window) {
|
(function ($, document, window) {
|
||||||
|
|
||||||
var providerId;
|
|
||||||
var listingsId;
|
var listingsId;
|
||||||
|
|
||||||
function reload(page) {
|
function reload(page, providerId) {
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
||||||
|
|
||||||
|
@ -30,6 +29,7 @@
|
||||||
Password: CryptoJS.SHA1($('#txtPass', page).val()).toString()
|
Password: CryptoJS.SHA1($('#txtPass', page).val()).toString()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var providerId = getParameterByName('id');
|
||||||
var id = providerId;
|
var id = providerId;
|
||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
|
@ -38,13 +38,16 @@
|
||||||
|
|
||||||
ApiClient.ajax({
|
ApiClient.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: ApiClient.getUrl('LiveTv/ListingProviders'),
|
url: ApiClient.getUrl('LiveTv/ListingProviders', {
|
||||||
|
ValidateLogin: true
|
||||||
|
}),
|
||||||
data: JSON.stringify(info),
|
data: JSON.stringify(info),
|
||||||
contentType: "application/json"
|
contentType: "application/json"
|
||||||
|
|
||||||
}).done(function (result) {
|
}).done(function (result) {
|
||||||
|
|
||||||
Dashboard.processServerConfigurationUpdateResult();
|
Dashboard.processServerConfigurationUpdateResult();
|
||||||
|
Dashboard.navigate('livetvguideprovider-scd.html?id=' + result.Id);
|
||||||
|
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
Dashboard.alert({
|
Dashboard.alert({
|
||||||
|
@ -67,6 +70,7 @@
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
|
var providerId = getParameterByName('id');
|
||||||
var id = providerId;
|
var id = providerId;
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
||||||
|
@ -81,7 +85,9 @@
|
||||||
|
|
||||||
ApiClient.ajax({
|
ApiClient.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: ApiClient.getUrl('LiveTv/ListingProviders'),
|
url: ApiClient.getUrl('LiveTv/ListingProviders', {
|
||||||
|
ValidateListings: true
|
||||||
|
}),
|
||||||
data: JSON.stringify(info),
|
data: JSON.stringify(info),
|
||||||
contentType: "application/json"
|
contentType: "application/json"
|
||||||
|
|
||||||
|
@ -105,13 +111,16 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var providerId = getParameterByName('id');
|
||||||
|
|
||||||
Dashboard.showModalLoadingMsg();
|
Dashboard.showModalLoadingMsg();
|
||||||
|
|
||||||
ApiClient.ajax({
|
ApiClient.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: ApiClient.getUrl('LiveTv/ListingProviders/Lineups', {
|
url: ApiClient.getUrl('LiveTv/ListingProviders/Lineups', {
|
||||||
Id: providerId,
|
Id: providerId,
|
||||||
Location: value
|
Location: value,
|
||||||
|
Country: $('#selectCountry', page).val()
|
||||||
}),
|
}),
|
||||||
dataType: 'json'
|
dataType: 'json'
|
||||||
|
|
||||||
|
@ -163,10 +172,9 @@
|
||||||
|
|
||||||
}).on('pageshowready', "#liveTvGuideProviderScdPage", function () {
|
}).on('pageshowready', "#liveTvGuideProviderScdPage", function () {
|
||||||
|
|
||||||
providerId = getParameterByName('id');
|
var providerId = getParameterByName('id');
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
reload(page);
|
reload(page, providerId);
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery, document, window);
|
})(jQuery, document, window);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue