From 70f93327139d4028fa0d0bb42ffa34cd4f534677 Mon Sep 17 00:00:00 2001 From: LJQ Date: Fri, 21 Jun 2024 01:30:13 +0800 Subject: [PATCH] Add option to fallback to original language --- .../Configuration/PluginConfiguration.cs | 5 +++++ Jellyfin.Plugin.Tvdb/Configuration/config.html | 6 ++++++ .../Providers/TvdbEpisodeProvider.cs | 4 ++-- Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesProvider.cs | 8 ++++---- Jellyfin.Plugin.Tvdb/TvdbUtils.cs | 12 ++++++++++++ 5 files changed, 29 insertions(+), 6 deletions(-) diff --git a/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs index e2630fe..4c9a2f2 100644 --- a/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs @@ -59,5 +59,10 @@ public int MetadataUpdateInHours /// Gets or sets a value indicating whether to include missing specials. /// public bool IncludeMissingSpecials { get; set; } = true; + + /// + /// Gets or sets a value indicating whether to fallback to original language. + /// + public bool FallbackToOriginalLanguage { get; set; } = false; } } diff --git a/Jellyfin.Plugin.Tvdb/Configuration/config.html b/Jellyfin.Plugin.Tvdb/Configuration/config.html index 22629ee..43ce888 100644 --- a/Jellyfin.Plugin.Tvdb/Configuration/config.html +++ b/Jellyfin.Plugin.Tvdb/Configuration/config.html @@ -53,6 +53,10 @@

TheTVDB Settings:

Include missing specials +