mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add video image extraction back to library scan
This commit is contained in:
parent
3f71006da5
commit
35eb92de60
6 changed files with 17 additions and 35 deletions
|
@ -123,33 +123,9 @@
|
|||
<br />
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li>
|
||||
<label for="selectTmdbPosterDownloadSize">Tmdb poster download size: </label>
|
||||
<select id="selectTmdbPosterDownloadSize" name="selectTmdbPosterDownloadSize">
|
||||
<option value="original">original</option>
|
||||
<option value="w92">w92</option>
|
||||
<option value="w154">w154</option>
|
||||
<option value="w185">w185</option>
|
||||
<option value="w342">w342</option>
|
||||
<option value="w500">w500</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label for="selectTmdbBackdropDownloadSize">Tmdb backdrop download size: </label>
|
||||
<select id="selectTmdbBackdropDownloadSize" name="selectTmdbBackdropDownloadSize">
|
||||
<option value="original">original</option>
|
||||
<option value="w380">w380</option>
|
||||
<option value="w780">w780</option>
|
||||
<option value="w1280">w1280</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label for="selectTmdbPersonImageDownloadSize">Tmdb person image download size: </label>
|
||||
<select id="selectTmdbPersonImageDownloadSize" name="selectTmdbPersonImageDownloadSize">
|
||||
<option value="original">original</option>
|
||||
<option value="w45">w45</option>
|
||||
<option value="w185">w185</option>
|
||||
<option value="h632">h632</option>
|
||||
</select>
|
||||
<label for="chkVIdeoImages">Enable video image extraction</label>
|
||||
<input id="chkVIdeoImages" name="chkVIdeoImages" type="checkbox" checked="checked" />
|
||||
<div class="fieldDescription">For videos that don't already have images, and that we're uanble to find internet images for. This will add some additional time to the initial library scan but will result in a more pleasing presentation.</div>
|
||||
</li>
|
||||
<li>
|
||||
<button type="submit" data-theme="b" data-icon="ok">
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
|
||||
load: function (page, config) {
|
||||
|
||||
$('#selectTmdbPersonImageDownloadSize', page).val(config.TmdbFetchedProfileSize).selectmenu("refresh");
|
||||
$('#selectTmdbPosterDownloadSize', page).val(config.TmdbFetchedPosterSize).selectmenu("refresh");
|
||||
$('#selectTmdbBackdropDownloadSize', page).val(config.TmdbFetchedBackdropSize).selectmenu("refresh");
|
||||
|
||||
$('#chkRefreshItemImages', page).checked(!config.RefreshItemImages).checkboxradio("refresh");
|
||||
$('#txtNumbackdrops', page).val(config.MaxBackdrops);
|
||||
|
||||
|
@ -46,6 +42,8 @@
|
|||
$('#chkDownloadAlbumBackdrops', page).checked(config.DownloadMusicAlbumImages.Backdrops).checkboxradio("refresh");
|
||||
$('#chkMusicAlbumDisc', page).checked(config.DownloadMusicAlbumImages.Disc).checkboxradio("refresh");
|
||||
|
||||
$('#chkVIdeoImages', page).checked(config.EnableVideoImageExtraction).checkboxradio("refresh");
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
},
|
||||
|
||||
|
@ -56,10 +54,6 @@
|
|||
|
||||
ApiClient.getServerConfiguration().done(function (config) {
|
||||
|
||||
config.TmdbFetchedProfileSize = $('#selectTmdbPersonImageDownloadSize', form).val();
|
||||
config.TmdbFetchedPosterSize = $('#selectTmdbPosterDownloadSize', form).val();
|
||||
config.TmdbFetchedBackdropSize = $('#selectTmdbBackdropDownloadSize', form).val();
|
||||
|
||||
config.RefreshItemImages = !$('#chkRefreshItemImages', form).checked();
|
||||
config.MaxBackdrops = $('#txtNumbackdrops', form).val();
|
||||
|
||||
|
@ -89,6 +83,8 @@
|
|||
config.DownloadMusicAlbumImages.Backdrops = $('#chkDownloadAlbumBackdrops', form).checked();
|
||||
config.DownloadMusicAlbumImages.Disc = $('#chkMusicAlbumDisc', form).checked();
|
||||
|
||||
config.EnableVideoImageExtraction = $('#chkVIdeoImages', form).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
||||
|
|
|
@ -518,6 +518,7 @@ var Dashboard = {
|
|||
|
||||
resetPluginSecurityInfo: function () {
|
||||
Dashboard.getPluginSecurityInfoPromise = null;
|
||||
Dashboard.validateCurrentUser();
|
||||
},
|
||||
|
||||
ensureHeader: function (page, user) {
|
||||
|
|
|
@ -45,8 +45,10 @@
|
|||
};
|
||||
|
||||
ApiClient.updatePluginSecurityInfo(info).done(function () {
|
||||
|
||||
Dashboard.resetPluginSecurityInfo();
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
SupporterKeyPage.load();
|
||||
});
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
ApiClient.getServerConfiguration().done(function (config) {
|
||||
|
||||
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
|
||||
config.EnableVideoImageExtraction = $('#chkVIdeoImages', page).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(function(result) {
|
||||
|
||||
|
|
|
@ -19,6 +19,12 @@
|
|||
<div class="fieldDescription">Saving artwork and metadata directly into media folders will put them in a place where they can be easily edited and help reduce the size of the server's data folder.</div>
|
||||
</div>
|
||||
|
||||
<div style="margin: 2em 0;">
|
||||
<label for="chkVIdeoImages">Enable video image extraction</label>
|
||||
<input id="chkVIdeoImages" name="chkVIdeoImages" type="checkbox" checked="checked" />
|
||||
<div class="fieldDescription">For videos that don't already have images, and that we're uanble to find internet images for. This will add some additional time to the initial library scan but will result in a more pleasing presentation.</div>
|
||||
</div>
|
||||
|
||||
<div style="margin: 2em 0;">
|
||||
<label for="chkChapters">Enable video chapter image extraction</label>
|
||||
<input id="chkChapters" name="chkChapters" type="checkbox" checked="checked" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue