mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add additional subtitle setting
This commit is contained in:
parent
5ecce4c307
commit
2af68415eb
4 changed files with 17 additions and 11 deletions
|
@ -1086,6 +1086,7 @@ a.itemTag:hover {
|
||||||
|
|
||||||
.spotlightContainer {
|
.spotlightContainer {
|
||||||
min-height: 340px;
|
min-height: 340px;
|
||||||
|
margin-top: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spotlightPlaceHolder {
|
.spotlightPlaceHolder {
|
||||||
|
@ -1093,7 +1094,7 @@ a.itemTag:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.spotlightTitle {
|
.spotlightTitle {
|
||||||
margin: 1em 0 .3em;
|
margin: 1em 0 .2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spotlightContent {
|
.spotlightContent {
|
||||||
|
@ -1141,7 +1142,7 @@ a.itemTag:hover {
|
||||||
|
|
||||||
@media all and (max-height: 1079px) and (max-width: 1400px) {
|
@media all and (max-height: 1079px) and (max-width: 1400px) {
|
||||||
|
|
||||||
.spotlight, .spotlightPlaceHolder, .spotlightTitle {
|
.spotlightContainer {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
<form class="metadataSubtitlesForm">
|
<form class="metadataSubtitlesForm">
|
||||||
<p>${HeaderSubtitleDownloadingHelp}</p>
|
<p>${HeaderSubtitleDownloadingHelp}</p>
|
||||||
<p>${HeaderSubtitleDownloadingMoreHelp}</p>
|
|
||||||
<fieldset data-role="controlgroup">
|
<fieldset data-role="controlgroup">
|
||||||
<legend>${HeaderDownloadSubtitlesFor}</legend>
|
<legend>${HeaderDownloadSubtitlesFor}</legend>
|
||||||
<input type="checkbox" data-mini="true" id="chkSubtitlesMovies" />
|
<input type="checkbox" data-mini="true" id="chkSubtitlesMovies" />
|
||||||
|
@ -34,15 +33,21 @@
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<label>${LabelDownloadLanguages}</label>
|
<label>${LabelDownloadLanguages}</label>
|
||||||
<div class="downloadLanguages" style="max-height: 170px; overflow-y: auto; border: 1px solid #e8e8e8;">
|
<div class="downloadLanguages" style="max-height: 150px; overflow-y: auto; border: 1px solid #e8e8e8;">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<input type="checkbox" id="chkRequireTextSubtitles" data-mini="true" />
|
<input type="checkbox" id="chkSkipIfAudioTrackPresent" data-mini="true" />
|
||||||
<label for="chkRequireTextSubtitles">${LabelRequireTextSubtitles}</label>
|
<label for="chkSkipIfAudioTrackPresent">${LabelSkipIfAudioTrackPresent}</label>
|
||||||
<div class="fieldDescription">${LabelRequireTextSubtitlesHelp}</div>
|
<div class="fieldDescription">${LabelSkipIfAudioTrackPresentHelp}</div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<input type="checkbox" id="chkSkipIfGraphicalSubsPresent" data-mini="true" />
|
||||||
|
<label for="chkSkipIfGraphicalSubsPresent">${LabelSkipIfGraphicalSubsPresent}</label>
|
||||||
|
<div class="fieldDescription">${LabelSkipIfGraphicalSubsPresentHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtOpenSubtitleUsername">${LabelOpenSubtitlesUsername}</label>
|
<label for="txtOpenSubtitleUsername">${LabelOpenSubtitlesUsername}</label>
|
||||||
|
|
|
@ -53,8 +53,6 @@
|
||||||
html += '<div class="spotlightPlaceHolder"></div>';
|
html += '<div class="spotlightPlaceHolder"></div>';
|
||||||
|
|
||||||
$(elem).html(html);
|
$(elem).html(html);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function reloadSpotlight(page, allPromise) {
|
function reloadSpotlight(page, allPromise) {
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
$('#chkSubtitlesMovies', page).checked(config.SubtitleOptions.DownloadMovieSubtitles).checkboxradio("refresh");
|
$('#chkSubtitlesMovies', page).checked(config.SubtitleOptions.DownloadMovieSubtitles).checkboxradio("refresh");
|
||||||
$('#chkSubtitlesEpisodes', page).checked(config.SubtitleOptions.DownloadEpisodeSubtitles).checkboxradio("refresh");
|
$('#chkSubtitlesEpisodes', page).checked(config.SubtitleOptions.DownloadEpisodeSubtitles).checkboxradio("refresh");
|
||||||
|
|
||||||
$('#chkRequireTextSubtitles', page).checked(config.SubtitleOptions.RequireTextSubtitles).checkboxradio("refresh");
|
$('#chkSkipIfGraphicalSubsPresent', page).checked(config.SubtitleOptions.SkipIfGraphicalSubtitlesPresent).checkboxradio("refresh");
|
||||||
|
$('#chkSkipIfAudioTrackPresent', page).checked(config.SubtitleOptions.SkipIfAudioTrackMatches).checkboxradio("refresh");
|
||||||
|
|
||||||
$('#txtOpenSubtitleUsername', page).val(config.SubtitleOptions.OpenSubtitlesUsername);
|
$('#txtOpenSubtitleUsername', page).val(config.SubtitleOptions.OpenSubtitlesUsername);
|
||||||
$('#txtOpenSubtitlePassword', page).val('');
|
$('#txtOpenSubtitlePassword', page).val('');
|
||||||
|
@ -78,7 +79,8 @@
|
||||||
config.SubtitleOptions.DownloadMovieSubtitles = $('#chkSubtitlesMovies', form).checked();
|
config.SubtitleOptions.DownloadMovieSubtitles = $('#chkSubtitlesMovies', form).checked();
|
||||||
config.SubtitleOptions.DownloadEpisodeSubtitles = $('#chkSubtitlesEpisodes', form).checked();
|
config.SubtitleOptions.DownloadEpisodeSubtitles = $('#chkSubtitlesEpisodes', form).checked();
|
||||||
|
|
||||||
config.SubtitleOptions.RequireTextSubtitles = $('#chkRequireTextSubtitles', form).checked();
|
config.SubtitleOptions.SkipIfGraphicalSubtitlesPresent = $('#chkSkipIfGraphicalSubsPresent', form).checked();
|
||||||
|
config.SubtitleOptions.SkipIfAudioTrackMatches = $('#chkSkipIfAudioTrackPresent', form).checked();
|
||||||
|
|
||||||
config.SubtitleOptions.OpenSubtitlesUsername = $('#txtOpenSubtitleUsername', form).val();
|
config.SubtitleOptions.OpenSubtitlesUsername = $('#txtOpenSubtitleUsername', form).val();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue