mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add movie metadata support to live tv
This commit is contained in:
parent
d82b5e81ed
commit
e46774b7e9
3 changed files with 13 additions and 7 deletions
|
@ -33,11 +33,11 @@
|
||||||
<fieldset data-role="controlgroup">
|
<fieldset data-role="controlgroup">
|
||||||
<legend>${LabelSelectInternetTrailersForCinemaMode}</legend>
|
<legend>${LabelSelectInternetTrailersForCinemaMode}</legend>
|
||||||
<label for="chkUpcomingTheaterTrailers">${OptionUpcomingMoviesInTheaters}</label>
|
<label for="chkUpcomingTheaterTrailers">${OptionUpcomingMoviesInTheaters}</label>
|
||||||
<input type="checkbox" id="chkUpcomingTheaterTrailers" data-mini="true" />
|
<input type="checkbox" id="chkUpcomingTheaterTrailers" />
|
||||||
<label for="chkUpcomingDvdTrailers">${OptionUpcomingDvdMovies}</label>
|
<label for="chkUpcomingDvdTrailers">${OptionUpcomingDvdMovies}</label>
|
||||||
<input type="checkbox" id="chkUpcomingDvdTrailers" data-mini="true" />
|
<input type="checkbox" id="chkUpcomingDvdTrailers" />
|
||||||
<label for="chkUpcomingStreamingTrailers">${OptionUpcomingStreamingMovies}</label>
|
<label for="chkUpcomingStreamingTrailers">${OptionUpcomingStreamingMovies}</label>
|
||||||
<input type="checkbox" id="chkUpcomingStreamingTrailers" data-mini="true" />
|
<input type="checkbox" id="chkUpcomingStreamingTrailers" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="fieldDescription">${LabelTheseFeaturesRequireSupporterHelpAndTrailers}</div>
|
<div class="fieldDescription">${LabelTheseFeaturesRequireSupporterHelpAndTrailers}</div>
|
||||||
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
|
||||||
|
|
|
@ -32,6 +32,14 @@
|
||||||
<div class="fieldDescription">${LabelNumberOfGuideDaysHelp}</div>
|
<div class="fieldDescription">${LabelNumberOfGuideDaysHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div>
|
||||||
|
<fieldset data-role="controlgroup">
|
||||||
|
<legend>${LabelEnableInternetMetadataForTvPrograms}</legend>
|
||||||
|
<label for="chkMovies">${OptionTVMovies}</label>
|
||||||
|
<input type="checkbox" id="chkMovies" />
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -14,9 +14,7 @@
|
||||||
|
|
||||||
$('#selectGuideDays', page).val(config.GuideDays || '').selectmenu('refresh');
|
$('#selectGuideDays', page).val(config.GuideDays || '').selectmenu('refresh');
|
||||||
|
|
||||||
var serviceOptions = liveTvInfo.Services.map(function (s) {
|
$('#chkMovies', page).checked(config.EnableMovieProviders).checkboxradio("refresh");
|
||||||
return '<option value="' + s.Name + '">' + s.Name + '</option>';
|
|
||||||
});
|
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
@ -49,8 +47,8 @@
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
ApiClient.getNamedConfiguration("livetv").done(function (config) {
|
||||||
|
|
||||||
|
|
||||||
config.GuideDays = $('#selectGuideDays', form).val() || null;
|
config.GuideDays = $('#selectGuideDays', form).val() || null;
|
||||||
|
config.EnableMovieProviders = $('#chkMovies', form).checked();
|
||||||
|
|
||||||
ApiClient.updateNamedConfiguration("livetv", config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateNamedConfiguration("livetv", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue