aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-04 12:52:44 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-04 12:52:44 -0500
commite080c0e0449007893e99ca399c8215f24836ea63 (patch)
tree3a77c804c47e96652c2812c47547bc0686ef3354 /MediaBrowser.Model
parentb22eec3f783341d61212e8f3252297296de20621 (diff)
parente5a78ba5bf8f0e181c9d1991ba37cb9116d32c1d (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs84
-rw-r--r--MediaBrowser.Model/Entities/ImageDownloadOptions.cs55
-rw-r--r--MediaBrowser.Model/MediaBrowser.Model.csproj1
3 files changed, 73 insertions, 67 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index 71f368397..ff7f5221b 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -1,4 +1,5 @@
-using MediaBrowser.Model.Updates;
+using MediaBrowser.Model.Entities;
+using MediaBrowser.Model.Updates;
using MediaBrowser.Model.Weather;
using ProtoBuf;
using System;
@@ -96,88 +97,34 @@ namespace MediaBrowser.Model.Configuration
public int MaxBackdrops { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether [download movie art].
+ /// Options for specific art to download for movies.
/// </summary>
- /// <value><c>true</c> if [download movie art]; otherwise, <c>false</c>.</value>
[ProtoMember(40)]
- public bool DownloadMovieArt { get; set; }
+ public ImageDownloadOptions DownloadMovieImages { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether [download movie logo].
+ /// Options for specific art to download for Series.
/// </summary>
- /// <value><c>true</c> if [download movie logo]; otherwise, <c>false</c>.</value>
[ProtoMember(41)]
- public bool DownloadMovieLogo { get; set; }
+ public ImageDownloadOptions DownloadSeriesImages { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether [download movie disc].
+ /// Options for specific art to download for Seasons.
/// </summary>
- /// <value><c>true</c> if [download movie disc]; otherwise, <c>false</c>.</value>
[ProtoMember(42)]
- public bool DownloadMovieDisc { get; set; }
+ public ImageDownloadOptions DownloadSeasonImages { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether [download TV art].
+ /// Options for specific art to download for MusicArtists.
/// </summary>
- /// <value><c>true</c> if [download TV art]; otherwise, <c>false</c>.</value>
[ProtoMember(43)]
- public bool DownloadTVArt { get; set; }
+ public ImageDownloadOptions DownloadMusicArtistImages { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether [download TV logo].
+ /// Options for specific art to download for MusicAlbums.
/// </summary>
- /// <value><c>true</c> if [download TV logo]; otherwise, <c>false</c>.</value>
[ProtoMember(44)]
- public bool DownloadTVLogo { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether [download TV thumb].
- /// </summary>
- /// <value><c>true</c> if [download TV thumb]; otherwise, <c>false</c>.</value>
- [ProtoMember(45)]
- public bool DownloadTVThumb { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether [download movie banner].
- /// </summary>
- /// <value><c>true</c> if [download movie banner]; otherwise, <c>false</c>.</value>
- [ProtoMember(46)]
- public bool DownloadMovieBanner { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether [download movie thumb].
- /// </summary>
- /// <value><c>true</c> if [download movie thumb]; otherwise, <c>false</c>.</value>
- [ProtoMember(47)]
- public bool DownloadMovieThumb { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether [download TV banner].
- /// </summary>
- /// <value><c>true</c> if [download TV banner]; otherwise, <c>false</c>.</value>
- [ProtoMember(48)]
- public bool DownloadTVBanner { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether [download TV season banner].
- /// </summary>
- /// <value><c>true</c> if [download TV season banner]; otherwise, <c>false</c>.</value>
- [ProtoMember(49)]
- public bool DownloadTVSeasonBanner { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether [download TV season thumb].
- /// </summary>
- /// <value><c>true</c> if [download TV season thumb]; otherwise, <c>false</c>.</value>
- [ProtoMember(50)]
- public bool DownloadTVSeasonThumb { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether [download TV season backdrops].
- /// </summary>
- /// <value><c>true</c> if [download TV season banner]; otherwise, <c>false</c>.</value>
- [ProtoMember(51)]
- public bool DownloadTVSeasonBackdrops { get; set; }
+ public ImageDownloadOptions DownloadMusicAlbumImages { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [download TV season backdrops].
@@ -330,8 +277,11 @@ namespace MediaBrowser.Model.Configuration
TmdbFetchedProfileSize = "w185"; //w185 w45 h632 or original
TmdbFetchedPosterSize = "w500"; //w500, w342, w185 or original
TmdbFetchedBackdropSize = "w1280"; //w1280, w780 or original
- DownloadTVSeasonBanner = true;
- DownloadTVBanner = true;
+ 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};
DownloadHDFanArt = true;
MaxBackdrops = 4;
diff --git a/MediaBrowser.Model/Entities/ImageDownloadOptions.cs b/MediaBrowser.Model/Entities/ImageDownloadOptions.cs
new file mode 100644
index 000000000..38d442705
--- /dev/null
+++ b/MediaBrowser.Model/Entities/ImageDownloadOptions.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using ProtoBuf;
+
+namespace MediaBrowser.Model.Entities
+{
+ [ProtoContract]
+ public class ImageDownloadOptions
+ {
+ /// <summary>
+ /// Download Art Image
+ /// </summary>
+ [ProtoMember(1)]
+ public bool Art { get; set; }
+
+ /// <summary>
+ /// Download Logo Image
+ /// </summary>
+ [ProtoMember(2)]
+ public bool Logo { get; set; }
+
+ /// <summary>
+ /// Download Primary Image
+ /// </summary>
+ [ProtoMember(3)]
+ public bool Primary { get; set; }
+
+ /// <summary>
+ /// Download Backdrop Images
+ /// </summary>
+ [ProtoMember(4)]
+ public bool Backdrops { get; set; }
+
+ /// <summary>
+ /// Download Disc Image
+ /// </summary>
+ [ProtoMember(5)]
+ public bool Disc { get; set; }
+
+ /// <summary>
+ /// Download Thumb Image
+ /// </summary>
+ [ProtoMember(6)]
+ public bool Thumb { get; set; }
+
+ /// <summary>
+ /// Download Banner Image
+ /// </summary>
+ [ProtoMember(7)]
+ public bool Banner { get; set; }
+
+ }
+}
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index f291e12c9..0d0e20f81 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -49,6 +49,7 @@
<Compile Include="Entities\BaseItemInfo.cs" />
<Compile Include="Connectivity\ClientConnectionInfo.cs" />
<Compile Include="Connectivity\ClientType.cs" />
+ <Compile Include="Entities\ImageDownloadOptions.cs" />
<Compile Include="Logging\ILogManager.cs" />
<Compile Include="MediaInfo\BlurayDiscInfo.cs" />
<Compile Include="Entities\ChapterInfo.cs" />