fixes #979 - Support personal fanart api key

This commit is contained in:
Luke Pulverenti 2015-01-12 02:01:19 -05:00
parent 72661c00da
commit 105aefc715
2 changed files with 24 additions and 6 deletions

View File

@ -46,11 +46,6 @@
<h2>${HeaderAutomaticUpdates}</h2>
<div>
<ul data-role="listview" class="ulForm">
<li>
<input type="checkbox" id="chkEnableFanartUpdates" data-mini="true" />
<label for="chkEnableFanartUpdates">${LabelAutomaticUpdatesFanart}</label>
<div class="fieldDescription">${LabelAutomaticUpdatesFanartHelp}</div>
</li>
<li>
<input type="checkbox" id="chkEnableTmdbPersonUpdates" data-mini="true" />
<label for="chkEnableTmdbPersonUpdates">${LabelAutomaticUpdatesTmdb}</label>
@ -108,7 +103,7 @@
<div class="fieldDescription">${ExtractChapterImagesHelp}</div>
</li>
</ul>
<br/>
<br />
<div>
<label for="chkExtractChaptersDuringLibraryScan">${LabelExtractChaptersDuringLibraryScan}</label>
<input type="checkbox" id="chkExtractChaptersDuringLibraryScan" />
@ -118,6 +113,26 @@
</div>
</div>
<div data-role="collapsible">
<h2>Fanart.tv</h2>
<div>
<br />
<ul data-role="listview" class="ulForm">
<li>
<label for="txtFanartApiKey">${LabelFanartApiKey}</label>
<input type="text" id="txtFanartApiKey" />
<div class="fieldDescription">${LabelFanartApiKeyHelp}</div>
<div class="fieldDescription"><a href="https://fanart.tv/get-an-api-key" target="_blank">${ButtonLearnMore}</a></div>
</li>
<li>
<input type="checkbox" id="chkEnableFanartUpdates" data-mini="true" />
<label for="chkEnableFanartUpdates">${LabelAutomaticUpdates}</label>
<div class="fieldDescription">${LabelAutomaticUpdatesFanartHelp}</div>
</li>
</ul>
</div>
</div>
<div data-role="collapsible">
<h2>${HeaderPeople}</h2>
<div>

View File

@ -19,6 +19,8 @@
$('#chkPeopleOthers', page).checked(config.PeopleMetadataOptions.DownloadOtherPeopleMetadata).checkboxradio("refresh");
$('#chkPeopleGuestStars', page).checked(config.PeopleMetadataOptions.DownloadGuestStarMetadata).checkboxradio("refresh");
$('#txtFanartApiKey', page).val(config.FanartApiKey || '');
Dashboard.hideLoadingMsg();
}
@ -200,6 +202,7 @@
config.EnableTmdbUpdates = $('#chkEnableTmdbPersonUpdates', form).checked();
config.EnableFanArtUpdates = $('#chkEnableFanartUpdates', form).checked();
config.MetadataPath = $('#txtMetadataPath', form).val();
config.FanartApiKey = $('#txtFanartApiKey', form).val();
config.PeopleMetadataOptions.DownloadActorMetadata = $('#chkPeopleActors', form).checked();
config.PeopleMetadataOptions.DownloadComposerMetadata = $('#chkPeopleComposers', form).checked();