mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update sat discovery
This commit is contained in:
parent
f89538cb24
commit
bcfec3d6fc
3 changed files with 35 additions and 37 deletions
|
@ -2,11 +2,11 @@
|
|||
|
||||
function loadPage(page, config, languages) {
|
||||
|
||||
$('#chkSubtitlesMovies', page).checked(config.DownloadMovieSubtitles).checkboxradio("refresh");
|
||||
$('#chkSubtitlesEpisodes', page).checked(config.DownloadEpisodeSubtitles).checkboxradio("refresh");
|
||||
$('#chkSubtitlesMovies', page).checked(config.DownloadMovieSubtitles);
|
||||
$('#chkSubtitlesEpisodes', page).checked(config.DownloadEpisodeSubtitles);
|
||||
|
||||
$('#chkSkipIfGraphicalSubsPresent', page).checked(config.SkipIfGraphicalSubtitlesPresent).checkboxradio("refresh");
|
||||
$('#chkSkipIfAudioTrackPresent', page).checked(config.SkipIfAudioTrackMatches).checkboxradio("refresh");
|
||||
$('#chkSkipIfGraphicalSubsPresent', page).checked(config.SkipIfGraphicalSubtitlesPresent);
|
||||
$('#chkSkipIfAudioTrackPresent', page).checked(config.SkipIfAudioTrackMatches);
|
||||
|
||||
$('#txtOpenSubtitleUsername', page).val(config.OpenSubtitlesUsername);
|
||||
$('#txtOpenSubtitlePassword', page).val('');
|
||||
|
@ -18,20 +18,15 @@
|
|||
|
||||
function populateLanguages(page, config, languages) {
|
||||
|
||||
var html = '<div data-role="controlgroup" style="margin:0;">';
|
||||
var html = '';
|
||||
|
||||
for (var i = 0, length = languages.length; i < length; i++) {
|
||||
|
||||
var culture = languages[i];
|
||||
|
||||
var id = "chkSubtitleLanguage" + i;
|
||||
|
||||
html += '<label style="font-size:13px;" for="' + id + '">' + culture.DisplayName + '</label>';
|
||||
html += '<input class="chkLang" data-lang="' + culture.ThreeLetterISOLanguageName.toLowerCase() + '" type="checkbox" id="' + id + '" />';
|
||||
html += '<paper-checkbox class="chkLang" data-lang="' + culture.ThreeLetterISOLanguageName.toLowerCase() + '">' + culture.DisplayName + '</paper-checkbox>';
|
||||
}
|
||||
|
||||
html += '</div>';
|
||||
|
||||
$('.downloadLanguages', page).html(html).trigger('create');
|
||||
|
||||
var langs = config.DownloadLanguages || [];
|
||||
|
@ -40,7 +35,7 @@
|
|||
|
||||
this.checked = langs.indexOf(this.getAttribute('data-lang')) != -1;
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
});
|
||||
}
|
||||
|
||||
function onSubmit() {
|
||||
|
@ -64,7 +59,11 @@
|
|||
config.OpenSubtitlesPasswordHash = newPassword;
|
||||
}
|
||||
|
||||
config.DownloadLanguages = $('.chkLang:checked', form).get().map(function (c) {
|
||||
config.DownloadLanguages = $('.chkLang', form).get().filter(function (c) {
|
||||
|
||||
return c.checked;
|
||||
|
||||
}).map(function (c) {
|
||||
|
||||
return c.getAttribute('data-lang');
|
||||
|
||||
|
|
|
@ -2246,10 +2246,10 @@ var AppInfo = {};
|
|||
deps.push('registrationservices');
|
||||
|
||||
deps.push('cordova/back');
|
||||
deps.push('cordova/links');
|
||||
|
||||
if (browserInfo.android) {
|
||||
deps.push('cordova/android/androidcredentials');
|
||||
deps.push('cordova/links');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue