mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update tv
This commit is contained in:
parent
d5aa56a15d
commit
fa050a3b08
2 changed files with 6 additions and 4 deletions
|
@ -46,22 +46,22 @@
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
var providerId = getParameterByName('id');
|
var providerId = getParameterByName('id');
|
||||||
var id = providerId;
|
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
||||||
|
|
||||||
var info = config.ListingProviders.filter(function (i) {
|
var info = config.ListingProviders.filter(function (i) {
|
||||||
return i.Id == id;
|
return i.Id == providerId;
|
||||||
})[0];
|
|
||||||
|
})[0] || {};
|
||||||
|
|
||||||
info.ZipCode = page.querySelector('.txtZipCode').value;
|
info.ZipCode = page.querySelector('.txtZipCode').value;
|
||||||
info.Country = $('#selectCountry', page).val();
|
info.Country = $('#selectCountry', page).val();
|
||||||
info.ListingsId = selectedListingsId;
|
info.ListingsId = selectedListingsId;
|
||||||
|
info.Type = 'emby';
|
||||||
|
|
||||||
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"
|
||||||
|
|
|
@ -364,6 +364,8 @@
|
||||||
|
|
||||||
case 'schedulesdirect':
|
case 'schedulesdirect':
|
||||||
return 'Schedules Direct';
|
return 'Schedules Direct';
|
||||||
|
case 'emby':
|
||||||
|
return 'Emby Guide';
|
||||||
default:
|
default:
|
||||||
return 'Unknown';
|
return 'Unknown';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue