aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs16
-rw-r--r--MediaBrowser.Model/Entities/ImageDownloadOptions.cs23
-rw-r--r--MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj4
3 files changed, 34 insertions, 9 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index ab7d7cb9d..554e7afd1 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -243,17 +243,17 @@ namespace MediaBrowser.Model.Configuration
TmdbFetchedProfileSize = "original"; //w185 w45 h632 or original
TmdbFetchedPosterSize = "original"; //w500, w342, w185 or original
TmdbFetchedBackdropSize = "original"; //w1280, w780 or original
- DownloadMovieImages = new ImageDownloadOptions {Backdrops = true, Primary = true};
- DownloadSeriesImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true, Logo = true};
- DownloadSeasonImages = new ImageDownloadOptions {Backdrops = false, Primary = true, Banner = true};
- DownloadMusicArtistImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true, Thumb = true};
- DownloadMusicAlbumImages = new ImageDownloadOptions {Backdrops = true, Primary = false};
+ DownloadMovieImages = new ImageDownloadOptions();
+ DownloadSeriesImages = new ImageDownloadOptions();
+ DownloadSeasonImages = new ImageDownloadOptions();
+ DownloadMusicArtistImages = new ImageDownloadOptions();
+ DownloadMusicAlbumImages = new ImageDownloadOptions();
DownloadHDFanArt = true;
MaxBackdrops = 4;
- SortReplaceCharacters = new [] { ".", "+", "%" };
- SortRemoveCharacters = new [] { ",", "&", "-", "{", "}", "'" };
- SortRemoveWords = new [] { "the", "a", "an" };
+ SortReplaceCharacters = new[] { ".", "+", "%" };
+ SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" };
+ SortRemoveWords = new[] { "the", "a", "an" };
}
}
}
diff --git a/MediaBrowser.Model/Entities/ImageDownloadOptions.cs b/MediaBrowser.Model/Entities/ImageDownloadOptions.cs
index c69c759ac..92e989a34 100644
--- a/MediaBrowser.Model/Entities/ImageDownloadOptions.cs
+++ b/MediaBrowser.Model/Entities/ImageDownloadOptions.cs
@@ -1,42 +1,65 @@

namespace MediaBrowser.Model.Entities
{
+ /// <summary>
+ /// Class ImageDownloadOptions
+ /// </summary>
public class ImageDownloadOptions
{
/// <summary>
/// Download Art Image
/// </summary>
+ /// <value><c>true</c> if art; otherwise, <c>false</c>.</value>
public bool Art { get; set; }
/// <summary>
/// Download Logo Image
/// </summary>
+ /// <value><c>true</c> if logo; otherwise, <c>false</c>.</value>
public bool Logo { get; set; }
/// <summary>
/// Download Primary Image
/// </summary>
+ /// <value><c>true</c> if primary; otherwise, <c>false</c>.</value>
public bool Primary { get; set; }
/// <summary>
/// Download Backdrop Images
/// </summary>
+ /// <value><c>true</c> if backdrops; otherwise, <c>false</c>.</value>
public bool Backdrops { get; set; }
/// <summary>
/// Download Disc Image
/// </summary>
+ /// <value><c>true</c> if disc; otherwise, <c>false</c>.</value>
public bool Disc { get; set; }
/// <summary>
/// Download Thumb Image
/// </summary>
+ /// <value><c>true</c> if thumb; otherwise, <c>false</c>.</value>
public bool Thumb { get; set; }
/// <summary>
/// Download Banner Image
/// </summary>
+ /// <value><c>true</c> if banner; otherwise, <c>false</c>.</value>
public bool Banner { get; set; }
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ImageDownloadOptions"/> class.
+ /// </summary>
+ public ImageDownloadOptions()
+ {
+ Art = true;
+ Logo = true;
+ Primary = true;
+ Backdrops = true;
+ Disc = true;
+ Thumb = true;
+ Banner = true;
+ }
}
}
diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj
index 458b51571..68836a245 100644
--- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj
+++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj
@@ -288,7 +288,9 @@
<Content Include="dashboard-ui\scripts\movietrailers.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
- <Content Include="dashboard-ui\scripts\musicgenres.js" />
+ <Content Include="dashboard-ui\scripts\musicgenres.js">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="dashboard-ui\scripts\playlist.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>