Config page changes for image options

This commit is contained in:
Eric Reed 2013-03-04 11:59:35 -05:00
parent 7710b3695c
commit 62448129a6
3 changed files with 111 additions and 51 deletions

View File

@ -280,7 +280,7 @@ namespace MediaBrowser.Model.Configuration
DownloadMovieImages = new ImageDownloadOptions {Backdrops = true, Primary = true}; DownloadMovieImages = new ImageDownloadOptions {Backdrops = true, Primary = true};
DownloadSeriesImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true, Logo = true}; DownloadSeriesImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true, Logo = true};
DownloadSeasonImages = new ImageDownloadOptions {Backdrops = false, Primary = true, Banner = true}; DownloadSeasonImages = new ImageDownloadOptions {Backdrops = false, Primary = true, Banner = true};
DownloadMusicArtistImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true}; DownloadMusicArtistImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true, Thumb = true};
DownloadMusicAlbumImages = new ImageDownloadOptions {Backdrops = true, Primary = false}; DownloadMusicAlbumImages = new ImageDownloadOptions {Backdrops = true, Primary = false};
DownloadHDFanArt = true; DownloadHDFanArt = true;
MaxBackdrops = 4; MaxBackdrops = 4;

View File

@ -30,44 +30,92 @@
</li> </li>
<li> <li>
<label>Enable additional image downloading:</label> <label>Enable additional image downloading:</label>
<div data-role="controlgroup">
<div data-role="collapsible">
<h3>Movies</h3>
<div data-role="controlgroup">
<input type="checkbox" data-mini="true" id="chkDownloadMovieArt" name="chkDownloadMovieArt" />
<label for="chkDownloadMovieArt">Movie Art</label>
<input type="checkbox" data-mini="true" id="chkDownloadMovieArt" name="chkDownloadMovieArt" /> <input type="checkbox" data-mini="true" id="chkDownloadMovieBanner" name="chkDownloadMovieBanner" />
<label for="chkDownloadMovieArt">Movie Art</label> <label for="chkDownloadMovieBanner">Movie Banner</label>
<input type="checkbox" data-mini="true" id="chkDownloadMovieBanner" name="chkDownloadMovieBanner" /> <input type="checkbox" data-mini="true" id="chkDownloadMovieDisc" name="chkDownloadMovieDisc" />
<label for="chkDownloadMovieBanner">Movie Banner</label> <label for="chkDownloadMovieDisc">Movie Disc</label>
<input type="checkbox" data-mini="true" id="chkDownloadMovieDisc" name="chkDownloadMovieDisc" /> <input type="checkbox" data-mini="true" id="chkDownloadMovieLogo" name="chkDownloadMovieLogo" />
<label for="chkDownloadMovieDisc">Movie Disc</label> <label for="chkDownloadMovieLogo">Movie Logo</label>
<input type="checkbox" data-mini="true" id="chkDownloadMovieLogo" name="chkDownloadMovieLogo" /> <input type="checkbox" data-mini="true" id="chkDownloadMovieThumb" name="chkDownloadMovieThumb" />
<label for="chkDownloadMovieLogo">Movie Logo</label> <label for="chkDownloadMovieThumb">Movie Thumb</label>
<input type="checkbox" data-mini="true" id="chkDownloadMovieThumb" name="chkDownloadMovieThumb" />
<label for="chkDownloadMovieThumb">Movie Thumb</label> </div>
</div>
<input type="checkbox" data-mini="true" id="chKDownloadTVArt" name="chKDownloadTVArt" /> <div data-role="collapsible">
<label for="chKDownloadTVArt">TV Series Art</label> <h3>TV Series</h3>
<div data-role="controlgroup">
<input type="checkbox" data-mini="true" id="chKDownloadTVArt" name="chKDownloadTVArt" />
<label for="chKDownloadTVArt">TV Series Art</label>
<input type="checkbox" data-mini="true" id="chkDownloadTVBanner" name="chkDownloadTVBanner" /> <input type="checkbox" data-mini="true" id="chkDownloadTVBanner" name="chkDownloadTVBanner" />
<label for="chkDownloadTVBanner">TV Series Banner</label> <label for="chkDownloadTVBanner">TV Series Banner</label>
<input type="checkbox" data-mini="true" id="chkDownloadTVLogo" name="chkDownloadTVLogo" /> <input type="checkbox" data-mini="true" id="chkDownloadTVLogo" name="chkDownloadTVLogo" />
<label for="chkDownloadTVLogo">TV Series Logo</label> <label for="chkDownloadTVLogo">TV Series Logo</label>
<input type="checkbox" data-mini="true" id="chkDownloadTVThumb" name="chkDownloadTVThumb" /> <input type="checkbox" data-mini="true" id="chkDownloadTVThumb" name="chkDownloadTVThumb" />
<label for="chkDownloadTVThumb">TV Series Thumb</label> <label for="chkDownloadTVThumb">TV Series Thumb</label>
</div>
</div>
<input type="checkbox" data-mini="true" id="chkDownloadSeasonBackdrops" name="chkDownloadSeasonBackdrops" />
<label for="chkDownloadSeasonBackdrops">TV Season Backdrops</label>
<input type="checkbox" data-mini="true" id="chkDownloadSeasonBanner" name="chkDownloadSeasonBanner" /> <div data-role="collapsible">
<label for="chkDownloadSeasonBanner">TV Season Banner</label> <h3>TV Seasons</h3>
<div data-role="controlgroup">
<input type="checkbox" data-mini="true" id="chkDownloadSeasonBackdrops" name="chkDownloadSeasonBackdrops" />
<label for="chkDownloadSeasonBackdrops">TV Season Backdrops</label>
<input type="checkbox" data-mini="true" id="chkDownloadSeasonBanner" name="chkDownloadSeasonBanner" />
<label for="chkDownloadSeasonBanner">TV Season Banner</label>
<input type="checkbox" data-mini="true" id="chkDownloadSeasonThumb" name="chkDownloadSeasonThumb" />
<label for="chkDownloadSeasonThumb">TV Season Thumb</label>
</div>
</div>
<div data-role="collapsible">
<h3>Music Artists</h3>
<div data-role="controlgroup">
<input type="checkbox" data-mini="true" id="chkDownloadArtistThumb" name="chkDownloadArtistThumb" />
<label for="chkDownloadArtistThumb">Music Artist Thumb (primary image)</label>
<input type="checkbox" data-mini="true" id="chkDownloadArtistBackdrops" name="chkDownloadArtistBackdrops" />
<label for="chkDownloadArtistBackdrops">Music Artist Backdrops</label>
<input type="checkbox" data-mini="true" id="chkDownloadArtistLogo" name="chkDownloadArtistLogo" />
<label for="chkDownloadArtistLogo">Music Artist Logo</label>
<input type="checkbox" data-mini="true" id="chkDownloadArtistBanner" name="chkDownloadArtistBanner" />
<label for="chkDownloadArtistBanner">Music Artist Banner</label>
</div>
</div>
<div data-role="collapsible">
<h3>Music Albums</h3>
<div data-role="controlgroup">
<input type="checkbox" data-mini="true" id="chkDownloadAlbumPrimary" name="chkDownloadAlbumPrimary" />
<label for="chkDownloadAlbumPrimary">Music Album Cover</label>
<input type="checkbox" data-mini="true" id="chkDownloadAlbumBackdrops" name="chkDownloadAlbumBackdrops" />
<label for="chkDownloadAlbumBackdrops">Music Album Backdrops</label>
</div>
</div>
<input type="checkbox" data-mini="true" id="chkDownloadSeasonThumb" name="chkDownloadSeasonThumb" />
<label for="chkDownloadSeasonThumb">TV Season Thumb</label>
</div>
</li> </li>
<li> <li>
<label for="selectTmdbPosterDownloadSize">Tmdb poster download size: </label> <label for="selectTmdbPosterDownloadSize">Tmdb poster download size: </label>

View File

@ -20,18 +20,24 @@
$('#chkRefreshItemImages', page).checked(config.RefreshItemImages).checkboxradio("refresh"); $('#chkRefreshItemImages', page).checked(config.RefreshItemImages).checkboxradio("refresh");
$('#txtNumbackdrops', page).val(config.MaxBackdrops); $('#txtNumbackdrops', page).val(config.MaxBackdrops);
$('#chkDownloadMovieArt', page).checked(config.DownloadMovieArt).checkboxradio("refresh"); $('#chkDownloadMovieArt', page).checked(config.DownloadMovieImages.Art).checkboxradio("refresh");
$('#chkDownloadMovieBanner', page).checked(config.DownloadMovieBanner).checkboxradio("refresh"); $('#chkDownloadMovieBanner', page).checked(config.DownloadMovieImages.Banner).checkboxradio("refresh");
$('#chkDownloadMovieDisc', page).checked(config.DownloadMovieDisc).checkboxradio("refresh"); $('#chkDownloadMovieDisc', page).checked(config.DownloadMovieImages.Disc).checkboxradio("refresh");
$('#chkDownloadMovieLogo', page).checked(config.DownloadMovieLogo).checkboxradio("refresh"); $('#chkDownloadMovieLogo', page).checked(config.DownloadMovieImages.Logo).checkboxradio("refresh");
$('#chkDownloadMovieThumb', page).checked(config.DownloadMovieThumb).checkboxradio("refresh"); $('#chkDownloadMovieThumb', page).checked(config.DownloadMovieImages.Thumb).checkboxradio("refresh");
$('#chKDownloadTVArt', page).checked(config.DownloadTVArt).checkboxradio("refresh"); $('#chKDownloadTVArt', page).checked(config.DownloadSeriesImages.Art).checkboxradio("refresh");
$('#chkDownloadTVBanner', page).checked(config.DownloadTVBanner).checkboxradio("refresh"); $('#chkDownloadTVBanner', page).checked(config.DownloadSeriesImages.Banner).checkboxradio("refresh");
$('#chkDownloadTVLogo', page).checked(config.DownloadTVLogo).checkboxradio("refresh"); $('#chkDownloadTVLogo', page).checked(config.DownloadSeriesImages.Logo).checkboxradio("refresh");
$('#chkDownloadTVThumb', page).checked(config.DownloadTVThumb).checkboxradio("refresh"); $('#chkDownloadTVThumb', page).checked(config.DownloadSeriesImages.Thumb).checkboxradio("refresh");
$('#chkDownloadSeasonBanner', page).checked(config.DownloadTVSeasonBanner).checkboxradio("refresh"); $('#chkDownloadSeasonBanner', page).checked(config.DownloadSeasonImages.Banner).checkboxradio("refresh");
$('#chkDownloadSeasonThumb', page).checked(config.DownloadTVSeasonThumb).checkboxradio("refresh"); $('#chkDownloadSeasonThumb', page).checked(config.DownloadSeasonImages.Thumb).checkboxradio("refresh");
$('#chkDownloadSeasonBackdrops', page).checked(config.DownloadTVSeasonBackdrops).checkboxradio("refresh"); $('#chkDownloadSeasonBackdrops', page).checked(config.DownloadSeasonImages.Backdrops).checkboxradio("refresh");
$('#chkDownloadArtistThumb', page).checked(config.DownloadMusicArtistImages.Thumb).checkboxradio("refresh");
$('#chkDownloadArtistBackdrops', page).checked(config.DownloadMusicArtistImages.Backdrops).checkboxradio("refresh");
$('#chkDownloadArtistLogo', page).checked(config.DownloadMusicArtistImages.Logo).checkboxradio("refresh");
$('#chkDownloadArtistBanner', page).checked(config.DownloadMusicArtistImages.Banner).checkboxradio("refresh");
$('#chkDownloadAlbumPrimary', page).checked(config.DownloadMusicAlbumImages.Primary).checkboxradio("refresh");
$('#chkDownloadAlbumBackdrops', page).checked(config.DownloadMusicAlbumImages.Backdrops).checkboxradio("refresh");
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
}, },
@ -50,18 +56,24 @@
config.RefreshItemImages = $('#chkRefreshItemImages', form).checked(); config.RefreshItemImages = $('#chkRefreshItemImages', form).checked();
config.MaxBackdrops = $('#txtNumbackdrops', form).val(); config.MaxBackdrops = $('#txtNumbackdrops', form).val();
config.DownloadMovieArt = $('#chkDownloadMovieArt', form).checked(); config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked();
config.DownloadMovieBanner = $('#chkDownloadMovieBanner', form).checked(); config.DownloadMovieImages.Banner = $('#chkDownloadMovieBanner', form).checked();
config.DownloadMovieDisc = $('#chkDownloadMovieDisc', form).checked(); config.DownloadMovieImages.Disc = $('#chkDownloadMovieDisc', form).checked();
config.DownloadMovieLogo = $('#chkDownloadMovieLogo', form).checked(); config.DownloadMovieImages.Logo = $('#chkDownloadMovieLogo', form).checked();
config.DownloadMovieThumb = $('#chkDownloadMovieThumb', form).checked(); config.DownloadMovieImages.Thumb = $('#chkDownloadMovieThumb', form).checked();
config.DownloadTVArt = $('#chKDownloadTVArt', form).checked(); config.DownloadSeriesImages.Art = $('#chKDownloadTVArt', form).checked();
config.DownloadTVBanner = $('#chkDownloadTVBanner', form).checked(); config.DownloadSeriesImages.Banner = $('#chkDownloadTVBanner', form).checked();
config.DownloadTVLogo = $('#chkDownloadTVLogo', form).checked(); config.DownloadSeriesImages.Logo = $('#chkDownloadTVLogo', form).checked();
config.DownloadTVThumb = $('#chkDownloadTVThumb', form).checked(); config.DownloadSeriesImages.Thumb = $('#chkDownloadTVThumb', form).checked();
config.DownloadTVSeasonBanner = $('#chkDownloadSeasonBanner', form).checked(); config.DownloadSeasonImages.Banner = $('#chkDownloadSeasonBanner', form).checked();
config.DownloadTVSeasonThumb = $('#chkDownloadSeasonThumb', form).checked(); config.DownloadSeasonImages.Thumb = $('#chkDownloadSeasonThumb', form).checked();
config.DownloadTVSeasonBackdrops = $('#chkDownloadSeasonBackdrops', form).checked(); config.DownloadSeasonImages.Backdrops = $('#chkDownloadSeasonBackdrops', form).checked();
config.DownloadMusicArtistImages.Backdrops = $('#chkDownloadArtistBackdrops', form).checked();
config.DownloadMusicArtistImages.Logo = $('#chkDownloadArtistLogo', form).checked();
config.DownloadMusicArtistImages.Thumb = $('#chkDownloadArtistThumb', form).checked();
config.DownloadMusicArtistImages.Banner = $('#chkDownloadArtistBanner', form).checked();
config.DownloadMusicAlbumImages.Primary = $('#chkDownloadAlbumPrimary', form).checked();
config.DownloadMusicAlbumImages.Backdrops = $('#chkDownloadAlbumBackdrops', form).checked();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult); ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
}); });