add IMDB, TMDB and TVDB missing filters

This commit is contained in:
Shaun 2016-01-08 19:11:29 +11:00
parent 56b97cc5ef
commit 93f483f0ae
2 changed files with 36 additions and 1 deletions

View File

@ -131,6 +131,15 @@
<input class="chkYearMismatch" type="checkbox" name="chkYearMismatch" id="chkYearMismatch">
<label for="chkYearMismatch">${OptionFileMetadataYearMismatch}</label>
<input class="chkMissingImdbId" type="checkbox" name="chkMissingImdbId" id="chkMissingImdbId">
<label for="chkMissingImdbId">${OptionMissingImdbId}</label>
<input class="chkMissingTmdbId" type="checkbox" name="chkMissingTmdbId" id="chkMissingTmdbId">
<label for="chkMissingTmdbId">${OptionMissingTmdbId}</label>
<input class="chkMissingTvdbId" type="checkbox" name="chkMissingTvdbId" id="chkMissingTvdbId">
<label for="chkMissingTvdbId">${OptionMissingTvdbId}</label>
</div>
</div>
<fieldset data-role="collapsible" data-collapsed="true" data-mini="true" id="GroupStatus">

View File

@ -502,8 +502,10 @@
$('#chkMissingRating', page).checked(query.HasOfficialRating == false).checkboxradio('refresh');
$('#chkMissingOverview', page).checked(query.HasOverview == false).checkboxradio('refresh');
$('#chkYearMismatch', page).checked(query.IsYearMismatched == true).checkboxradio('refresh');
$('#chkIsLocked', page).checked(query.IsLocked == true).checkboxradio('refresh');
$('#chkMissingImdbId', page).checked(query.HasImdbId == false).checkboxradio('refresh');
$('#chkMissingTmdbId', page).checked(query.HasTmdbId == false).checkboxradio('refresh');
$('#chkMissingTvdbId', page).checked(query.HasTvdbId == false).checkboxradio('refresh');
//Episodes
$('#chkSpecialEpisode', page).checked(query.ParentIndexNumber == 0).checkboxradio('refresh');
@ -758,6 +760,30 @@
reloadItems(page);
});
$('#chkMissingImdbId', page).on('change', function () {
query.StartIndex = 0;
query.HasImdbId = this.checked ? false : null;
reloadItems(page);
});
$('#chkMissingTmdbId', page).on('change', function () {
query.StartIndex = 0;
query.HasTmdbId = this.checked ? false : null;
reloadItems(page);
});
$('#chkMissingTvdbId', page).on('change', function () {
query.StartIndex = 0;
query.HasTvdbId = this.checked ? false : null;
reloadItems(page);
});
$('#chkYearMismatch', page).on('change', function () {
query.StartIndex = 0;