mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #588 - Add option to use xbmc convention when saving images
This commit is contained in:
parent
17509afb4a
commit
04ca73a2b5
4 changed files with 22 additions and 0 deletions
|
@ -17,6 +17,14 @@
|
||||||
|
|
||||||
<form id="metadataImagesConfigurationForm">
|
<form id="metadataImagesConfigurationForm">
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
|
<li>
|
||||||
|
<label for="selectImageSavingConvention">Image saving convention: </label>
|
||||||
|
<select name="selectImageSavingConvention" id="selectImageSavingConvention">
|
||||||
|
<option value="Compatible">Compatible - MB3/Plex/Xbmc</option>
|
||||||
|
<option value="Legacy">Legacy - MB3/MB2</option>
|
||||||
|
</select>
|
||||||
|
<div class="fieldDescription">Media Browser recognized images from most major media applications. Choosing your downloading convention is useful if you also use other products.</div>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<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" />
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
|
|
||||||
$('#chkVIdeoImages', page).checked(config.EnableVideoImageExtraction).checkboxradio("refresh");
|
$('#chkVIdeoImages', page).checked(config.EnableVideoImageExtraction).checkboxradio("refresh");
|
||||||
|
|
||||||
|
$('#selectImageSavingConvention', page).val(config.ImageSavingConvention).selectmenu("refresh");
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -53,6 +55,8 @@
|
||||||
|
|
||||||
ApiClient.getServerConfiguration().done(function (config) {
|
ApiClient.getServerConfiguration().done(function (config) {
|
||||||
|
|
||||||
|
config.ImageSavingConvention = $('#selectImageSavingConvention', form).val();
|
||||||
|
|
||||||
config.MaxBackdrops = $('#txtNumbackdrops', form).val();
|
config.MaxBackdrops = $('#txtNumbackdrops', form).val();
|
||||||
|
|
||||||
config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked();
|
config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked();
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
|
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
|
||||||
config.EnableVideoImageExtraction = $('#chkVIdeoImages', page).checked();
|
config.EnableVideoImageExtraction = $('#chkVIdeoImages', page).checked();
|
||||||
|
config.ImageSavingConvention = $('#selectImageSavingConvention', page).val();
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).done(function (result) {
|
ApiClient.updateServerConfiguration(config).done(function (result) {
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,15 @@
|
||||||
<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 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>
|
||||||
|
|
||||||
|
<div style="margin: 2em 0;">
|
||||||
|
<label for="selectImageSavingConvention"><b>Image saving convention:</b></label>
|
||||||
|
<select name="selectImageSavingConvention" id="selectImageSavingConvention">
|
||||||
|
<option value="Compatible">Compatible - MB3/Plex/Xbmc</option>
|
||||||
|
<option value="Legacy">Legacy - MB3/MB2</option>
|
||||||
|
</select>
|
||||||
|
<div class="fieldDescription">Media Browser recognized images from most major media applications. Choosing your downloading convention is useful if you also use other products.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="margin: 2em 0;">
|
<div style="margin: 2em 0;">
|
||||||
<label for="chkVIdeoImages">Enable video image extraction</label>
|
<label for="chkVIdeoImages">Enable video image extraction</label>
|
||||||
<input id="chkVIdeoImages" name="chkVIdeoImages" type="checkbox" checked="checked" />
|
<input id="chkVIdeoImages" name="chkVIdeoImages" type="checkbox" checked="checked" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue