aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/Plugins/Tmdb/Configuration/PluginConfiguration.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Providers/Plugins/Tmdb/Configuration/PluginConfiguration.cs')
-rw-r--r--MediaBrowser.Providers/Plugins/Tmdb/Configuration/PluginConfiguration.cs47
1 files changed, 47 insertions, 0 deletions
diff --git a/MediaBrowser.Providers/Plugins/Tmdb/Configuration/PluginConfiguration.cs b/MediaBrowser.Providers/Plugins/Tmdb/Configuration/PluginConfiguration.cs
index 78405c21fc..b3a67189bb 100644
--- a/MediaBrowser.Providers/Plugins/Tmdb/Configuration/PluginConfiguration.cs
+++ b/MediaBrowser.Providers/Plugins/Tmdb/Configuration/PluginConfiguration.cs
@@ -1,3 +1,5 @@
+#pragma warning disable CA1819 // Properties should not return arrays
+
using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Providers.Plugins.Tmdb
@@ -34,6 +36,51 @@ namespace MediaBrowser.Providers.Plugins.Tmdb
public bool ImportSeasonName { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether unaired (upcoming) episodes should be created as
+ /// virtual items from the episode list provided by TMDb. These populate the "Upcoming" view.
+ /// Enabling this will increase scan times.
+ /// </summary>
+ public bool ImportUnairedEpisodes { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether already aired episodes that are not present in the
+ /// library should be created as virtual items from the episode list provided by TMDb. These
+ /// surface as missing episodes. Enabling this will increase scan times.
+ /// </summary>
+ public bool ImportMissingEpisodes { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether specials (season 0) should be included when creating
+ /// virtual unaired or missing episodes. When disabled, specials are never added and any existing
+ /// virtual specials created by this provider are removed.
+ /// </summary>
+ public bool ImportSpecials { get; set; }
+
+ /// <summary>
+ /// Gets or sets the ids (the "N" formatted GUIDs from <c>VirtualFolderInfo.ItemId</c>) of the
+ /// libraries for which the unaired/missing episode provider is enabled. Whether episodes are
+ /// imported at all, and how, is still controlled by the global toggles above; those toggles only
+ /// apply to the libraries listed here. Libraries not listed, including newly added ones, are
+ /// never processed, so an empty list disables the feature entirely.
+ /// </summary>
+ public string[] EnabledMissingEpisodeLibraries { get; set; } = [];
+
+ /// <summary>
+ /// Gets or sets how often, in days, the scheduled task re-checks TMDb for newly announced
+ /// unaired or missing episodes. This is what keeps the "Upcoming" view current for series
+ /// whose local files have not changed.
+ /// </summary>
+ public int MissingEpisodeRefreshIntervalDays { get; set; } = 7;
+
+ /// <summary>
+ /// Gets or sets the number of days a virtual episode is retained after it airs before it is
+ /// pruned (when missing episode import is disabled). This grace period leaves recently aired
+ /// episodes in place to allow for the delay between an episode airing and its file being added
+ /// to the library.
+ /// </summary>
+ public int UpcomingEpisodeGracePeriodDays { get; set; } = 7;
+
+ /// <summary>
/// Gets or sets a value indicating the maximum number of cast members to fetch for an item.
/// </summary>
public int MaxCastMembers { get; set; } = 15;