diff --git a/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs index e923894..bb08721 100644 --- a/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs @@ -13,6 +13,7 @@ public class PluginConfiguration : BasePluginConfiguration public const string ProjectApiKey = "7f7eed88-2530-4f84-8ee7-f154471b8f87"; private int _cacheDurationInHours = 1; private int _cacheDurationInDays = 7; + private int _metadataUpdateInHours = 2; /// /// Gets or sets the tvdb api key for user. @@ -39,5 +40,14 @@ public int CacheDurationInDays get => _cacheDurationInDays; set => _cacheDurationInDays = value < 1 ? 7 : value; } + + /// + /// Gets or sets the metadata update in hours. + /// + public int MetadataUpdateInHours + { + get => _metadataUpdateInHours; + set => _metadataUpdateInHours = value < 1 ? 1 : value; + } } } diff --git a/Jellyfin.Plugin.Tvdb/Configuration/config.html b/Jellyfin.Plugin.Tvdb/Configuration/config.html index 050fb44..3510eac 100644 --- a/Jellyfin.Plugin.Tvdb/Configuration/config.html +++ b/Jellyfin.Plugin.Tvdb/Configuration/config.html @@ -35,6 +35,13 @@

TheTVDB Settings:

The cache time in days for Languages and Activity Type metadata. +
+ + +
+ How many hours ago should the metadata be last updated on TheTvdb. Should be greater than the value of cache time in hours. +
+