1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

adding settings around automatic tmdb updates

This commit is contained in:
Luke Pulverenti 2013-10-13 19:56:56 -04:00
parent 49c02fad69
commit 17509afb4a
4 changed files with 9 additions and 6 deletions

View file

@ -32,16 +32,12 @@
</div> </div>
<button id="btnRefresh" type="button" data-icon="refresh" data-mini="true" data-theme="b" data-inline="true">Refresh</button> <button id="btnRefresh" type="button" data-icon="refresh" data-mini="true" data-theme="b" data-inline="true">Refresh</button>
<div style="display: inline-block; vertical-align: bottom;">
<label for="chkForceRefresh">Force refresh</label>
<input type="checkbox" id="chkForceRefresh" name="chkForceRefresh" data-mini="true" checked="checked" data-inline="true" />
</div>
<div id="fldRecursive" style="display: none; vertical-align: bottom;"> <div id="fldRecursive" style="display: none; vertical-align: bottom;">
<label for="chkRecursive">Refresh child items</label> <label for="chkRecursive">Refresh child items</label>
<input type="checkbox" id="chkRecursive" name="chkRecursive" data-mini="true" checked="checked" data-inline="true" /> <input type="checkbox" id="chkRecursive" name="chkRecursive" data-mini="true" checked="checked" data-inline="true" />
</div> </div>
<div style="margin: .5em 0 1em;"> <div style="margin: .5em 0 1em;">
<div class="fieldDescription">A force refresh will cause internet metadata to be re-downloaded (if enabled, and dependent on metadata settings).</div> <div class="fieldDescription">A refresh will cause internet metadata to be re-downloaded (if enabled, and dependent on metadata settings).</div>
</div> </div>
</div> </div>

View file

@ -42,6 +42,11 @@
<label for="chkEnableTvdbUpdates">Enable automatic tvdb updates</label> <label for="chkEnableTvdbUpdates">Enable automatic tvdb updates</label>
<div class="fieldDescription">If enabled, tv series and episodes will be updated automatically as they are updated on the tvdb.com.</div> <div class="fieldDescription">If enabled, tv series and episodes will be updated automatically as they are updated on the tvdb.com.</div>
</li> </li>
<li>
<input type="checkbox" id="chkEnableTmdbPersonUpdates" name="chkEnableTmdbPersonUpdates" />
<label for="chkEnableTmdbPersonUpdates">Enable automatic tmdb updates</label>
<div class="fieldDescription">If enabled, movies and people will be updated automatically as they are updated on the themoviedb.org.</div>
</li>
<li> <li>
<button type="submit" data-theme="b" data-icon="ok"> <button type="submit" data-theme="b" data-icon="ok">
Save Save

View file

@ -1137,7 +1137,7 @@
var refreshPromise; var refreshPromise;
var force = $('#chkForceRefresh', page).checked(); var force = true;
if (currentItem.Type == "Artist") { if (currentItem.Type == "Artist") {
refreshPromise = ApiClient.refreshArtist(currentItem.Name, force); refreshPromise = ApiClient.refreshArtist(currentItem.Name, force);

View file

@ -44,6 +44,7 @@
$('#selectCountry', page).val(config.MetadataCountryCode).selectmenu("refresh"); $('#selectCountry', page).val(config.MetadataCountryCode).selectmenu("refresh");
$('#chkEnableInternetProviders', page).checked(config.EnableInternetProviders).checkboxradio("refresh"); $('#chkEnableInternetProviders', page).checked(config.EnableInternetProviders).checkboxradio("refresh");
$('#chkEnableTvdbUpdates', page).checked(config.EnableTvDbUpdates).checkboxradio("refresh"); $('#chkEnableTvdbUpdates', page).checked(config.EnableTvDbUpdates).checkboxradio("refresh");
$('#chkEnableTmdbPersonUpdates', page).checked(config.EnableTmdbUpdates).checkboxradio("refresh");
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
}, },
@ -87,6 +88,7 @@
ApiClient.getServerConfiguration().done(function (config) { ApiClient.getServerConfiguration().done(function (config) {
config.EnableTmdbUpdates = $('#chkEnableTmdbPersonUpdates', form).checked();
config.EnableTvDbUpdates = $('#chkEnableTvdbUpdates', form).checked(); config.EnableTvDbUpdates = $('#chkEnableTvdbUpdates', form).checked();
config.EnableInternetProviders = $('#chkEnableInternetProviders', form).checked(); config.EnableInternetProviders = $('#chkEnableInternetProviders', form).checked();
config.SaveLocalMeta = $('#chkSaveLocal', form).checked(); config.SaveLocalMeta = $('#chkSaveLocal', form).checked();