aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs4
-rw-r--r--MediaBrowser.Model/Dto/BaseItemDto.cs6
-rw-r--r--MediaBrowser.Model/Entities/IHasProviderIds.cs11
-rw-r--r--MediaBrowser.Model/Providers/ImageProviderInfo.cs6
-rw-r--r--MediaBrowser.Model/Querying/ItemFields.cs5
5 files changed, 27 insertions, 5 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index f017fdf16..923c5ab74 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -165,7 +165,7 @@ namespace MediaBrowser.Model.Configuration
/// different directories and files.
/// </summary>
/// <value>The file watcher delay.</value>
- public int FileWatcherDelay { get; set; }
+ public int RealtimeWatcherDelay { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [enable dashboard response caching].
@@ -250,7 +250,7 @@ namespace MediaBrowser.Model.Configuration
MaxResumePct = 90;
MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds);
- FileWatcherDelay = 8;
+ RealtimeWatcherDelay = 20;
RecentItemDays = 10;
diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs
index a8c486d84..1a90e75d9 100644
--- a/MediaBrowser.Model/Dto/BaseItemDto.cs
+++ b/MediaBrowser.Model/Dto/BaseItemDto.cs
@@ -117,6 +117,12 @@ namespace MediaBrowser.Model.Dto
public string Overview { get; set; }
/// <summary>
+ /// Gets or sets the name of the TMDB collection.
+ /// </summary>
+ /// <value>The name of the TMDB collection.</value>
+ public string TmdbCollectionName { get; set; }
+
+ /// <summary>
/// Gets or sets the taglines.
/// </summary>
/// <value>The taglines.</value>
diff --git a/MediaBrowser.Model/Entities/IHasProviderIds.cs b/MediaBrowser.Model/Entities/IHasProviderIds.cs
index 1c54455da..efb75412f 100644
--- a/MediaBrowser.Model/Entities/IHasProviderIds.cs
+++ b/MediaBrowser.Model/Entities/IHasProviderIds.cs
@@ -21,6 +21,17 @@ namespace MediaBrowser.Model.Entities
public static class ProviderIdsExtensions
{
/// <summary>
+ /// Determines whether [has provider identifier] [the specified instance].
+ /// </summary>
+ /// <param name="instance">The instance.</param>
+ /// <param name="provider">The provider.</param>
+ /// <returns><c>true</c> if [has provider identifier] [the specified instance]; otherwise, <c>false</c>.</returns>
+ public static bool HasProviderId(this IHasProviderIds instance, MetadataProviders provider)
+ {
+ return !string.IsNullOrEmpty(instance.GetProviderId(provider.ToString()));
+ }
+
+ /// <summary>
/// Gets a provider id
/// </summary>
/// <param name="instance">The instance.</param>
diff --git a/MediaBrowser.Model/Providers/ImageProviderInfo.cs b/MediaBrowser.Model/Providers/ImageProviderInfo.cs
index 325aa90cb..1b8a2816a 100644
--- a/MediaBrowser.Model/Providers/ImageProviderInfo.cs
+++ b/MediaBrowser.Model/Providers/ImageProviderInfo.cs
@@ -12,9 +12,9 @@
public string Name { get; set; }
/// <summary>
- /// Gets or sets the priority.
+ /// Gets or sets the order.
/// </summary>
- /// <value>The priority.</value>
- public int Priority { get; set; }
+ /// <value>The order.</value>
+ public int Order { get; set; }
}
}
diff --git a/MediaBrowser.Model/Querying/ItemFields.cs b/MediaBrowser.Model/Querying/ItemFields.cs
index 6f73e73f7..406957daa 100644
--- a/MediaBrowser.Model/Querying/ItemFields.cs
+++ b/MediaBrowser.Model/Querying/ItemFields.cs
@@ -150,6 +150,11 @@ namespace MediaBrowser.Model.Querying
/// The tags
/// </summary>
Tags,
+
+ /// <summary>
+ /// The TMDB collection name
+ /// </summary>
+ TmdbCollectionName,
/// <summary>
/// The trailer url of the item