1
0
Fork 0
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:
Luke Pulverenti 2014-05-07 22:16:11 -04:00
parent 5ecce4c307
commit 2af68415eb
4 changed files with 17 additions and 11 deletions

View file

@ -1086,6 +1086,7 @@ a.itemTag:hover {
.spotlightContainer {
min-height: 340px;
margin-top: 3em;
}
.spotlightPlaceHolder {
@ -1093,7 +1094,7 @@ a.itemTag:hover {
}
.spotlightTitle {
margin: 1em 0 .3em;
margin: 1em 0 .2em;
}
.spotlightContent {
@ -1141,7 +1142,7 @@ a.itemTag:hover {
@media all and (max-height: 1079px) and (max-width: 1400px) {
.spotlight, .spotlightPlaceHolder, .spotlightTitle {
.spotlightContainer {
display: none;
}
}

View file

@ -22,7 +22,6 @@
<form class="metadataSubtitlesForm">
<p>${HeaderSubtitleDownloadingHelp}</p>
<p>${HeaderSubtitleDownloadingMoreHelp}</p>
<fieldset data-role="controlgroup">
<legend>${HeaderDownloadSubtitlesFor}</legend>
<input type="checkbox" data-mini="true" id="chkSubtitlesMovies" />
@ -34,15 +33,21 @@
<br />
<div>
<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>
<br />
<ul data-role="listview" class="ulForm">
<li>
<input type="checkbox" id="chkRequireTextSubtitles" data-mini="true" />
<label for="chkRequireTextSubtitles">${LabelRequireTextSubtitles}</label>
<div class="fieldDescription">${LabelRequireTextSubtitlesHelp}</div>
<input type="checkbox" id="chkSkipIfAudioTrackPresent" data-mini="true" />
<label for="chkSkipIfAudioTrackPresent">${LabelSkipIfAudioTrackPresent}</label>
<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>
<label for="txtOpenSubtitleUsername">${LabelOpenSubtitlesUsername}</label>

View file

@ -53,8 +53,6 @@
html += '<div class="spotlightPlaceHolder"></div>';
$(elem).html(html);
}
function reloadSpotlight(page, allPromise) {

View file

@ -5,7 +5,8 @@
$('#chkSubtitlesMovies', page).checked(config.SubtitleOptions.DownloadMovieSubtitles).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);
$('#txtOpenSubtitlePassword', page).val('');
@ -78,7 +79,8 @@
config.SubtitleOptions.DownloadMovieSubtitles = $('#chkSubtitlesMovies', 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();