mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #615 - Add settings to control movie/series min backdrop download size
This commit is contained in:
parent
cabe6de6a2
commit
c08c0632e1
3 changed files with 13 additions and 1 deletions
|
@ -29,6 +29,14 @@
|
||||||
<label for="txtNumbackdrops">Max number of backdrops per item: </label>
|
<label for="txtNumbackdrops">Max number of backdrops per item: </label>
|
||||||
<input type="number" id="txtNumbackdrops" name="txtNumbackdrops" pattern="[0-9]*" required="required" min="1" />
|
<input type="number" id="txtNumbackdrops" name="txtNumbackdrops" pattern="[0-9]*" required="required" min="1" />
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="txtMinMovieBackdropDownloadWidth">Minimum movie backdrop download width: </label>
|
||||||
|
<input type="number" id="txtMinMovieBackdropDownloadWidth" name="txtMinMovieBackdropDownloadWidth" pattern="[0-9]*" required="required" min="1" />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="txtMinSeriesBackdropDownloadWidth">Minimum tv series backdrop download width: </label>
|
||||||
|
<input type="number" id="txtMinSeriesBackdropDownloadWidth" name="txtMinSeriesBackdropDownloadWidth" pattern="[0-9]*" required="required" min="1" />
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Enable additional image downloading:</p>
|
<p>Enable additional image downloading:</p>
|
||||||
<div data-role="collapsible">
|
<div data-role="collapsible">
|
||||||
|
@ -124,7 +132,6 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<label for="chkVIdeoImages">Enable video image extraction</label>
|
<label for="chkVIdeoImages">Enable video image extraction</label>
|
||||||
|
|
|
@ -501,6 +501,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
self.showDownloadMenu = function (type) {
|
self.showDownloadMenu = function (type) {
|
||||||
|
browsableImageStartIndex = 0;
|
||||||
browsableImageType = type;
|
browsableImageType = type;
|
||||||
$('.lnkBrowseImages').trigger('click');
|
$('.lnkBrowseImages').trigger('click');
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
load: function (page, config) {
|
load: function (page, config) {
|
||||||
|
|
||||||
$('#txtNumbackdrops', page).val(config.MaxBackdrops);
|
$('#txtNumbackdrops', page).val(config.MaxBackdrops);
|
||||||
|
$('#txtMinMovieBackdropDownloadWidth', page).val(config.MinMovieBackdropDownloadWidth);
|
||||||
|
$('#txtMinSeriesBackdropDownloadWidth', page).val(config.MinSeriesBackdropDownloadWidth);
|
||||||
|
|
||||||
$('#chkDownloadMovieArt', page).checked(config.DownloadMovieImages.Art).checkboxradio("refresh");
|
$('#chkDownloadMovieArt', page).checked(config.DownloadMovieImages.Art).checkboxradio("refresh");
|
||||||
$('#chkDownloadMovieBackdrops', page).checked(config.DownloadMovieImages.Backdrops).checkboxradio("refresh");
|
$('#chkDownloadMovieBackdrops', page).checked(config.DownloadMovieImages.Backdrops).checkboxradio("refresh");
|
||||||
|
@ -58,6 +60,8 @@
|
||||||
config.ImageSavingConvention = $('#selectImageSavingConvention', form).val();
|
config.ImageSavingConvention = $('#selectImageSavingConvention', form).val();
|
||||||
|
|
||||||
config.MaxBackdrops = $('#txtNumbackdrops', form).val();
|
config.MaxBackdrops = $('#txtNumbackdrops', form).val();
|
||||||
|
config.MinMovieBackdropDownloadWidth = $('#txtMinMovieBackdropDownloadWidth', form).val();
|
||||||
|
config.MinSeriesBackdropDownloadWidth = $('#txtMinSeriesBackdropDownloadWidth', form).val();
|
||||||
|
|
||||||
config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked();
|
config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked();
|
||||||
config.DownloadMovieImages.Backdrops = $('#chkDownloadMovieBackdrops', form).checked();
|
config.DownloadMovieImages.Backdrops = $('#chkDownloadMovieBackdrops', form).checked();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue